强制安装 libstd++ ubuntu 16.04.01 后,软件包损坏

强制安装 libstd++ ubuntu 16.04.01 后,软件包损坏

我已经将 Ubuntu 14.04 LTS 升级到 16.04.01 LTS。升级后,由于缺少 GLIBC_XX_3.4.21,libstdc++ 出现“重定位错误”错误。因此,我从互联网上下载了 libstdc++ 包,并使用以下方法强制安装它:dpkg

现在,我运行 apt-get 时屏幕上出现以下错误消息。

You might want to run 'apt-get -f install' to correct these: The
following packages have unmet dependencies:  libstdc++6 : Depends:
gcc-6-base (= 6.2.0-1) but 6.1.1-3ubuntu11~14.04.1 is to be installed

            Breaks: libboost-date-time1.54.0 but 1.54.0-4ubuntu3.1 is to be installed
            Breaks: libkolabxml1 (<= 1.1.0-3) but 1.0.1-0ubuntu3 is to be installed
            Breaks: schroot (<= 1.6.10-1+b1) but 1.6.10-1ubuntu3 is to be installed
            Breaks: libstdc++6:i386 (!= 6.2.0-1) but 6.1.1-3ubuntu11~14.04.1 is to be installed  libstdc++6:i386 : Breaks: libstdc++6 (!= 6.1.1-3ubuntu11~14.04.1) but 6.2.0-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我已经尝试通过运行 apt-get -f install 进行强制安装,但没有成功。有人能帮我一下吗,我该如何降级软件包而不破坏任何东西。

apt -f install 的输出:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed. The following packages have unmet dependencies: 

libstdc++6 : Depends: gcc-6-base (= 6.1.1-11) but 6.1.1-3ubuntu11~14.04.1 is installed
            Breaks: libboost-date-time1.54.0 but 1.54.0-4ubuntu3.1 is installed
            Breaks: libkolabxml1 (<= 1.1.0-3) but 1.0.1-0ubuntu3 is installed
            Breaks: schroot (<= 1.6.10-1+b1) but 1.6.10-1ubuntu3 is installed
            Breaks: libstdc++6:i386 (!= 6.1.1-11) but 6.1.1-3ubuntu11~14.04.1 is installed  libstdc++6:i386 : Breaks: libstdc++6 (!= 6.1.1-3ubuntu11~14.04.1) but 6.1.1-11 is installed E:
Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. 
E: Unable to correct dependencies

谢谢

答案1

随着发行版中依赖升级的新软件包的发布,一切都顺利解决了sudo apt -f install。每个依赖项都已修复。

相关内容