无法修复未满足的依赖项
我安装(不成功) chrome 32位并且不知道我的操作系统类型是64位。 我尝试用这个命令sudo apt-get -f install
修复它,但是出现了错误 。
每次我安装软件包时,例如flashplugin-installer
或gdebi
,都会显示错误:
$ sudo apt-get install flashplugin-installer 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: libc6 : Breaks: locales (< 2.19) libc6:i386 : Recommends: libc6-i686:i386 Breaks: locales (< 2.19) E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). ------------------------------------------------------------------------------- $ sudo apt-get install gdebi 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: gdebi : Depends: gdebi-core (= 0.9.5.5+nmu1) but it is not going to be installed Recommends: libgtk2-perl but it is not going to be installed libc6 : Breaks: locales (< 2.19) libc6:i386 : Recommends: libc6-i686:i386 Breaks: locales (< 2.19) E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我该如何解决? 我是Linux新手。
编辑:
接下来 ,运行:
sudo apt-get clean
sudo apt-get update
好吧,在关于mchid的回答清除和降级libc6之前,我被困在那里。 我有这个错误 ,并且mchid建议这个链接,但解决方案并没有解决我的问题。
编辑
我发现1001的引脚优先级将允许降级此优先级集,因此您可以降级由于Kali Repo而错误安装的所有现有Ubuntu软件包。 这应该真的有助于解决问题,并且还应该防止将来出现依赖问题。
首先 ,在执行任何其他操作之前编辑/ etc / apt / preferences文件。
运行以下命令:
sudo nano /etc/apt/preferences
现在,将以下内容复制并粘贴到文件中:
Package: * Pin: origin ppa.launchpad.net Pin-Priority: 1001 Package: * Pin: origin ph.archive.ubuntu.com Pin-Priority: 1001 Package: * Pin: origin security.ubuntu.com Pin-Priority: 1001 Package: * Pin: origin extras.ubuntu.com Pin-Priority: 1001 Package: * Pin: origin repo.kali.org Pin-Priority: 600 Package: * Pin: origin extras.ubuntu.com Pin-Priority: 1001 Package: * Pin: origin security.kali.org Pin-Priority: 600 Package: * Pin: origin http.kali.org Pin-Priority: 600
按CTRL + o ,然后按ENTER以保存文件。 按CTRL + x退出nano。
接下来 ,运行:
sudo apt-get clean sudo apt-get update
然后 ,清除libc6-dbg并降级libc6:i386,libc6-dev和libc6:
sudo dpkg -P libc6-dbg apt-get download libc6-udeb=2.19-0ubuntu6 libc6-dev=2.19-0ubuntu6.6 libc6=2.19-0ubuntu6.6:i386 sudo dpkg -i libc6_2.19-0ubuntu6.6_amd64.deb sudo dpkg -i libc6-dev_2.19-0ubuntu6.6_amd64.deb sudo dpkg -i libc6_2.19-0ubuntu6.6_i386.deb
另外,降级gdebi:
sudo apt-get install gdebi=0.9.5.3ubuntu2
如果一切顺利,请运行以下命令。 如果没有,请发布您的错误。
要安装google-chrome-stable:
sudo apt-get clean sudo dpkg -P google-chrome-stable sudo apt-get update sudo apt-get upgrade
请发布任何错误。 如果没有错误,请继续:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo gdebi google-chrome-stable_current_amd64.deb
gdebi
将为您处理所有依赖项。