# yum list installed|grep docker
containerd.io.x86_64 1.2.0-3.el7 @docker-ce-stable
docker-ce.x86_64 3:18.09.0-3.el7 @docker-ce-stable
docker-ce-cli.x86_64 1:18.09.0-3.el7 @docker-ce-stable
# yum install -y nvidia-docker2
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: repos-va.psychz.net
* epel: mirror.us.leaseweb.net
* extras: repos-va.psychz.net
* ius: archive.linux.duke.edu
* updates: repos-va.psychz.net
libnvidia-container/x86_64/signature | 455 B 00:00:00
Retrieving key from https://nvidia.github.io/libnvidia-container/gpgkey
libnvidia-container/x86_64/signature | 2.0 kB 00:00:00 !!!
https://nvidia.github.io/libnvidia-container/centos7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for libnvidia-container
Trying other mirror.
nvidia-container-runtime/x86_64/signature | 455 B 00:00:00
Retrieving key from https://nvidia.github.io/nvidia-container-runtime/gpgkey
nvidia-container-runtime/x86_64/signature | 2.0 kB 00:00:00 !!!
https://nvidia.github.io/nvidia-container-runtime/centos7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for nvidia-container-runtime
Trying other mirror.
nvidia-docker/x86_64/signature | 455 B 00:00:00
Retrieving key from https://nvidia.github.io/nvidia-docker/gpgkey
nvidia-docker/x86_64/signature | 2.0 kB 00:00:00 !!!
https://nvidia.github.io/nvidia-docker/centos7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for nvidia-docker
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package nvidia-docker2.noarch 0:2.0.3-1.docker18.06.1.ce will be installed
--> Processing Dependency: nvidia-container-runtime = 2.0.0-1.docker18.06.1 for package: nvidia-docker2-2.0.3-1.docker18.06.1.ce.noarch
--> Processing Dependency: docker-ce = 18.06.1.ce for package: nvidia-docker2-2.0.3-1.docker18.06.1.ce.noarch
--> Running transaction check
---> Package nvidia-container-runtime.x86_64 0:2.0.0-1.docker18.06.1 will be installed
---> Package nvidia-docker2.noarch 0:2.0.3-1.docker18.06.1.ce will be installed
--> Processing Dependency: docker-ce = 18.06.1.ce for package: nvidia-docker2-2.0.3-1.docker18.06.1.ce.noarch
--> Finished Dependency Resolution
Error: Package: nvidia-docker2-2.0.3-1.docker18.06.1.ce.noarch (nvidia-docker)
Requires: docker-ce = 18.06.1.ce
Installed: 3:docker-ce-18.09.0-3.el7.x86_64 (@docker-ce-stable)
docker-ce = 3:18.09.0-3.el7
Available: docker-ce-17.03.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.03.0.ce-1.el7.centos
Available: docker-ce-17.03.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.03.1.ce-1.el7.centos
Available: docker-ce-17.03.2.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.03.2.ce-1.el7.centos
Available: docker-ce-17.03.3.ce-1.el7.x86_64 (docker-ce-stable)
docker-ce = 17.03.3.ce-1.el7
Available: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.06.0.ce-1.el7.centos
Available: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.06.1.ce-1.el7.centos
Available: docker-ce-17.06.2.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.06.2.ce-1.el7.centos
Available: docker-ce-17.09.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.09.0.ce-1.el7.centos
Available: docker-ce-17.09.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.09.1.ce-1.el7.centos
Available: docker-ce-17.12.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.12.0.ce-1.el7.centos
Available: docker-ce-17.12.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 17.12.1.ce-1.el7.centos
Available: docker-ce-18.03.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 18.03.0.ce-1.el7.centos
Available: docker-ce-18.03.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
docker-ce = 18.03.1.ce-1.el7.centos
Available: docker-ce-18.06.0.ce-3.el7.x86_64 (docker-ce-stable)
docker-ce = 18.06.0.ce-3.el7
Available: docker-ce-18.06.1.ce-3.el7.x86_64 (docker-ce-stable)
docker-ce = 18.06.1.ce-3.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I think you are using stale repository data because of this error:
Retrieving key from https://nvidia.github.io/nvidia-docker/gpgkey
nvidia-docker/x86_64/signature | 2.0 kB 00:00:00 !!!
https://nvidia.github.io/nvidia-docker/centos7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for nvidia-docker
Trying other mirror.
We updated our public key, so you need to update, see the instructions here in "Updating repository keys":
https://nvidia.github.io/nvidia-docker/
I followed the instructions at https://nvidia.github.io/nvidia-docker/ however sudo yum makecache fails:
# sudo yum makecache
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 18 kB 00:00:00
* base: repos-va.psychz.net
* epel: mirror.us.leaseweb.net
* extras: repos-va.psychz.net
* ius: archive.linux.duke.edu
* updates: repos-va.psychz.net
base | 3.6 kB 00:00:00
code | 2.9 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
extras | 3.4 kB 00:00:00
google-chrome | 1.3 kB 00:00:00
influxdb | 2.5 kB 00:00:00
ius | 2.3 kB 00:00:00
libnvidia-container/x86_64/signature | 455 B 00:00:00
Retrieving key from https://nvidia.github.io/libnvidia-container/gpgkey
libnvidia-container/x86_64/signature | 2.0 kB 00:00:00 !!!
https://nvidia.github.io/libnvidia-container/centos7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for libnvidia-container
Trying other mirror.
mono-centos7-stable | 2.9 kB 00:00:00
nodesource | 2.5 kB 00:00:00
nvidia-container-runtime/x86_64/signature | 455 B 00:00:00
Retrieving key from https://nvidia.github.io/nvidia-container-runtime/gpgkey
nvidia-container-runtime/x86_64/signature | 2.0 kB 00:00:00 !!!
https://nvidia.github.io/nvidia-container-runtime/centos7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for nvidia-container-runtime
Trying other mirror.
nvidia-docker/x86_64/signature | 455 B 00:00:00
Retrieving key from https://nvidia.github.io/nvidia-docker/gpgkey
Importing GPG key 0xF796ECB0:
Userid : "NVIDIA CORPORATION (Open Source Projects) <[email protected]>"
Fingerprint: c95b 321b 61e8 8c18 09c4 f759 ddca e044 f796 ecb0
From : https://nvidia.github.io/nvidia-docker/gpgkey
Is this ok [y/N]: y
nvidia-docker/x86_64/signature | 2.0 kB 00:00:02 !!!
updates | 3.4 kB 00:00:00
(1/26): code/other_db | 3.4 kB 00:00:00
(2/26): base/7/x86_64/other_db | 2.5 MB 00:00:00
(3/26): docker-ce-stable/x86_64/filelists_db | 10 kB 00:00:00
(4/26): code/filelists_db | 1.2 MB 00:00:00
(5/26): base/7/x86_64/filelists_db | 6.9 MB 00:00:00
(6/26): docker-ce-stable/x86_64/other_db | 107 kB 00:00:00
(7/26): epel/x86_64/filelists | 10 MB 00:00:01
(8/26): epel/x86_64/other | 2.2 MB 00:00:00
(9/26): extras/7/x86_64/other_db | 126 kB 00:00:00
(10/26): extras/7/x86_64/prestodelta | 100 kB 00:00:00
(11/26): extras/7/x86_64/filelists_db | 603 kB 00:00:00
(12/26): google-chrome/filelists | 1.7 kB 00:00:00
(13/26): google-chrome/other | 369 B 00:00:00
(14/26): ius/x86_64/other_db | 159 kB 00:00:00
(15/26): influxdb/7/x86_64/filelists_db | 21 kB 00:00:00
(16/26): influxdb/7/x86_64/other_db | 6.0 kB 00:00:00
(17/26): mono-centos7-stable/other_db | 85 kB 00:00:00
(18/26): mono-centos7-stable/filelists_db | 692 kB 00:00:00
(19/26): nodesource/x86_64/filelists_db | 560 kB 00:00:00
(20/26): nodesource/x86_64/other_db | 6.1 kB 00:00:00
(21/26): nvidia-docker/x86_64/filelists | 2.8 kB 00:00:00
(22/26): nvidia-docker/x86_64/other | 3.6 kB 00:00:00
(23/26): nvidia-docker/x86_64/primary | 4.4 kB 00:00:00
(24/26): updates/7/x86_64/other_db | 578 kB 00:00:00
(25/26): updates/7/x86_64/filelists_db | 3.4 MB 00:00:00
(26/26): ius/x86_64/filelists_db | 810 kB 00:00:01
epel 12708/12708
epel 12708/12708
google-chrome 3/3
google-chrome 3/3
libnvidia-container/x86_64/filelists | 3.1 kB 00:00:00
libnvidia-container 35/35
libnvidia-container/x86_64/other | 4.3 kB 00:00:00
libnvidia-container 35/35
https://nvidia.github.io/nvidia-container-runtime/centos7/x86_64/repodata/ee31bae0cb07ecf80797e8fc7a24fff36442d86e5e54a161b57d5a624c4b19bec3048fb762493e59684280b3b30c7af99d79845e54b90a27389b8abb92728a0f-filelists.xml.xz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
One of the configured repositories failed (nvidia-container-runtime),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=nvidia-container-runtime ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable nvidia-container-runtime
or
subscription-manager repos --disable=nvidia-container-runtime
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=nvidia-container-runtime.skip_if_unavailable=true
failure: repodata/ee31bae0cb07ecf80797e8fc7a24fff36442d86e5e54a161b57d5a624c4b19bec3048fb762493e59684280b3b30c7af99d79845e54b90a27389b8abb92728a0f-filelists.xml.xz from nvidia-container-runtime: [Errno 256] No more mirrors to try.
https://nvidia.github.io/nvidia-container-runtime/centos7/x86_64/repodata/ee31bae0cb07ecf80797e8fc7a24fff36442d86e5e54a161b57d5a624c4b19bec3048fb762493e59684280b3b30c7af99d79845e54b90a27389b8abb92728a0f-filelists.xml.xz: [Errno 14] HTTPS Error 404 - Not Found
Oh, ok, that's painful but it looks like you need to run the gpg remove command for all 3 repos: nvidia-docker, nvidia-container-runtime and libnvidia-container.
Removed the keys and was able to install. However, I have another error. Let me see if there is an issue that covers my new problem.
Thanks for the help.
I got a error this page https://nvidia.github.io/nvidia-docker/ to update gpg key as centos7
$ DIST=$(sed -n 's/releasever=//p' /etc/yum.conf)
$ DIST=${DIST:-$(. /etc/os-release; echo $VERSION_ID)}
$ sudo rpm -e gpg-pubkey-f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/$DIST/*/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/latest/nvidia-docker/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/latest/nvidia-container-runtime/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/latest/libnvidia-container/gpgdir --delete-key f796ecb0
$ sudo yum update
the error like /var/lib/yum/repos/x86_64/latest/libnvidia-container/gpgdir No such file or directory
but centos7 not have this directory /var/lib/yum/repos/x86_64/latest ,only have 7/
so create a soft link latest link to 7/ resolve this,it's work for me
thx
Most helpful comment
I got a error this page https://nvidia.github.io/nvidia-docker/ to update gpg key as centos7
the error like
/var/lib/yum/repos/x86_64/latest/libnvidia-container/gpgdir No such file or directorybut centos7 not have this directory
/var/lib/yum/repos/x86_64/latest,only have7/so create a soft link
latestlink to7/resolve this,it's work for methx