次のパッケージには満たされていない依存関係があります。

次のパッケージには満たされていない依存関係があります。

新しい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

今すべてが大丈夫です。

おすすめ記事