我正在使用 ubuntu 14.10。我尝试安装所有更新,但它显示以下结果:
包装系统已损坏
检查您是否正在使用第三方存储库。如果是,请禁用它们,因为它们是问题的常见来源。此外,在终端中运行以下命令:
apt-get install -f
细节:
The following packages have unmet dependencies:
gcc-4.9-multilib: Depends: gcc-4.9-base (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
Depends: gcc-4.9 (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
Depends: libc6-dev-i386 (>= 2.11) but it is not installed
Depends: lib32gcc-4.9-dev (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
Depends: libx32gcc-4.9-dev (= 4.9.1-16ubuntu6) but 4.9.1-16ubuntu6 is installed
libc6-dev-x32: Depends: libc6-x32 (= 2.19-10ubuntu2.3) but 2.19-10ubuntu2.3 is installed
Depends: libc6-dev-i386 (= 2.19-10ubuntu2.3) but it is not installed
Depends: libc6-dev (= 2.19-10ubuntu2.3) but 2.19-10ubuntu2.3 is installed
然后我删除了第三方存储库并在终端中运行命令sudo apt-get -f install
。 但最终我得到了以下错误:
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-10ubuntu2.3_amd64.deb (--unpack):
trying to overwrite '/usr/include/fpu_control.h', which is also in package libc6-dev-amd64 2.19-10ubuntu2.3
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev-i386_2.19-10ubuntu2.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
所以,现在我需要一个能解决这个问题的人。如果你能帮助我解决这个问题,我将非常高兴。请...
答案1
转到“软件和更新”,然后选择“其他软件”面板;选中所有复选框。之后只需按照提示操作即可。最后,打开终端并输入
sudo apt-get dist-upgrade