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

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...