Nvidia-docker: apt-get errors when installing on ubuntu 18.04

Created on 4 Sep 2019  路  1Comment  路  Source: NVIDIA/nvidia-docker

1. Issue or feature description

apt-get update and apt-get install nvidia-container-toolkit fails on ubuntu 18.04

2. Steps to reproduce the issue

$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
$ wget --no-check-certificate -vO - https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
$ wget --no-check-certificate -vO - 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

output of sudo apt-get update contains -

Err:7 https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64  Release                                                        
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification
E: The repository 'https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64  Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default

and similar for all three debs

output of sudo apt-get install -y nvidia-container-toolkit contains-
E: Unable to locate package nvidia-container-toolkit

3. Other Information

Output of docker version

Client: Docker Engine - Community
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.5
 Git commit:        74b1e89
 Built:             Thu Jul 25 21:21:05 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Output of uname -a
4.15.0-55-generic

Workarounds attempted (unsuccessful)-
Added [trusted=yes] in all three lines in /etc/apt/sources.list.d/nvidia-docker.list

deb [trusted=yes] http://nvidia.github.io/libnvidia-container/ubuntu18.04/$(ARCH) /
deb [trusted=yes] http://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/$(ARCH) /
deb [trusted=yes] http://nvidia.github.io/nvidia-docker/ubuntu18.04/$(ARCH) /

Most helpful comment

I was able to get past this with the following-

  • created /etc/apt/apt.conf.d/80ssl-exceptions
  • added lines
Acquire::https::Verify-Peer "false";
Acquire::https::Verify-Host "false"; 

in /etc/apt/apt.conf.d/80ssl-exceptions

  • run sudo apt-get update, the output of which contains something like
    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C45B1676A04EA552
  • Run sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C45B1676A04EA552 (use the key from the error string)
  • At this point, sudo apt-get update; sudo apt-get install -y nvidia-container-toolkit runs without errors

>All comments

I was able to get past this with the following-

  • created /etc/apt/apt.conf.d/80ssl-exceptions
  • added lines
Acquire::https::Verify-Peer "false";
Acquire::https::Verify-Host "false"; 

in /etc/apt/apt.conf.d/80ssl-exceptions

  • run sudo apt-get update, the output of which contains something like
    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C45B1676A04EA552
  • Run sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C45B1676A04EA552 (use the key from the error string)
  • At this point, sudo apt-get update; sudo apt-get install -y nvidia-container-toolkit runs without errors
Was this page helpful?
0 / 5 - 0 ratings