apt-get update and apt-get install nvidia-container-toolkit fails on ubuntu 18.04
$ 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
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) /
I was able to get past this with the following-
/etc/apt/apt.conf.d/80ssl-exceptionsAcquire::https::Verify-Peer "false";
Acquire::https::Verify-Host "false";
in /etc/apt/apt.conf.d/80ssl-exceptions
sudo apt-get update, the output of which contains something likeThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY C45B1676A04EA552sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C45B1676A04EA552 (use the key from the error string)sudo apt-get update; sudo apt-get install -y nvidia-container-toolkit runs without errors
Most helpful comment
I was able to get past this with the following-
/etc/apt/apt.conf.d/80ssl-exceptionsin
/etc/apt/apt.conf.d/80ssl-exceptionssudo apt-get update, the output of which contains something likeThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY C45B1676A04EA552sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C45B1676A04EA552(use the key from the error string)sudo apt-get update; sudo apt-get install -y nvidia-container-toolkitruns without errors