Nvidia-docker: when sudo apt-get install nvidia-docker , ERROR: docker-ce (= 17.09.0~ce-0~ubuntu) but it is not installable

Created on 19 Nov 2017  路  10Comments  路  Source: NVIDIA/nvidia-docker

_The template below is mostly useful for bug reports and support questions. Feel free to remove anything which doesn't apply to you and add more information where it makes sense._

_Also, before reporting a new issue, please make sure that:_


1. Issue or feature description

2. Steps to reproduce the issue

3. Information to attach (optional if deemed irrelevant)

  • [ ] Kernel version from uname -a
  • [ ] Any relevant kernel output lines from dmesg
  • [ ] Driver information from nvidia-smi -a
  • [ ] Docker version from docker version
  • [ ] NVIDIA packages version from dpkg -l '*nvidia*' _or_ rpm -qa '*nvidia*'
  • [ ] NVIDIA container library version from nvidia-container-cli -V
  • [ ] NVIDIA container library logs (see troubleshooting)
  • [ ] Docker command, image and tag used

Most helpful comment

Before installing Nvidia-docker, I have not installed docker of any versions. The problem is that there is no docker repository in the apt source list and it can not find the docker-ce or others.
I have solved the problem by doing as follows:
$ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"

All 10 comments

What's the output of docker version?

@MissLikeWind are you using ubuntu 17.10 with docker edge? In this situation the official docker is ahead of the nvidia-docker, breaking the dependency. I recommend you to downgrade your docker to ubuntu zesty release.
This issue may be related to: https://github.com/NVIDIA/nvidia-docker/issues/502

I have the same issue:

vhaenel@r2d2:~$ sudo apt-get install -y nvidia-docker2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-docker2 : Depends: docker-ce (= 17.09.0~ce-0~ubuntu) but it is not installable or
                           docker-ee (= 17.09.0~ee-0~ubuntu) but it is not installable
E: Unable to correct problems, you have held broken packages.

Here are the relevant infos:

vhaenel@r2d2:~$ uname -a
Linux r2d2 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
vhaenel@r2d2:~$ dmesg | tail
[1025070.223793] raid6: avx2x1   xor() 15242 MB/s
[1025070.271787] raid6: avx2x2   gen() 24750 MB/s
[1025070.319783] raid6: avx2x2   xor() 15679 MB/s
[1025070.367778] raid6: avx2x4   gen() 28026 MB/s
[1025070.415772] raid6: avx2x4   xor() 19680 MB/s
[1025070.415773] raid6: using algorithm avx2x4 gen() 28026 MB/s
[1025070.415773] raid6: .... xor() 19680 MB/s, rmw enabled
[1025070.415774] raid6: using avx2x2 recovery algorithm
[1025070.422894] xor: automatically using best checksumming function   avx       
[1025070.449965] Btrfs loaded, crc32c=crc32c-intel
vhaenel@r2d2:~$ nvidia-smi -a | head

==============NVSMI LOG==============

Timestamp                           : Thu Nov 23 14:18:40 2017
Driver Version                      : 384.90

Attached GPUs                       : 2
GPU 00000000:01:00.0
    Product Name                    : TITAN X (Pascal)
    Product Brand                   : GeForce
vhaenel@r2d2:~$ dpkg -l '*nvidia*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                            Version                              Architecture                         Description
+++-===============================================================-====================================-====================================-===================================================================================================================================
ii  nvidia-375                                                      384.90-0ubuntu0.16.04.1              amd64                                Transitional package for nvidia-384
ii  nvidia-375-dev                                                  384.90-0ubuntu0.16.04.1              amd64                                Transitional package for nvidia-384-dev
ii  nvidia-384                                                      384.90-0ubuntu0.16.04.1              amd64                                NVIDIA binary driver - version 384.90
ii  nvidia-384-dev                                                  384.90-0ubuntu0.16.04.1              amd64                                NVIDIA binary Xorg driver development files
un  nvidia-common                                                   <none>                               <none>                               (no description available)
un  nvidia-driver-binary                                            <none>                               <none>                               (no description available)
un  nvidia-legacy-340xx-vdpau-driver                                <none>                               <none>                               (no description available)
un  nvidia-libopencl1-384                                           <none>                               <none>                               (no description available)
un  nvidia-libopencl1-dev                                           <none>                               <none>                               (no description available)
ii  nvidia-modprobe                                                 375.26-0ubuntu1                      amd64                                Load the NVIDIA kernel driver and create device files
un  nvidia-opencl-icd                                               <none>                               <none>                               (no description available)
ii  nvidia-opencl-icd-375                                           384.90-0ubuntu0.16.04.1              amd64                                Transitional package for nvidia-opencl-icd-384
ii  nvidia-opencl-icd-384                                           384.90-0ubuntu0.16.04.1              amd64                                NVIDIA OpenCL ICD
un  nvidia-persistenced                                             <none>                               <none>                               (no description available)
ii  nvidia-prime                                                    0.8.2                                amd64                                Tools to enable NVIDIA's Prime
ii  nvidia-settings                                                 375.26-0ubuntu1                      amd64                                Tool for configuring the NVIDIA graphics driver
un  nvidia-settings-binary                                          <none>                               <none>                               (no description available)
un  nvidia-smi                                                      <none>                               <none>                               (no description available)
un  nvidia-vdpau-driver                                             <none>                               <none>                               (no description available)
vhaenel@r2d2:~$ nvidia-container-cli -V
nvidia-container-cli: command not found
vhaenel@r2d2:~$ docker version
The program 'docker' is currently not installed. You can install it by typing:
sudo apt install docker.io

I reckon the package dependencies are broken.

Solved by installing docker first. doh!

Before installing Nvidia-docker, I have not installed docker of any versions. The problem is that there is no docker repository in the apt source list and it can not find the docker-ce or others.
I have solved the problem by doing as follows:
$ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"

Yes, the quickstart should mention, that you need to have docker installed.

i had this same error, and thought that docker was already installed, but i had installed it incorrectly (i just ran sudo apt install docker.io). once i uninstalled it and then followed the directions here, then i was able to install nvidia-docker.

The Quickstart and FAQ have been updated.

Thank you Ericherdzik, your commit helps

This will happen if either you have incompatible version of docker installed or docker not installed at all.
In either case, install docker PROPERLY as mentioned in the link ( https://docs.docker.com/install/linux/docker-ce/ubuntu/ ) shared by @kylemcdonald .

If output of command 'apt-cache madison docker-ce' is blank then solve it by step 4 (Adding repository) of same link or as mentioned by @MissLikeWind .

Was this page helpful?
0 / 5 - 0 ratings