尝试在 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