更新 libcap2 100:2.48-1 时出现问题

更新 libcap2 100:2.48-1 时出现问题

最近,当我尝试更新服务器(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 并再次安装它

答案1

您必须禁用http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.10存储库然后重试。

相关内容