Nvidia-docker: Cannot install nvidia-docker2 on xenial with latest official docker release (17.12)

Created on 28 Dec 2017  路  5Comments  路  Source: NVIDIA/nvidia-docker

1. Issue or feature description

I just tried installing nvidia-docker2, but it failed with this error:

$ 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.1~ce-0~ubuntu) but 17.12.0~ce-0~ubuntu is to be installed or
                           docker-ee (= 17.09.1~ee-0~ubuntu) but it is not installable
E: Unable to correct problems, you have held broken packages.

As it turns out, I have version 17.12 of docker-ce:

$ docker --version
Docker version 17.12.0-ce, build c97c6d6
$ apt list docker-ce -a
Listing... Done
docker-ce/xenial,now 17.12.0~ce-0~ubuntu amd64 [installed]
docker-ce/xenial 17.09.1~ce-0~ubuntu amd64
docker-ce/xenial 17.09.0~ce-0~ubuntu amd64
docker-ce/xenial 17.06.2~ce-0~ubuntu amd64
docker-ce/xenial 17.06.1~ce-0~ubuntu amd64
docker-ce/xenial 17.06.0~ce-0~ubuntu amd64
docker-ce/xenial 17.03.2~ce-0~ubuntu-xenial amd64
docker-ce/xenial 17.03.1~ce-0~ubuntu-xenial amd64
docker-ce/xenial 17.03.0~ce-0~ubuntu-xenial amd64

Version 17.12 was released yesterday via the official docker apt repository. I totally understand you need some time to check and release v17.12 compatibility. Just wanted to give you a heads up ;)

2. Steps to reproduce the issue

Just pick a 16.04 Ubuntu system, install latest docker, then install latest nvidia-docker2.

Most helpful comment

Sorry about that, Docker released docker-ce 17.12 yesterday and I didn't have time to push new packages. I should be able to do that today.

All 5 comments

Sorry about that, Docker released docker-ce 17.12 yesterday and I didn't have time to push new packages. I should be able to do that today.

@flx42 That would be really great :) I'm going to test it under Ubuntu 17.10 then, and hopefully it will run.

@flx42 Same issue for Centos

I just published packages for CentOS 7 and Ubuntu Xenial. Please do sudo apt-get update or sudo yum makecache fast.
Not for Debian Stretch yet, their official repo is broken:

$ docker run -ti debian:stretch apt-get update
[...]
Get:9 http://security.debian.org stretch/updates InRelease [63.0 kB]
Err:5 http://deb.debian.org/debian stretch/main amd64 Packages
  404  Not Found [IP: 151.101.0.204 80]
Ign:6 http://deb.debian.org/debian stretch/main all Packages
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Get:10 http://security.debian.org stretch/updates/main amd64 Packages [318 kB]
Fetched 387 kB in 0s (459 kB/s)   
Reading package lists... Done
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found [IP: 151.101.0.204 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

The Debian Stretch issue seems to be solved. All new packages have been released, closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

o1lo01ol1o picture o1lo01ol1o  路  4Comments

mmitterma picture mmitterma  路  4Comments

Anthony-Tatowicz picture Anthony-Tatowicz  路  4Comments

SpotCrowdTech picture SpotCrowdTech  路  3Comments

agnis84 picture agnis84  路  4Comments