当我运行以下命令时:
sudo apt-get install -y nvidia-docker2我得到了以下错误响应:
The following packages have unmet dependencies:
nvidia-docker2 : Depends: docker-ce (= 18.06.1~ce~3-0~ubuntu) but it is not installable or
docker-ee (= 18.06.1~ee~3-0~ubuntu) but it is not installable
E: Unable to correct problems, you have held broken packages.发布于 2018-11-05 05:50:30
在/etc/apt/sources.list中,确保最后一个单词是稳定的,而不是边缘
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable在我的例子中,上面的行在/etc/apt/sources.list中丢失了。我在底部添加了它&执行以下命令:
然后按照惯例:
sudo apt-get update
sudo apt-get install -y docker-ce使用以下方法验证您的停靠版本:
sudo docker versionhttps://stackoverflow.com/questions/53149014
复制相似问题