Getting errors while trying to install TensorRT 8.5.3 in CUDA 11.8 environment

Description

I am getting the following error while trying to run the command:

sudo apt-get install tensorrt=8.5.3.1-1+cuda11.8

Reading package lists… Done
Building dependency tree
Reading state information… Done
tensorrt is already the newest version (8.5.3.1-1+cuda11.8).
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
tensorrt : Depends: libnvinfer8 (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvinfer-plugin8 (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvparsers8 (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvonnxparsers8 (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvinfer-bin (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvinfer-dev (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvinfer-plugin-dev (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvparsers-dev (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvonnxparsers-dev (= 8.5.3-1+cuda11.8) but it is not going to be installed
Depends: libnvinfer-samples (= 8.5.3-1+cuda11.8) but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Environment

TensorRT Version: 8.5.3.1
GPU Type: RTX 3080
Nvidia Driver Version: 520
CUDA Version: 11.8
CUDNN Version: 8.6.0.163
Operating System + Version: Ubuntu 20.04
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Steps To Reproduce

os=“ubuntu2004”
tag=“8.5.3.1-cuda-11.8”
sudo dpkg -i nv-tensorrt-local-repo-${os}-${tag}_1.0-1_amd64.deb
sudo cp /var/nv-tensorrt-local-repo-${os}-${tag}/*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get install tensorrt=8.5.3.1-1+cuda11.8

Hi,
Please refer to the installation steps from the below link if in case you are missing on anything

Also, we suggest you to use TRT NGC containers to avoid any system dependency related issues.

Thanks!

Hello! I followed all the steps carefully but whenever I try to run
sudo apt-get install tensorrt

It tries to install 8.6.0.12-1+cuda12.0

When I run

apt list -a tensorrt:
I get:

Listing… Done
tensorrt/unknown 8.6.0.12-1+cuda12.0 amd64 [upgradable from: 8.5.3.1-1+cuda11.8]
tensorrt/unknown 8.6.0.12-1+cuda11.8 amd64
tensorrt/unknown,now 8.5.3.1-1+cuda11.8 amd64 [installed,upgradable to: 8.6.0.12-1+cuda12.0]
tensorrt/unknown 8.5.3.1-1+cuda11.8 amd64
tensorrt/unknown 8.5.2.2-1+cuda11.8 amd64
tensorrt/unknown 8.5.1.7-1+cuda11.8 amd64
tensorrt/unknown 8.4.3.1-1+cuda11.6 amd64
tensorrt/unknown 8.4.2.4-1+cuda11.6 amd64
tensorrt/unknown 8.4.1.5-1+cuda11.6 amd64

Hi @prabalmalviya ,
Apologies for delayed response, this may need a clean setup, I suggest in this case to try uninstalling the existing TRT and install the compatible TRT version wrt pre isntalled CUDA