nvidia-docker 官方安装方法报错解决办法

环境ubuntu16.04,执行官网https://github.com/NVIDIA/nvidia-docker

上面的指令如下:

# Add the package repositories
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
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

提示

No command ' sudo' found, did you mean:
 Command 'sudo' from package 'sudo' (main)
 Command 'sudo' from package 'sudo-ldap' (universe)
 sudo: command not found
---------------------: command not found
(23) Failed writing body
sf@kc:~$

执行如下:

wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb

sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb

提示无法连接

解决方法,根据wget后面地址,直接复制下载https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb

然后放在本地目录,cd跳转执行sudo dpkg -i  nvidia-docker_1.0.1-1_amd64.deb

 

你可能感兴趣的:(ubuntu)