每次我尝试使用 apt-get 安装某些东西时,它都会返回此信息
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
所以我尝试更新 Kali Linux 源列表,所以我把这个
deb http://repo.kali.org/kali kali-rolling main contrib non-free
deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
但这不起作用请注意我有 64 位 kali linux
答案1
转到 Repository kali 或其他 linux 并复制以下链接:
deb http://repo.kali.org/kali kali-rolling main contrib non-free
deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
在你的 leafpad 上或者在终端上使用这些命令
sudo apt --fix-broken install
sudo apt-get update
sudo apt-get upgrade
答案2
经过一番搜索,我找到了这个解决方案,希望能够帮助我解决问题
sudo apt --fix-broken install
sudo apt-get update
sudo apt-get upgrade
答案3
在 Debian 和 Docker 上安装时,对我有帮助的libappindicator1
是手动安装此包。此外,它依赖于另一个libindicator7
。
curl -p --insecure "http://ftp.de.debian.org/debian/pool/main/liba/libappindicator/libappindicator1_0.4.92-7_amd64.deb" --output libappindicator1_0.4.92-8_amd64.deb \
&& curl -p --insecure "http://ftp.de.debian.org/debian/pool/main/libi/libindicator/libindicator7_0.5.0-4_amd64.deb" --output libindicator7_0.5.0-4_amd64.deb \
&& dpkg -i libindicator7_0.5.0-4_amd64.deb \
&& dpkg -i libappindicator1_0.4.92-8_amd64.deb \
&& rm libindicator7_0.5.0-4_amd64.deb \
&& rm libappindicator1_0.4.92-8_amd64.deb