微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux – 无法安装libc6包

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

解决方法

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐