由于依赖关系损坏,Apt-get 被阻止(libc6、Linux Mint)

由于依赖关系损坏,Apt-get 被阻止(libc6、Linux Mint)

目前,由于一些未解决的依赖关系,Apt-get 完全阻塞,当我运行升级时,我收到此错误:

sudo apt-get upgrade
Reading package lists... Done                                                                                                        
Building dependency tree                                                                                                             
Reading state information... Done                                                                                                    
You might want to run 'apt-get -f install' to correct these.                                                                         
The following packages have unmet dependencies:                                                                                      
 gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not installed                                                        
 libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.5) but it is not installed                                                 
E: Unmet dependencies. Try using -f.      

如果我运行 -f install 选项,我会收到以下错误消息:

sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6-dev-i386
Recommended packages:
  gcc-multilib
The following NEW packages will be installed:
  libc6-dev-i386
0 upgraded, 1 newly installed, 0 to remove and 96 not upgraded.
27 not fully installed or removed.
Need to get 0 B/1,151 kB of archives.
After this operation, 6,337 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 190746 files and directories currently installed.)
Preparing to unpack .../libc6-dev-i386_2.19-0ubuntu6.5_amd64.deb ...
Unpacking libc6-dev-i386 (2.19-0ubuntu6.5) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.5_amd64.deb (--unpack):
 trying to overwrite '/usr/include/gnu', which is also in package libc6-dev-amd64 2.19-0ubuntu6.5
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不知道该怎么解决这个问题,因为这个错误我什至无法删除包。

答案1

是啊。依赖的乐趣,一种必要的罪恶。

您可能想尝试使用包装袋代替易于

在某些情况下,由于依赖性问题,debian 软件包不愿意使用 gdebi 或软件中心 [还有 apt 和 synaptic] 安装。在这种情况下,您可以使用以下命令安装 .deb 文件: dpkg --force-all -i PackageName

例如 dpkg --force-all -i google-chrome-stable_current_i386.deb

参考:http://linuxhalwa.blogspot.co .uk/2013/12/how-to-force-install-deb-package.html。

就你而言,dpkg --force-all -i libc6-dev-i386可能就可以解决问题。

相关内容