关于docker:E-Unable-to-locate-package-nvidiacontainertoolkit

87次阅读

共计 511 个字符,预计需要花费 2 分钟才能阅读完成。

装置 nvidia-container-toolkit 呈现

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-container-toolkit

解决办法 (程序执行)

$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
$ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

$ sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
$ sudo systemctl restart docker

问题解决。

正文完
 0