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.
tensorrt
depends on.sudo apt-get install --dry-run tensorrt libnvinfer4 libnvinfer-dev libnvinfer-samples
Remove--dry-run
to do it For Real. – waltinator Jun 26 '18 at 20:15The following packages have unmet dependencies: libnvinfer4 : Depends: cuda-cublas-9-0 but it is not installable E: Unable to correct problems, you have held broken packages.
I did install the CUDA 9.0 from the deb file. I am unsure why it is missing dependencies
– pragmaticprog Jun 26 '18 at 20:52cuda-cublas
that you are showing. – Terrance Jun 27 '18 at 13:39