Description
Unable to install older TensorRT versions using the NVIDIA CUDA APT repository.
When installing the tensorrt=8.5.1.7-1+cuda11.8
package, apt-get
fails with the following.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
tensorrt : Depends: libnvinfer8 (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvinfer-plugin8 (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvparsers8 (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvonnxparsers8 (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvinfer-bin (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvinfer-dev (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvinfer-plugin-dev (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvparsers-dev (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvonnxparsers-dev (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
Depends: libnvinfer-samples (= 8.5.1-1+cuda11.8) but 8.5.3-1+cuda11.8 is to be installed
E: Unable to correct problems, you have held broken packages.
This is a new installation of 22.04 with no previous CUDA packages installed. According to dpkg -l
, there are no held or broken packages.
It is desired to use this installation in a script to setup the appropriate environment for developers. Access to the TensorRT tar archive or local deb repository is not permitted unless you are logged in, which makes it difficult to use that method.
Environment
TensorRT Version: 8.5.1.7
GPU Type: 4090
Nvidia Driver Version: 525.78.01
CUDA Version: 11.8
CUDNN Version: 8.6.0.163
Operating System + Version: Ubuntu 22.04
Python Version (if applicable): N/A
TensorFlow Version (if applicable): N/A
PyTorch Version (if applicable): N/A
Baremetal or Container (if container which image + tag): Baremetal
Relevant Files
Steps To Reproduce
-
Configure the CUDA repository by installing
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
-
Install CUDA toolkit 11.8 and cuDNN 8.6.0:
sudo apt-get install cuda-toolkit-11-8 libcudnn8=8.6.0.163-1+cuda11.8
-
Install TensorRT 8.5.1.7
sudo apt-get install tensorrt=8.5.1.7-1+cuda11.8