Closed alexkutsan closed 1 year ago
Add RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
before RUN apt-get update --yes
works for me
The solution suggested by @grapefruitL didn't work for me. However, I found the solution in this blog post from Nvidia. I ended up adding something like this:
RUN apt-key del 7fa2af80 \
&& wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb \
&& dpkg -i cuda-keyring_1.0-1_all.deb \
&& sed -i '/developer\.download\.nvidia\.com\/compute\/cuda\/repos/d' /etc/apt/sources.list \
&& rm -f /etc/apt/sources.list.d/cuda*.list /etc/apt/sources.list.d/nvidia-ml.list
yeah I just ran into this myself trying to use an image based on 11.2
@giacomolanciano solution is correct (the blog post from nvidia is not quite complete).
only thing I'd add is a cleanup step / do it in /tmp/
:
RUN apt-key del 7fa2af80 && \
cd /tmp/ && \
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb && \
dpkg -i cuda-keyring_1.0-1_all.deb && \
rm cuda-keyring_1.0-1_all.deb && \
sed -i '/developer\.download\.nvidia\.com\/compute\/cuda\/repos/d' /etc/apt/sources.list && \
rm -f /etc/apt/sources.list.d/cuda*.list /etc/apt/sources.list.d/nvidia-ml.list
@ChristophSchranz this can be closed, but it may be helpful to link back to this solution in the README.
Looks like there some issues in public gpg signatures of nvidia:
CI check with error: https://github.com/alexkutsan/gpu-jupyter/runs/6256137815?check_suite_focus=true