以下软件包具有未满足的依赖关系:containerd.io

以下软件包具有未满足的依赖关系:containerd.io

我正在尝试在全新的 ubuntu 22.04 安装上安装以下软件包。

sudo apt install docker.io docker-compose -y

但是我收到一个错误

The following packages have unmet dependencies:
 containerd.io : Conflicts: containerd
                 Conflicts: runc

完整的错误如下

~/temporary_files$ sudo apt install docker.io docker-compose -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 containerd.io : Conflicts: containerd
                 Conflicts: runc
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

你能帮我解决这个问题吗?

答案1

我想我找到了解决方案。我做了以下事情:

sudo apt-get remove containerd.io
sudo apt install docker.io docker-compose -y
systemctl start docker
sudo gpasswd -a $USER docker

现在一切正常

相关内容