-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPG error "public key is not available" in Ubuntu 20.04 CUDA 11.4.0 image while building #257
Comments
Possible duplicate of #258 |
The instructions in that notice do not work in the docker image.
Results in
|
Tried following the methods in announcement and didn't work either. Well done Nvidia. |
A workaround seems to do the trick for me. Add those lines before
Also check out discussions here |
I noticed different keys available to day for the repo. wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin |
This is what I used in the dockerfile to fix this issue.
|
None of these hacks above are sufficiently reliable yet, as NVIDIA is still working on the changes. Some latest CUDA and Ubuntu versions are already working (images such as CUDA 11.6 for Ubuntu 20.04 can be rebuild from their code at Gitlab), but others (older CUDA/Ubuntu versions such as CUDA 11.2) may still fail. So given that CUDA 11.1 .. 11.6 toolkits are compatible with the same drivers version (>=450.80.02) it should be possible to adapt NVIDIA's More info: https://gitlab.com/nvidia/container-images/cuda/-/issues/158 |
nvidia/cuda:11.2.1-base-ubuntu20.04 is updated this afternoon. I pull the updated image and the pub key problem disappeared |
seems working for me (kaldi's official dockerfile ubuntu1804) |
We are having the same problem with the image |
This works for me |
This may add nothing productive to the conversation but I thought it worth mentioning |
The docker image build fails with gpg key error as noted here https://github.com/NVIDIA/nvidia-docker/issues/1632
This worked for me as well. |
having the same issue on a 4gb Jetson Nano |
* remove sparseml Dockerfile cuda temporary error fix the original error has been fixed (https://github.com/NVIDIA/nvidia-docker/issues/1632) and pulling the latest nvidia cuda ubuntu image and running the fix will produce an error **test_plan** build passes locally (second rm command gets a no such file error previously) * make fix conditional * command fix
First error is from Ubuntu cuda GPG error "public key is not available": https://github.com/NVIDIA/nvidia-docker/issues/1632#issuecomment-1112667716. Second error is from setup.py requiring README.md but Dockerfile does not copy README.md into the docker image.
I found this issue searching up my problem on google (working with a GCP instance with nvidia GPU, no docker). Eventually following the steps here worked for me: https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/ |
This is the only solution that worked for ubuntu 20.04 desktop. |
This worked for me. |
try this:
|
This trick works for me. Thank you! My system is Ubuntu 22.04. The base singularity image was built on Ubuntu 18.04 |
Thanks, this works for me. |
I encountered a similar issue with the nvidia/cuda Docker container, but the specific files mentioned in the workaround were not present in my container. Instead, the relevant file in my case was Therefore, it is advisable to check the destination of the apt source list before attempting to delete them. |
This makes the gpg key work, I don't know why. See here: https://github.com/NVIDIA/nvidia-docker/issues/1632#issuecomment-1112667716
Working Docker solution is as follows, also with persistence across services being built; ADD "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin" "/tmp/cuda-ubuntu2004.pin"
ADD "https://developer.download.nvidia.com/compute/cuda/11.3.1/local_installers/cuda-repo-ubuntu2004-11-3-local_11.3.1-465.19.01-1_amd64.deb" "/tmp/cuda-repo-ubuntu2004-11-3-local_11.3.1-465.19.01-1_amd64.deb"
ADD "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub" "/etc/apt/7fa2af80.pub"
RUN cat /etc/apt/7fa2af80.pub | apt-key add - && \
dpkg -i /tmp/cuda-repo-ubuntu2004-11-3-local_11.3.1-465.19.01-1_amd64.deb && \
apt update && apt -y install cuda && \ |
1. Issue or feature description
The following Dockerfile does not build today (April 28, 2022), even though it built successfully yesterday:
The error is the following:
2. Steps to reproduce the issue
Create the above dockerfile and attempt to
docker build
it.3. Information to attach (optional if deemed irrelevant)
I am running
Docker version 20.10.14, build a224086
on WSL 2 Ubuntu 20.04 on Windows 10 Pro, Version 21H2, OS Build 19044.1645nvidia-smi on my host machine:
The text was updated successfully, but these errors were encountered: