unmet dependencies- tensorrt : Depends: libnvinfer6

I tried to install tensorrt on my server which uses

P40
cuda 10.0

So, I make own docker with nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04

After following installation steps,

apt update && apt upgrade
dpkg -i nv-tensorrt-repo-ubuntu1804-cuda10.0-trt6.0.1.5-ga-20190913_1-1_amd64.deb
apt-key add /var/nv-tensorrt-repo-cuda10.0-trt6.0.1.5-ga-20190913/7fa2af80.pub
apt update && apt install tensorrt

The error occured like this.
How can I solve this problem? please tell me anybody … T-T

root@c550fe7c909e:~# apt install tensorrt
Reading package lists... Done
Building dependency tree       
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: libnvinfer6 (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvinfer-plugin6 (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvparsers6 (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvonnxparsers6 (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvinfer-bin (= 6.0.1-1+cuda10.0) but it is not going to be installed
            Depends: libnvinfer-dev (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvinfer-plugin-dev (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvparsers-dev (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvonnxparsers-dev (= 6.0.1-1+cuda10.0) but 6.0.1-1+cuda10.2 is to be installed
            Depends: libnvinfer-samples (= 6.0.1-1+cuda10.0) but it is not going to be installed
            Depends: libnvinfer-doc (= 6.0.1-1+cuda10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I’m experiencing the exact same issue with GTX1070, cuda@10.2, driver@440.36,
with the graphics-drivers ppa.

Hi,

Will recommend to directly use “TensorRT 19.11” NGC container to avoid any system level dependencies.
Please refer below link for details related to “TensorRT 19.11”:
https://docs.nvidia.com/deeplearning/sdk/tensorrt-container-release-notes/rel_19-11.html#rel_19-11

Thanks