14.04 -> 16.04 升级,损坏的库,损坏的 libc

14.04 -> 16.04 升级,损坏的库,损坏的 libc

我有同样的症状这个问题并采取了建议的补救措施,安装 libstdc++从这里之后,我收到大量关于 chromium 和 libreoffice 的投诉,我只能用 来解决dpkg -rapt-get remove没有用),尝试使用时apt-get仍然会收到这些错误:

perec ~/Downloads 10:10:48 $ sudo apt-get install apt
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.2.19).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libstdc++-6-dev : Depends: libstdc++6 (>= 6.1.1-3ubuntu11~14.04.1) but 5.4.0-6ubuntu1~16.04.4 is to be installed
 libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but it is not going to be installed
 libstdc++6:i386 : Depends: gcc-5-base:i386 (= 5.4.0-6ubuntu1~16.04.4) but it is not going to be installed
                   Depends: libc6:i386 (>= 2.18) but it is not going to be installed
                   Depends: libgcc1:i386 (>= 1:4.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

好的,如果我尝试一下会怎么样apt-get -f install

perec ~/Downloads 10:10:51 $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libstdc++-6-dev : Depends: libstdc++6 (>= 6.1.1-3ubuntu11~14.04.1) but 5.4.0-6ubuntu1~16.04.4 is installed
 libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but it is not installed
 libstdc++6:i386 : Depends: gcc-5-base:i386 (= 5.4.0-6ubuntu1~16.04.4) but it is not installed
                   Depends: libc6:i386 (>= 2.18) but it is not installed
                   Depends: libgcc1:i386 (>= 1:4.2) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

万岁!

顺便,这张票建议安装两个都amd64 和 i386 libstdc++ .deb 文件,出于某种原因:

perec ~/Downloads 10:13:24 $ sudo dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.4_*
(Reading database ... 187526 files and directories currently installed.)
Preparing to unpack libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb ...
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.4) over (5.4.0-6ubuntu1~16.04.4) ...
Preparing to unpack libstdc++6_5.4.0-6ubuntu1~16.04.4_i386.deb ...
Unpacking libstdc++6:i386 (5.4.0-6ubuntu1~16.04.4) over (5.4.0-6ubuntu1~16.04.4) ...
dpkg: dependency problems prevent configuration of libstdc++6:amd64:
 libstdc++6:amd64 depends on gcc-5-base (= 5.4.0-6ubuntu1~16.04.4); however:
  Package gcc-5-base is not installed.

dpkg: error processing package libstdc++6:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libstdc++6:i386:
 libstdc++6:i386 depends on gcc-5-base (= 5.4.0-6ubuntu1~16.04.4).
 libstdc++6:i386 depends on libc6 (>= 2.18).
 libstdc++6:i386 depends on libgcc1 (>= 1:4.2).

dpkg: error processing package libstdc++6:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 libstdc++6:amd64
 libstdc++6:i386

当然,我无法gcc-5-base使用 apt-get 安装 等,因为它认为我的系统已损坏。而且我甚至不知道我是否应该安装这些东西。

(奇妙的是,我刚刚退出了 pidgin,现在无法重新启动它,因为二进制文件显然在升级过程中被删除了。而且我也无法重新安装它,因为它apt-get坏了。升级过程在这里。)

相关内容