I am trying to install TensorRT before installing TensorFlow 1.8 from source. When I follow the documentation given here, I run into an error when installing TensorRT 4.0. The error I get is:
nivedithak@nivii-Sum18:~/Downloads$ sudo apt-get install tensorrt
[sudo] password for nivedithak:
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: libnvinfer4 (>= 4.1.2) but it is not going to be installed
Depends: libnvinfer-dev (>= 4.1.2) but it is not going to be installed
Depends: libnvinfer-samples (>= 4.1.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
When I use
nivedithak@nivii-Sum18:~/Downloads$ apt-mark showhold
I don't see any packages. I am not sure how to get ahead. I am using CUDA 9.0 with cuDNN 7.0.5.