The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Release' is not signed

$ dpkg -i cuda-keyring_1.0-1_all.deb

root@e300f860401f:/# dpkg -i cuda-keyring_1.0-1_all.deb
Selecting previously unselected package cuda-keyring.
(Reading database ... 12455 files and directories currently installed.)
Preparing to unpack cuda-keyring_1.0-1_all.deb ...
Unpacking cuda-keyring (1.0-1) ...
Setting up cuda-keyring (1.0-1) ...
root@e300f860401f:/# apt update
E: Conflicting values set for option Signed-By regarding source https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /: /usr/share/keyrings/cuda-archive-keyring.gpg != 
E: The list of sources could not be read.
  • view cuda.list
    $ cat /etc/apt/sources.list.d/cuda.list 
    deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /
    

$ rm /etc/apt/sources.list.d/cuda.list

root@e300f860401f:/# rm /etc/apt/sources.list.d/cuda.list
root@e300f860401f:/# apt update
Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease [1575 B]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                                  
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                              
Ign:4 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Packages [709 kB]
Hit:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease               
Hit:7 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease                               
Err:9 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release.gpg
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
Fetched 709 kB in 2s (397 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
W: Failed to fetch https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/Release.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
W: Some index files failed to download. They have been ignored, or old ones used instead.
  • view nvidia-ml.list
    $ cat /etc/apt/sources.list.d/nvidia-ml.list 
    deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /
    

$ rm /etc/apt/sources.list.d/nvidia-ml.list

root@e300f860401f:/# rm /etc/apt/sources.list.d/nvidia-ml.list 
root@e300f860401f:/# apt update
Hit:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                                
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.

Done!

@see Updating the CUDA Linux GPG Repository Key

1 Like