我无法安装 Chrome。当我尝试时,它显示如下:
root@kali:~/Downloads# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 857 not upgraded.
您能尽快解决这个问题吗?
答案1
您没有使用该命令安装任何东西
apt-get -f install
从man apt-get
:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies
in place. This option, when used with install/remove, can
omit any packages to permit APT to deduce a likely
solution.
如果你想安装某事,你需要指定什么你想安装。就像这样:
apt-get install <package-to-install>
答案2
可以安装chrome浏览器:
直接使用.deb文件包
apt-get update && apt-get upgrade
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb
apt-get install libappindicator1
现在,运行apt-get -f install
然后安装缺少的依赖项
通过添加 google chrome 存储库。
Chrome 可以通过将官方存储库添加到您的sources.list
:
设置apt-key
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
添加官方仓库:
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
更新并安装 chrome:
apt-get update
apt-get install google-chrome-stable