我在尝试在Debian 10(Buster)上安装Docker时遇到了错误
The following packages have unmet dependencies:
docker-ce : Depends: containerd.io (>= 1.4.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我在尝试在Debian 10(Buster)上安装Docker时遇到了错误
The following packages have unmet dependencies:
docker-ce : Depends: containerd.io (>= 1.4.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
对我有效的解决方案是在 download.docker.com 上安装最新版本的 containerd.io。
curl -O https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.4.3-1_amd64.deb
sudo apt install ./containerd.io_1.4.3-1_amd64.deb
我遇到了同样的错误,因为我在我的Debian服务器上应用了Ubuntu的Docker安装步骤。
要解决这个问题:
/etc/apt/sources.list.d/docker.list
文件的内容