nvidia-docker icon indicating copy to clipboard operation
nvidia-docker copied to clipboard

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

Open MissLikeWind opened this issue 9 years ago • 10 comments

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

MissLikeWind avatar Nov 19 '17 13:11 MissLikeWind

What's the output of docker version?

flx42 avatar Nov 20 '17 03:11 flx42

@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

tibaes avatar Nov 21 '17 12:11 tibaes

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.

esc avatar Nov 23 '17 13:11 esc

Solved by installing docker first. doh!

esc avatar Nov 23 '17 13:11 esc

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"

MissLikeWind avatar Nov 23 '17 13:11 MissLikeWind

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

esc avatar Nov 23 '17 13:11 esc

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.

kylemcdonald avatar Nov 29 '17 20:11 kylemcdonald

The Quickstart and FAQ have been updated.

3XX0 avatar Nov 30 '17 10:11 3XX0

Thank you Ericherdzik, your commit helps

suthakar avatar Jan 04 '18 09:01 suthakar

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 .

gitvipin avatar Jan 17 '19 13:01 gitvipin