缺少libappindicator3-1安装Slack
这是我尝试安装 Slack 时的输出。
$ sudo dpkg -i slack-desktop-4.12.2-amd64.deb
Selecting previously unselected package slack-desktop.
(Reading database ... 155664 files and directories currently installed.)
Preparing to unpack slack-desktop-4.12.2-amd64.deb ...
Unpacking slack-desktop (4.12.2) ...
dpkg: dependency problems prevent configuration of slack-desktop:
slack-desktop depends on libappindicator3-1; however:
Package libappindicator3-1 is not installed.
dpkg: error processing package slack-desktop (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.68) ...
Errors were encountered while processing:
slack-desktop
然后我尝试安装依赖项
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
slack-desktop
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 148 MB disk space will be freed.
Do you want to continue? [Y/n]
我无法弄清楚为什么会发生这种情况。我已经跑了
apt-get update
apt-get upgrade
apt-get clean
apt-get autoclean
以下是一些可能有用的信息:
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian testing main contrib non-free
$ cat /etc/*release*
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
另外,我还有另一台笔记本电脑运行 Debian 测试并安装了 libappindicator3-1:
$ apt policy libappindicator3-1
libappindicator3-1:
Installed: 0.4.92-8
Candidate: 0.4.92-8
Version table:
*** 0.4.92-8 100
100 /var/lib/dpkg/status
回答
您可以将 Sid 包含在您的/etc/apt/sources.list 中,如下所示:
###### Debian Main Repos
deb http://deb.debian.org/debian/ testing main contrib non-free
deb http://deb.debian.org/debian/ testing-updates main contrib non-free
deb http://deb.debian.org/debian-security testing-security main
# SID
deb http://deb.debian.org/debian/ sid main contrib non-free
更新您的存储库并安装libappindicator3-1:
apt update
apt install libappindicator3-1
下一步是从您的/etc/apt/sources.list 中删除 Sid :
###### Debian Main Repos
deb http://deb.debian.org/debian/ testing main contrib non-free
deb http://deb.debian.org/debian/ testing-updates main contrib non-free
deb http://deb.debian.org/debian-security testing-security main
# SID
#deb http://deb.debian.org/debian/ sid main contrib non-free
请记住更新您的存储库以避免现在使用 Sid:
最后从您下载的 .deb 文件安装 Slack:
apt install /home/lgallard/Downloads/slack-desktop-4.14.0-amd64.deb
或者,您可以使用Debian 文档中解释的固定包来固定libappindicator3-1