Can’t install cuda onubuntu20.04“The public CUDA GPG key does not appear to be installed.”

I follow the https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#choose-installation-method of cuda on ubuntu. I get an error followed as:

Reading database ... 343931 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu2004-11-7-local_11.7.0-515.43.04-1_amd64.deb ...
Unpacking cuda-repo-ubuntu2004-11-7-local (11.7.0-515.43.04-1) over (11.7.0-515.43.04-1) ...
Setting up cuda-repo-ubuntu2004-11-7-local (11.7.0-515.43.04-1) ...

The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo cp /var/cuda-repo-ubuntu2004-11-7-local/cuda-15CCF53C-keyring.gpg /usr/share/keyrings/

I tried the option sudo cp /var/cuda-repo-ubuntu2004-11-7-local/cuda-15CCF53C-keyring.gpg /usr/share/keyrings/, but it doesn’t work.

1 Like

I have exactly the same issue. The key is in /usr/share/keyrings/ , but it is not recognized… please fix this asap.

Hello, I have found a solution. There is a similar question here.

You can try:

sudo cp /var/cuda-repo-wsl-ubuntu-11-7-local/cuda-15CCF53C-keyring.gpg \
 /usr/share/keyrings/cuda-archive-keyring.gpg

If there alreay is a cuda-archive-keyring.gpg in /usr/share/keyrings, do not forget to backup it first.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.