Cannot install cuDNN 11.7 on Ubuntu 22.04, shows "The public CUDA GPG key does not appear to be installed"

Good evening all,

Apologies for posting this, as I can see others have had the same issue but none of the suggestions are working for me.

I am at the following stage:

$ sudo dpkg -i cuda-repo-ubuntu2204-11-7-local_11.7.1-515.65.01-1_amd64.deb
(Reading database … 174906 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu2204-11-7-local_11.7.1-515.65.01-1_amd64.deb …
Unpacking cuda-repo-ubuntu2204-11-7-local (11.7.1-515.65.01-1) over (11.7.1-515.65.01-1) …
Setting up cuda-repo-ubuntu2204-11-7-local (11.7.1-515.65.01-1) …

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

I get to this stage and run the last command:

sudo cp /var/cuda-repo-ubuntu2204-11-7-local/cuda-F83D2C4C-keyring.gpg /usr/share/keyrings/

And nothing happens. Please can anyone assist?

1 Like

Having the same issue. The keyring file on my end has a slightly different name, but installing it in /usr/share/keyrings/ does nothing.

After reboot

~/Projects$ sudo apt update
Get:1 file:/var/cuda-repo-ubuntu2204-11-7-local InRelease [1,575 B]
Get:1 file:/var/cuda-repo-ubuntu2204-11-7-local InRelease [1,575 B]
Err:1 file:/var/cuda-repo-ubuntu2204-11-7-local InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ACA8D0E446B62B5F
Hit:2 https//developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease
Hit:3 https//brave-browser-apt-release.s3.brave.com stable InRelease
Hit:4 http//us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:5 http//us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http//security.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 http//us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists… Done
W: GPG error: file:/var/cuda-repo-ubuntu2204-11-7-local InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ACA8D0E446B62B5F
E: The repository ‘file:/var/cuda-repo-ubuntu2204-11-7-local InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

despite that:

suda apt upgrade
sudo apt-get install cuda

seemed to do the job.