Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Could not locate the package nvidia-docker2 #575

Closed
IreneXTang opened this issue Dec 14, 2017 · 7 comments
Closed

Could not locate the package nvidia-docker2 #575

IreneXTang opened this issue Dec 14, 2017 · 7 comments

Comments

@IreneXTang
Copy link

IreneXTang commented Dec 14, 2017

$ uname -a

Linux vcl-HP-Z640-Workstation 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | > sudo apt-key add -

gpg: Can not find valid OpenPGP data.

$ wget https://nvidia.github.io/nvidia-docker/gpgkey

--2017-12-14 20:23:30-- https://nvidia.github.io/nvidia-docker/gpgkey
Resolving host nvidia.github.io (nvidia.github.io) ... 151.101.229.147, 2a04: 4e42: 36 :: 403
Connecting nvidia.github.io (nvidia.github.io) | 151.101.229.147 |: 443 ... Connected.
HTTP request made, waiting for response ... 200 OK
Length: 3163 (3.1K) [application / octet-stream]
Saving to: "gpgkey"
gpgkey 100%[============================================================================>] 3.09K --.-KB/s in 0s
2017-12-14 20:23:31 (48.8 MB/s) - Saved “gpgkey” [3163/3163])

$ sudo apt-key add gpgkey

OK

$ curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64/nvidia-docker.list | \ > sudo tee /etc/apt/sources.list.d/nvidia-docker.list

$ sudo apt-get install nvidia-docker2

Reading package list ... done
Analyzing the package's dependency tree
Reading status message ... done
E: Could not locate the package nvidia-docker2

After making sure all prerequisites are satisfied, I obeyed the quickstart in https://github.com/NVIDIA/nvidia-docker for Xenial x86_64, and tried several times, but all failed to download and install nvidia-docker2. Could you tell me what the problem is?

@ghost
Copy link

ghost commented Dec 14, 2017

Similar problem. I am using CentOS7.

sudo yum install -y nvidia-docker2

gives me

https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 12] Timeout on https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: (28, 'Connection timed out after 30031 milliseconds')

Been trying for a week now.

@flx42
Copy link
Member

flx42 commented Dec 14, 2017

@IreneTang93 Can you try sudo yum makecache fast and try again?

@beingsudeshna your problem seems different, it's the docker repo that timeouts for you.

@IreneXTang
Copy link
Author

@flx42 That command seems for Centos, could you give me a Ubuntu one?

I try sudo apt-get install -y nvidia-docker2, but the result is the same.

$ sudo apt-get install -y nvidia-docker2
Reading package list ... done
Analyzing the package's dependency tree
Reading status message ... done
E: Could not locate the package nvidia-docker2

@flx42
Copy link
Member

flx42 commented Dec 15, 2017

sudo apt-get update on ubuntu.

@IreneXTang
Copy link
Author

IreneXTang commented Dec 15, 2017

@flx42 I just found the file nvidia-docker.list is empty. After using using wget, tee and apt-get update command, the nvidia-docker2 can be searched. However, the Docker version matters.

What kind of docker does nvidia-docker2 need, docker.io, docker-engine, docker-ce or docker-ee?

$ sudo apt-get install -y nvidia-docker2
Reading package list ... done
Analyzing the package's dependency tree
Reading status message ... done
Some packages can not be installed. If you are using unstable distribution, this may be
Because the system can not achieve the status you requested. There may be some software you need in this release
Packages have not been created or they have been removed from the new (entry) directory.
The following information may be helpful in solving problems:

The following packages have unmet dependencies:
Nvidia-docker2: depends: docker-ce (= 17.09.1ce-0ubuntu) but can not install it or
Docker-ee (= 17.09.1ee-0ubuntu) but can not install it

The docker version of my computer:

$ sudo docker version
Client:
Version: 17.05.0-ce
API version: 1.29
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:10:54 2017
OS/Arch: linux/amd64

Server:
Version: 17.05.0-ce
API version: 1.29 (minimum version 1.12)
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:10:54 2017
OS/Arch: linux/amd64
Experimental: false

@flx42
Copy link
Member

flx42 commented Dec 15, 2017

You will need to pin the version you are installing, look at our wiki: flx42/tensorflow@ccdcdf7
But we don't support 17.05, because that's an edge release of docker. we only support stable releases (e.g. 17.03, 17.06, 17.09).

@IreneXTang
Copy link
Author

@flx42 Thanks very much! The problem has been solved!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants