【发布时间】:2017-11-23 18:04:05
【问题描述】:
每当我为任何软件包运行 apt-get install 时都会收到此错误
➜ ~ sudo apt-get install clang-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
gcc-7-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed
libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.25-2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
当我运行 sudo apt --fix-broken install 我得到这个错误
Unpacking libc6-dev-i386 (2.25-2) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.25-2_amd64.deb (--unpack):
trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64:i386 2.25-2
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev-i386_2.25-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
【问题讨论】:
-
第一个建议,试试
aptitude命令,它会自动为你寻找解决方案。 -
cat /etc/apt/souces.list和cat /etc/apt/sources.list.d/*的输出是什么?