我四处寻找,找不到有效的解决方案,使用软件更新程序尝试更新 Ubuntu 时出现以下错误:
If you are using third party repositories then disable them, since they are a common source of problems.
Now run the following command in a terminal: apt-get install -f
Transaction failed: The package system is broken
The following packages have unmet dependencies:
libc6-dbg: Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed
libc6-dev: Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed
Depends: libc-dev-bin (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.2 is installed
我在使用时也会出现这个错误apt-install
,我该怎么办?
答案1
您需要在您的系统中启用焦点更新/etc/apt/sources.list
并从那里安装软件包。
apt install -t focal-updates libc6 libc-dev-bin
从软件包中可以看出,这就是该版本的软件包的来源。如果文件中没有该行,则永远不会安装它们,您将错过升级。
https://packages.ubuntu.com/search?keywords=libc6&searchon=names&suite=all§ion=all