就在最近,当我尝试在我的服务器(Ubuntu 20.04.2)上更新软件包(libcap2 100:2.48-1)时,它拒绝进行更新导致依赖关系出现问题
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcap2 : Depends: libc6 (>= 2.32) but 2.31-0ubuntu9.2 is to be installed
E: Unable to correct problems, you have held broken packages.
这是输出apt-cache policy libcap2 libc6
libcap2:
Installed: 1:2.32-1
Candidate: 100:2.48-1
Version table:
100:2.48-1 500
500 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.10 Packages
*** 1:2.32-1 500
500 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
libc6:
Installed: 2.31-0ubuntu9.2
Candidate: 2.31-0ubuntu9.2
Version table:
*** 2.31-0ubuntu9.2 500
500 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.31-0ubuntu9 500
500 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 Packages
这就是它所显示的全部内容,我不完全确定要删除 libc6 并重新安装它
您必须禁用
http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.10
存储库,然后重试。