libc6 : Depends: libc-bin (= 2.15-0ubuntu9) but 2.15-0ubuntu7 is installed

时间:2022-11-29 14:00:11

libc6 : Depends: libc-bin (= 2.15-0ubuntu9) but 2.15-0ubuntu7 is installed

错误:

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 : Depends: libc-bin (= 2.15-0ubuntu9) but 2.15-0ubuntu7 is installed
 libstdc++6 : Depends: gcc-4.6-base (= 4.6.3-1ubuntu4) but 4.6.3-1ubuntu5 is installed
 libstdc++6-4.6-dev : Depends: libstdc++6 (>= 4.6.3-1ubuntu5) but 4.6.3-1ubuntu4 is installed
E: Unmet dependencies. Try using -f.

解决:

apt-get update
apt-get clean
apt-get install -fy
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
apt-get install -fy
apt-get dist-upgrade