每次我嘗試使用 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
但這不起作用注意我有 kali linux 64 位
答案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
幫助我libappindicator1
在 Debian 和 Docker 中進行安裝的是手動安裝這個軟體包。另外,這也取決於另一項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