I am following official installation guide and after the following command execution,
sudo apt-get install tensorrt
I am getting following error,
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: libnvinfer5 (= 5.0.0-1+cuda9.0) but it is not going to be installed
Depends: libnvinfer-dev (= 5.0.0-1+cuda9.0) but it is not going to be installed
Depends: libnvinfer-samples (= 5.0.0-1+cuda9.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
apt-key add /var/nv-tensorrt-repo-cuda10.0-trt5.0.0.10-rc-20180906/7fa2af80.pub
dpkg -i nv-tensorrt-repo-ubuntu1804-cuda10.0-trt5.0.0.10-rc-20180906_1-1_amd64.deb
apt-get update
apt-get 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: libnvinfer5 (= 5.0.0-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-dev (= 5.0.0-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-samples (= 5.0.0-1+cuda10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
vcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130
I am facing the same error
The following packages have unmet dependencies:
tensorrt : Depends: libnvinfer5 (= 5.0.2-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-dev (= 5.0.2-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-samples (= 5.0.2-1+cuda10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have the same problem
I’m installing TensorRT 4.0 from .deb file(nv-tensorrt-repo-ubuntu1604-cuda9.2-ga-trt4.0.1.6-20180612_1-1_amd64.deb)
cuda9.2 and cudnn 7.4 are already installed on Ubuntu 16.04
At first, I wanted to install TensorRT 5.0, but there’s no compatible version for cuda 9.2, so I use TensorRT 4.0 instead.
But got the same error.
b deep@deep:~/Downloads/cuda-9.2-toolchain »[/b] sudo apt-get 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: 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.
b deep@deep:~/Downloads/cuda-9.2-toolchain » [/b]sudo apt-get install libnvinfer4
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:
libnvinfer4 : Depends: cuda-cublas-9-2 but it is not installable
E: Unable to correct problems, you have held broken packages.
For anyone who is still seeing this issue can you provide the output of “dpkg-query -W | grep cuda” and the filename of the local_repo deb file you are trying to install?
Repros for me as of today; requested dpkg query output below the error message
johnu@ubunt-d1-16a:~$ sudo 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: libnvinfer5 (= 5.0.2-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-dev (= 5.0.2-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-samples (= 5.0.2-1+cuda10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
johnu@ubunt-d1-16a:~$ dpkg-query -W | grep cuda
libcudnn7 7.4.2.24-1+cuda10.0
libcudnn7-dev 7.4.2.24-1+cuda10.0
libcudnn7-doc 7.4.2.24-1+cuda10.0
nv-tensorrt-repo-ubuntu1804-cuda10.0-trt5.0.2.6-ga-20181009 1-1
johnu@ubunt-d1-16a:~$
I think you’re missing the CUDA 10.0 debian packages. You can install the following deb file to setup the CUDA network repo which will contain the CUDA 10.0 packages that you need.