包裹互相“破坏”

包裹互相“破坏”

当我尝试运行sudo apt-get installsudo apt-get -f install它给出以下错误时:

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:
 libc6 : Breaks: libc6:i386 (!= 2.23-0ubuntu7) but 2.23-0ubuntu6 is installed
 libc6:i386 : Breaks: libc6 (!= 2.23-0ubuntu6) but 2.23-0ubuntu7 is installed
E: Unmet dependencies. Try using -f.

答案1

如果 Apt 无法自行解决此冲突,则强制安装两个软件包版本中较高的一个版本应该能够解决这个问题:

sudo apt-get install -f libc6:i386=2.23-0ubuntu7

如果 Apt 仍然拒绝,您可以采取手动安装:

cd /tmp
apt-get download libc6:i386=2.23-0ubuntu7
sudo dpkg -i libc6_2.23-0ubuntu7_i386.deb
sudo apt-get install -f

相关内容