Debian Apt get can';由于依赖关系中断,无法安装任何内容
每当我为任何软件包运行apt-get-install时,都会出现此错误Debian Apt get can';由于依赖关系中断,无法安装任何内容,debian,apt,libc,dpkg,Debian,Apt,Libc,Dpkg,每当我为任何软件包运行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 follow
➜ ~ 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).
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)
当我运行sudoapt——修复损坏的安装时,我得到了这个错误
➜ ~ 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).
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)
我第一次跑步就把它修好了 sudo dpkg-r libc6-dev-i386 然后通过跑步
sudo apt get install libc6-dev-i386。我尝试了以下方法
- sudo dpkg—配置-a
- sudo apt get-f安装
- sudo apt get-u dist升级
- sudo-apt——修复损坏
- sudo apt get-f安装
- sudoapt获得更新
- sudo-apt完全升级
- sudoapt获得更新
- sudo-apt完全升级
sudo-apt-get-update
sudo apt--修复损坏的安装
sudo dpkg——配置-a
sudo易于清洁
- 您必须执行以下操作:
$ sudo apt purge libc6-dev-x32
然后添加在同一命令后显示的任何其他包,直到不再显示包为止。这对我有用。这里有一个例子:第一个建议,尝试
aptitude
command,它将尝试为您自动找到解决方案。cat/etc/apt/souces.list
和cat/etc/apt/sources.list.d/*
?对我无效dpkg:警告:忽略删除未安装的libpng12-0:amd64的请求处理时遇到错误:/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb