我正在尝试在我全新的ubuntu22.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.你能帮我解决这个问题吗?
发布于 2022-11-11 17:00:00
我想我找到了解决办法。我做了以下工作:
sudo apt-get remove containerd.io
sudo apt install docker.io docker-compose -y
systemctl start docker
sudo gpasswd -a $USER docker现在一切都正常了
https://unix.stackexchange.com/questions/724518
复制相似问题