Dependency errors while installing Tensorrt

Description

The following errors are showing when running the following command:
sudo apt-get install tensorrt

The following packages have unmet dependencies:
 tensorrt : Depends: libnvinfer7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvinfer-plugin7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvparsers7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvonnxparsers7 (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvinfer-bin (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvinfer-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvinfer-plugin-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvparsers-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvonnxparsers-dev (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvinfer-samples (= 7.0.0-1+cuda10.2) but it is not going to be installed
            Depends: libnvinfer-doc (= 7.0.0-1+cuda10.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

When I try:
sudo apt-get install libnvinfer7

I get this:

 libnvinfer7 : Depends: libcublas10 but it is not installable
               Depends: cuda-cudart-10-2 but it is not installable

Environment

TensorRT Version: 7.0.0
GPU Type: RTX 6000
Nvidia Driver Version: 440.33.01
CUDA Version: 10.2
CUDNN Version: 7.5
Operating System + Version: ubuntu 16.04

1 Like