Nvidia-docker: Ubuntu 16.04 docker-ce dependency mismatch

Created on 1 Mar 2019  ยท  6Comments  ยท  Source: NVIDIA/nvidia-docker

1. Issue or feature description

Docker just pushed a new version. New installs of nvidia-docker fail due to a dependency version mismatch.

2. Steps to reproduce the issue

  1. Install docker-ce per documentation
  2. Install nvidia-docker per documentation
  3. Note error message
 The following packages have unmet dependencies:
    nvidia-docker2 : Depends: docker-ce (= 5:18.09.2~3-0~ubuntu-xenial) but 5:18.09.3~3-0~ubuntu-xenial is to be installed 

Most helpful comment

We published the new packages :)

All 6 comments

same with centos...

Error message:

Error: Package: nvidia-docker2-2.0.3-1.docker18.09.2.ce.noarch (nvidia-docker)
           Requires: docker-ce = 3:18.09.2
           Installed: 3:docker-ce-18.09.3-3.el7.x86_64 (@docker-ce-stable)
               docker-ce = 3:18.09.3-3.el7

me too...
The following packages have unmet dependencies:
nvidia-docker2 : Depends: docker-ce (= 5:18.09.2~3-0~ubuntu-xenial) but 5:18.09.3~3-0~ubuntu-xenial is to be installed or
docker-ee (= 5:18.09.2~3-0~ubuntu-xenial) but it is not installable

Until NVIDIA solves this you can install a previous version of docker. In Ubuntu you can list available versions with

apt-cache madison docker-ce

then install a specific version with

sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io

For me, the following version worked on ubuntu 16:

sudo apt-get install docker-ce=5:18.09.2~3-0~ubuntu-xenial docker-ce-cli=5:18.09.2~3-0~ubuntu-xenial containerd.io

Same on Ubuntu 18.04.2 LTS

nvidia-docker2 : Depends: docker-ce (= 5:18.09.2~3-0~ubuntu-bionic) but 5:18.09.3~3-0~ubuntu-bionic is to be installed

Same here on Linux Mint 19.1, Ubuntu 18.04 base: there's a version mismatch in the dependency: latest docker-ce is on minor version 5:18.09.3~3-0~ubuntu-bionic vs. nvidia-docker required 5:18.09.2~3-0~ubuntu-bionic

Maybe it's a good idea to not specify minor versions as dependencies and only major ones?

โฏ sudo apt-get install 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 (= 5:18.09.2~3-0~ubuntu-bionic) but 5:18.09.3~3-0~ubuntu-bionic is to be installed or
                           docker-ee (= 5:18.09.2~3-0~ubuntu-bionic) but it is not installable
E: Unable to correct problems, you have held broken packages.

~
โฏ dpkg -l '*docker*'
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
+++-==============================================================-====================================-====================================-=================================================================================================================================
un  docker                                                         <none>                               <none>                               (no description available)
ii  docker-ce                                                      5:18.09.3~3-0~ubuntu-bionic          amd64                                Docker: the open-source application container engine
ii  docker-ce-cli                                                  5:18.09.3~3-0~ubuntu-bionic          amd64                                Docker CLI: the open-source application container engine
un  docker-engine                                                  <none>                               <none>                               (no description available)
un  docker-engine-cs                                               <none>                               <none>                               (no description available)
un  docker.io                                                      <none>                               <none>                               (no description available)
un  lxc-docker                                                     <none>                               <none>                               (no description available)
un  lxc-docker-virtual-package                                     <none>                               <none>                               (no description available)

We published the new packages :)

Was this page helpful?
0 / 5 - 0 ratings