Ubuntu 18.04 CUDA Toolkit 10.1 install NO_PUBKEY F60F4B3D7FA2AF80

After downloading the Installer for Linux Ubuntu 18.04 x86_64

wget “https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb

Then running:

sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb

Then running:

sudo apt-get update

I get the following.

W: GPG error: file:/var/cuda-repo-10-1-local-10.1.168-418.67 Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
E: The repository ‘file:/var/cuda-repo-10-1-local-10.1.168-418.67 Release’ 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.

Is this Release supposed to be signed?

Follow the instructions on the download page:

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal

Yes Sir, that is what I was working from.

Line 2 of the instructions should say, “Use the command shown during Step 1 to create the public key”.

I understand now after carefully watching the output.

Well, I can only go by what you have posted here. At one point, you said:

sudo dpkg -i cuda-repo...

then in the next step you indicated, you said:

sudo apt-get update

If that is actually the sequence you followed, then you skipped step 2 in the instructions I linked:

sudo apt-key add...

Dear all,

I follow this page https://docs.nvidia.com/deeplearning/sdk/tensorrt-archived/tensorrt-515/tensorrt-install-guide/index.html

I installed Cuda 10.1.168 successfully.

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Apr_24_19:10:27_PDT_2019
Cuda compilation tools, release 10.1, V10.1.168

I no success at

$ sudo apt-get install libnvinfer5=5.1.x-1+cuda10.1 libnvinfer-dev=5.1.x-1+cuda10.1
$ sudo apt-get update
W: GPG error: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release: The following signatures were invalid: BADSIG F60F4B3D7FA2AF80 cudatools <cudatools@nvidia.com>
E: The repository 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release' 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.

Please help.

Thank you very much in advance.

Warmest Regards,
Suryadi