任何人都可以说如何在 Ubuntu14.04 中安装 Slack,并且在尝试时这是错误


ssh: Could not resolve hostname slack-master: Name or service not known
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1653) [Receiver=3.1.0]
FATAL[slack-getroles]: 'rsync --links --times -e ssh slack-master::slack/etc/roles.conf /var/cache/slack/_role_list' exited 5 at /usr/lib/slack/slack-getroles line 158.
FATAL[slack]: '/usr/lib/slack/slack-getroles' exited 5 at /usr/sbin/slack line 205.

我怀疑,这个问题从我安装 python 的 anaconda 包时就发生了。以下步骤帮助我解决了问题。

步骤 1:重新启动计算机

第 2 步:$sudo apt-get 删除松弛

第 3 步:从 Slack 网站下载最新版本的 Slack(在此处查找最新软件包 - https://slack.com/(: $wget https://downloads.slack-edge.com/linux_releases/slack-desktop-2.9.0-amd64.deb

第 4 步:$ 使用 dpkg 实用程序安装下载的软件包:sudo dpkg -i 松弛桌面-2.9.0-amd64.deb

在步骤 4 中,我们将看到以下错误:

$ sudo dpkg -i slack-desktop-2.9.0-amd64.deb 
(Reading database ... 215272 files and directories currently installed.)
Preparing to unpack slack-desktop-2.9.0-amd64.deb ...
Unpacking slack-desktop (2.9.0) over (2.9.0) ...
dpkg: dependency problems prevent configuration of slack-desktop:
slack-desktop depends on python; however:
Package python is not installed.
dpkg: error processing package slack-desktop (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
slack-desktop
$

要解决此问题:在步骤 5 中

第 5 步:使用以下内容安装缺少的依赖项:sudo apt-get install -f

$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
python python2.7
Suggested packages:
python-doc python-tk python2.7-doc
The following NEW packages will be installed:
python python2.7
0 upgraded, 2 newly installed, 0 to remove and 125 not upgraded.
1 not fully installed or removed.
Need to get 361 kB of archives.
After this operation, 1,009 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.1 [224 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python amd64 2.7.11-1 [137 kB]
Fetched 361 kB in 0s (384 kB/s) 
Selecting previously unselected package python2.7.
(Reading database ... 215272 files and directories currently installed.)
Preparing to unpack .../python2.7_2.7.12-1ubuntu0~16.04.1_amd64.deb ...
Unpacking python2.7 (2.7.12-1ubuntu0~16.04.1) ...
Selecting previously unselected package python.
Preparing to unpack .../python_2.7.11-1_amd64.deb ...
Unpacking python (2.7.11-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Setting up python2.7 (2.7.12-1ubuntu0~16.04.1) ...
Setting up python (2.7.11-1) ...
Setting up slack-desktop (2.9.0) ...
$ 

我假设你对 https://slack.com 的松弛感兴趣。不要通过sudo apt install slack安装它:这是另一个软件包(如果您对另一个神秘的Slack软件包感兴趣,请运行apt show slack(。

要安装松弛 https://slack.com,请按照其网站上的说明进行操作。目前,sudo snap install slack --classic一种方便的方式,也许前面有sudo apt install snap

(不要忘记sudo apt remove slack...

对我来说,如果通过 Ubuntu 应用商店安装,我所有的程序都会失败。如果我访问网站并从他们的链接手动安装他们的软件,那么一切正常。

这样做为我解决了这个确切的问题。刚刚去了松弛网站并下载了.deb文件

我遇到了同样的问题。甚至从Slack下载松弛.deb文件也失败了。

我尝试了sudo apt reinstall slack等,但没有奏效。

解决方案:https://snapcraft.io/slack

sudo snap install slack --classic

即使它仍处于"破碎"状态,这也为我解决了它。

said@said:~$ sudo rm /usr/sbin/slack
said@said:~$ sudo ln -s /usr/lib/slack/slack /usr/sbin/slack
said@said:~$ slack

相关内容

最新更新