TensorRT install required keyring(7fa2af80) that is deprecated as per the cuda install instructions


Deprecated CUDA keyrings are still required for nvidia software, specifically for tensorRT


TensorRT Version: 8.2.2
GPU Type: RTX 3090
Nvidia Driver Version: 515.43.04
CUDA Version: 11.7
CUDNN Version:
Operating System + Version: Ubuntu:22.04
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files

Cuda install instructions specifically state that keyring 7fa2af80 is deprecated and that it should be removed.

Steps To Reproduce

On installation steps of tensorRT, running:

sudo dpkg -i nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.2.2.1-ga-20211214_1-1_amd64.deb

results in the following error:

The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo apt-key add /var/nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.2.2.1-ga-20211214/7fa2af80.pub

So are the cuda public keys deprecated or not?


Request you to share the model, script, profiler, and performance output if not shared already so that we can help you better.

Alternatively, you can try running your model with trtexec command.

While measuring the model performance, make sure you consider the latency and throughput of the network inference, excluding the data pre and post-processing overhead.
Please refer to the below links for more details:



This is complete non-sequitur. My questions was about the installation process and deprecated keyring which in effect is still not deprecated. How am I supposed to have txtexec w/o a functional trt install?

The old keys are not valid anymore and need to be updated before the repos will work.
Have a look at the instructions here : Notice: CUDA Linux Repository Key Rotation , I hope they help.

Sorry for any confusion.

The install instructions you linked also has some instructions to install new key:\https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation
Please let us know if any of those instructions failed.
once the new keys have been installed, hopefully everything will be OK

Thank you. The instructions seem to/should work. The tensorRT version requires cuda <=11.4 and >=11.0. But I opened this issue mainly to just let you guys know that a deprecated keyring is still useful in the install.