Nvidia-docker: "Unable to locate package nvidia-container-toolkit" on Debian x86_64

Created on 2 Apr 2020  路  14Comments  路  Source: NVIDIA/nvidia-docker

I followed the steps listed here: https://github.com/NVIDIA/nvidia-docker
My OS is Debian, but I think the packages are missing in Debian 9 and 10 as well.
See more info below.

$ sudo apt-get install -y nvidia-container-toolkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-container-toolkit
$ cat  /etc/apt/sources.list.d/nvidia-docker.list
deb https://nvidia.github.io/libnvidia-container/debian8/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/debian8/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/debian8/$(ARCH) /



md5-312fccb2dbe517344d36043bf0e7a988



$ sudo apt-get update
....
Hit https://nvidia.github.io  InRelease
Hit https://nvidia.github.io  InRelease
Hit https://nvidia.github.io  InRelease
....



md5-312fccb2dbe517344d36043bf0e7a988



$ sudo apt-cache search nvidia | grep container
libnvidia-container-dev - NVIDIA container runtime library (development files)
libnvidia-container-tools - NVIDIA container runtime library (command-line tools)
libnvidia-container1-dbg - NVIDIA container runtime library (debugging symbols)
libnvidia-container1 - NVIDIA container runtime library
nvidia-container-runtime-hook - NVIDIA container runtime hook
nvidia-container-runtime - NVIDIA container runtime

From https://nvidia.github.io/libnvidia-container/, Debian 8/9/10 on x86_64 should be supported. Can you help me with this? Thanks!

Can you help me with this? Thanks!

Most helpful comment

you can try this !!! it works for me!!!

$ 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

All 14 comments

+1

I have installed it after adding the distribution in this link and than download it
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit

still unable to install the nvidia-container-toolkit, even after re-running suggested steps.
I am on the docker container from NGC, and it is running Ubuntu 16.04.

same issue here, unable to download the toolkit :(

There is no support for nvidia-container-toolkit under debian 8.
There is support under debian 9 and 10 though.

I used Ubuntu 18.04. Also can't install the nvidia-container-toolkit, even after re-running suggested steps.

$ wget https://nvidia.github.io/nvidia-docker/gpgkey --no-check-certificate
$ sudo apt-key add gpgkey
$ 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

$sudo apt-get install -y nvidia-container-toolkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-container-toolkit

$ wget https://nvidia.github.io/nvidia-docker/gpgkey --no-check-certificate
$ sudo apt-key add gpgkey
$ 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

$sudo apt-get install -y nvidia-container-toolkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-container-toolkit

  1. checkout nvidia-docker support list, https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list
  2. if yes, checkout /etc/apt/sources.list.d/nvidia-docker.list is not empty, after you run "curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list"

you can try this !!! it works for me!!!

$ 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

you can try this !!! it works for me!!!

$ 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

This is just worked for me too. There is a detail I want to talk about
When I ran this code
echo distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
It's respond distribution=ubuntu20.04

After that when I ran this code:
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
It's respond

deb https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/$(ARCH) /
#deb https://nvidia.github.io/libnvidia-container/experimental/ubuntu18.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/$(ARCH) /
#deb https://nvidia.github.io/nvidia-container-runtime/experimental/ubuntu18.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/ubuntu18.04/$(ARCH) /

I upgraded my os from ubuntu18.04 to ubuntu20.04 two months ago. It brings me ubuntu18.04 even though I upgraded my operating system. I hope that information help to solve this issue.

Still getting this problem with ubuntu20.10. Can't find a solution anywhere.

@jrsykes have you tried updating /etc/apt/sources.list.d/nvidia-docker.list manually to contain:

deb https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/$(ARCH) /
#deb https://nvidia.github.io/libnvidia-container/experimental/ubuntu18.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/$(ARCH) /
#deb https://nvidia.github.io/nvidia-container-runtime/experimental/ubuntu18.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/ubuntu18.04/$(ARCH) /

Note that we don't have explicit symlinks created for ubuntu20.10.

@elezar That's done it! Many thanks!

Upon checking the contents of /etc/apt/sources.list.d/nvidia-docker.list it said that the distribution was not supported.
For some reason manually updating this file did not work but using the command, with the ubuntu18.04 system explicitly specified did work:
curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu18.04/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

Glad to hear @jrsykes.

~I have created an issue on our side to explicitly add support for Ubuntu 20.10 so that this should not happen in future.~

update: I was just made aware that we don't officially support x.10 versions of ubuntu, so this may not be immediately possible.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vak picture vak  路  4Comments

agnis84 picture agnis84  路  4Comments

o1lo01ol1o picture o1lo01ol1o  路  4Comments

henry-blip picture henry-blip  路  3Comments

meftaul picture meftaul  路  3Comments