由于依赖关系损坏,apt-get 无法安装任何东西 [英] Apt-get can't install anything due to broken dependencies

查看:32
本文介绍了由于依赖关系损坏,apt-get 无法安装任何东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我为任何包运行 apt-get install 时,我都会收到此错误

Whenever I run apt-get install for any package I get this error

➜  ~ 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 时出现此错误

And when I run sudo apt --fix-broken install I get this error

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)

推荐答案

我通过第一次运行修复了它

I fixed it by first running

sudo dpkg -r libc6-dev-i386

sudo dpkg -r libc6-dev-i386

然后通过运行须藤 apt-get 安装 libc6-dev-i386.

then by running sudo apt-get install libc6-dev-i386.

这篇关于由于依赖关系损坏,apt-get 无法安装任何东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆