我几乎尝试了所有方法来修复这个错误:
The following packages have unmet dependencies:
libc6 : Breaks: libc6:i386 (!= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is to be installed
libc6:i386 : Breaks: libc6 (!= 2.31-0ubuntu9) but 2.31-0ubuntu9.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
而且它不会消失。出现此错误后我根本无法使用 apt。
我已尝试过:
清除缓存 apt --fix-broken install apt -f install apt reinstall apt update --fix-missing apt clean apt autoremove dpkg --configure -a
政策
libc6:
Installed: 2.31-0ubuntu9
Candidate: 2.31-0ubuntu9.1
Version table:
2.31-0ubuntu9.1 500
500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
*** 2.31-0ubuntu9 500
500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
libc6:i386:
Installed: 2.31-0ubuntu9
Candidate: 2.31-0ubuntu9.1
Version table:
2.31-0ubuntu9.1 500
500 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
*** 2.31-0ubuntu9 500
500 http://us.archive.ubuntu.com/ubuntu focal/main i386 Packages
100 /var/lib/dpkg/status
我在 64 位操作系统上使用 Ubuntu 20.04 LTS。(英特尔 CPU)