Ubuntu install nvidia-docker 出现错误 (Resolved)
Error:
dl@Ubuntu18.04:/etc/apt/sources.list.d$ sudo apt-get install -y nvidia-docker2
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
libnvidia-container-tools libnvidia-container1 nvidia-container-runtime nvidia-container-toolkit
下列【新】软件包将被安装:
libnvidia-container-tools libnvidia-container1 nvidia-container-runtime nvidia-container-toolkit nvidia-docker2
升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
需要下载 850 kB/1,471 kB 的归档。
解压缩后会消耗 4,683 kB 的额外空间。
错误:1 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 libnvidia-container1 1.3.1-1
Could not handshake: Error in the pull function. [IP: 185.199.111.153 443]
错误:2 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 libnvidia-container-tools 1.3.1-1
Could not handshake: Error in the pull function. [IP: 185.199.111.153 443]
获取:3 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 nvidia-container-toolkit 1.4.0-1 [763 kB]
已下载 763 kB,耗时 3秒 (270 kB/s)
E: 无法下载 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64/./libnvidia-container1_1.3.1-1_amd64.deb Could not handshake: Error in the pull function. [IP: 185.199.111.153 443]
E: 无法下载 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64/./libnvidia-container-tools_1.3.1-1_amd64.deb Could not handshake: Error in the pull function. [IP: 185.199.111.153 443]
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?
Resolve
https://github.com/NVIDIA/nvidia-docker/issues/642
We managed to fix my issue by installing the package apt-transport-https
:sudo apt-get install apt-transport-https
Maybe it worth adding it to the README ?