esrsank@PG04954:~$ sudo apt-get install libc6-i386
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: build-essential :
Depends: libc6-dev but it is not going to be installed or
libc-dev
libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10.6) but 2.15-0ubuntu10.10 is to be installed
libstdc++6-4.6-dev : Depends: libc6-dev (>= 2.13-0ubuntu6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).那么如何安装libc6 (= 2.15-0ubuntu10.6)而不是libc6 (= 2.15-0ubuntu10.10)呢?
ibstdc++6-4.6-dev也是如此
发布于 2015-05-26 15:26:51
做
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -u dist-upgrade然后运行
sudo dpkg --configure -a
sudo apt-get -f install如果它起作用了,那就好了。或者再次尝试这样做
sudo apt-get install libc6-i386发布于 2015-05-26 15:30:08
未满足依赖关系的一个可能原因可能是包数据库损坏,和/或某些包没有正确安装。要解决此问题,请点击Alt+Ctrl+T打开终端,并尝试运行以下命令之一:
sudo apt-保持干净
或,
sudo apt-获取自动清理
apt-get clean清除本地存储库中检索到的包文件( .deb文件)。它从/var/cache/apt/archive/和/var/cache/apt/archive/partial/中删除除锁文件以外的所有内容。apt-get autoclean清除本地存储库中检索到的包文件,但与apt-get clean不同的是,它只删除无法再下载的包文件,并且大部分都是无用的。
解决依赖关系问题的最基本的修复方法之一是运行:
sudo apt-获取-f安装
这里的-f代表“修复损坏”。Apt将尝试纠正损坏的依赖关系。如果您手动安装了一个具有未满足的依赖项的包,apt-get将在可能的情况下安装这些依赖项,否则它可能会简单地删除您为了解决问题而安装的包。
然后运行:
sudo dpkg --配置-a
然后再运行一次:
sudo apt-获取-f安装
参考资料:#https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
https://stackoverflow.com/questions/30451939
复制相似问题