I know this issue came up earlier, but none of the solutions are working in my case:
sudo apt-get install nvidia-docker2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-docker2
sudo apt-get install nvidia-docker2
sudo wget https://nvidia.github.io/nvidia-docker/gpgkey
--2019-04-10 05:58:01-- https://nvidia.github.io/nvidia-docker/gpgkey
Resolving proxy.)... 141.42.5.215
Connecting to proxy.)|141.42.5.215|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3163 (3.1K) [application/octet-stream]
Saving to: ‘gpgkey.6’
gpgkey.6 100%[===================>] 3.09K --.-KB/s in 0s
2019-04-10 05:58:01 (39.7 MB/s) - ‘gpgkey.6’ saved [3163/3163]
labor:~$ sudo apt-key add gpgkey.6
OK
labor:~$ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
labor:~$ sudo apt-get update
.....
labor:~$ sudo apt-get install nvidia-docker2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-docker2
docker version:
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Wed Jun 20 21:43:51 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Wed Jun 20 21:42:00 2018
OS/Arch: linux/amd64
Experimental: false
dpkg -l | grep docker
ii docker-ce 18.03.1~ce~3-0~ubuntu amd64 Docker: the open-source application container engine
uname -a
Linux 4.17.0-041700-generic #201806041953 SMP Mon Jun 4 19:55:25 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
nvidia-smi
-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56 Driver Version: 418.56 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro P6000 Off | 00000000:21:00.0 On | Off |
| 26% 53C P8 15W / 250W | 352MiB / 24446MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 2802 G /usr/lib/xorg/Xorg 57MiB |
| 0 3126 G /usr/bin/gnome-shell 57MiB |
| 0 3607 G /usr/lib/xorg/Xorg 145MiB |
| 0 3720 G /usr/bin/gnome-shell 89MiB |
+-----------------------------------------------------------------------------+
Also the prerequistes have been installed. Is there a way to check if they were correctly installed?
Thank you for your help!
You aren't doing the apt-get update.
I did it (the apt-get update).
Is there a way to check, if the prerequesites have been correctly installed? How looks your /etc/apt/sources.list? Would be very helpfu if you could post what's in your's after the prerequisites have been installed.
When I look in my /etc/apt/sources.list.d/nvidia-docke.list then it's empty. Is tehre something in yours?
Please run the full instructions:
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
# Install nvidia-docker2 and reload the Docker daemon configuration
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
Most helpful comment
Please run the full instructions: