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

CUDA / Docker & GPG error #619

Closed
MattiasM80 opened this issue Jan 22, 2018 · 16 comments
Closed

CUDA / Docker & GPG error #619

MattiasM80 opened this issue Jan 22, 2018 · 16 comments

Comments

@MattiasM80
Copy link

MattiasM80 commented Jan 22, 2018

1. Issue or feature description:

Installation of cuda inside docker (ubuntu 16) fails. From the docker build log:

Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:4 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release [564 B]
Hit:7 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release
Hit:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release.gpg [801 B]
Ign:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release.gpg
Hit:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Packages
Err:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Packages
  Hash Sum mismatch
Fetched 1365 B in 0s (2658 B/s)
Reading package lists...
�[91mW: GPG error: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release: The following signatures were invalid: BADSIG F60F4B3D7FA2AF80 cudatools <cudatools@nvidia.com>
W: The repository 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release' is not signed.
E: Failed to fetch store:/var/lib/apt/lists/partial/developer.download.nvidia.com_compute_cuda_repos_ubuntu1604_x86%5f64_Packages.gz  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

2. Steps to reproduce the issue

Dockerfile.txt

@flx42
Copy link
Member

flx42 commented Jan 22, 2018

Seems to be the same than #571 and #613.
But the reporter in #613 said the issue is now fixed for him. Where are you located?

@MattiasM80
Copy link
Author

In the US.
Is there anything on my side that I can do to resolve this? Is there another way to install the Nvidia dependencies?

@flx42
Copy link
Member

flx42 commented Jan 22, 2018

Can you do the wget mentioned here? #613 (comment)

@MattiasM80
Copy link
Author

RUN wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/Release
---> Running in 7e57c56dd794
�[91m--2018-01-22 19:29:52-- http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/Release
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... �[0m�[91m192.229.211.70, 2606:2800:21f:3aa:dcf:37b:1ed6:1fb
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|192.229.211.70|:80... �[0m�[91mconnected.
HTTP request sent, awaiting response... �[0m�[91m200 OK
Length: 564 [application/octet-stream]
Saving to: 'Release'
�[0m�[91m
0K 100% 72.2M=0s

�[0m�[91m2018-01-22 19:29:52 (72.2 MB/s) - 'Release' saved [564/564]

�[0mRemoving intermediate container 7e57c56dd794

@MattiasM80
Copy link
Author

@flx42 Anything I can do on my side to avoid this problem?

@flx42
Copy link
Member

flx42 commented Jan 22, 2018

You can only workaround the problem. I suggest you use our prebuilt devel images on DockerHub, then remove the cuda.list file for now.

@MattiasM80
Copy link
Author

When is a fix planned?
I need an ubuntu 16 image with cuda 8 (not 9). What docker FROM command should I use?
Could you be more specific on how to "remove the cuda.list file". Thanks!

@flx42
Copy link
Member

flx42 commented Jan 22, 2018

I don't know when it will be fixed.

This is a potential workaround:

FROM nvidia/cuda:8.0-cudnn6-devel-ubuntu16.04

RUN rm /etc/apt/sources.list.d/cuda.list

@MattiasM80
Copy link
Author

MattiasM80 commented Jan 22, 2018

Thanks!
What would the non devel equivalent for that base image be?
FROM nvidia/cuda:8.0-cudnn6-ubuntu16.04 was not found.

@flx42
Copy link
Member

flx42 commented Jan 23, 2018

nvidia/cuda:8.0-cudnn6-runtime-ubuntu16.04

@jedichien
Copy link

Here is my solution
in your Dockerfile add this line RUN apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub before apt-get update

@flx42
Copy link
Member

flx42 commented Jan 23, 2018

That's not a good idea. Let us understand what it going on first. Thanks.

@3XX0
Copy link
Member

3XX0 commented Jan 23, 2018

@MattiasM80 Does it work for you now? If not, what's the output of apt-key export 7FA2AF80 in the container after you just pulled it?

And after the apt-get update can you try the following command:

apt-key adv --verify /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu1604_x86%5f64_Release.gpg /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu1604_x86%5f64_Release```

@3XX0
Copy link
Member

3XX0 commented Feb 3, 2018

@MattiasM80 Is it resolved?

@3XX0 3XX0 closed this as completed Feb 9, 2018
@MattiasM80
Copy link
Author

@flx42 FROM nvidia/cuda:8.0-cudnn6-runtime-ubuntu16.04 worked excellent.
@3XX0 I didn't get to try `apt-key adv --verify /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu1604_x86%5f64_Release.gpg /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu1604_x86%5f64_Release````

Excuse me for the late reply.

@TaylorHere
Copy link

I got the same errs, the I just rm all the source about NVIDIA things, but it’s not a good way.

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

5 participants