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.