Sudo apt install tensorrt error in VMWare

Enviroment: VMWare Ubuntu 18.04
GPU: Tesla T4
GPU driver version: 460.32.03
Cuda version:11.1
Cudnn version:8.1.0.77

After installing tensorrt. The follow error occured.

daniel@admin:~ sudo dpkg -i nv-tensorrt-repo-ubuntu1804-cuda11.1-trt7.2.2.3-ga-20201211_1-1_amd64.deb (Reading database ... 89285 files and directories currently installed.) Preparing to unpack nv-tensorrt-repo-ubuntu1804-cuda11.1-trt7.2.2.3-ga-20201211_1-1_amd64.deb ... Unpacking nv-tensorrt-repo-ubuntu1804-cuda11.1-trt7.2.2.3-ga-20201211 (1-1) over (1-1) ... Setting up nv-tensorrt-repo-ubuntu1804-cuda11.1-trt7.2.2.3-ga-20201211 (1-1) ... daniel@admin:~ sudo apt-key add /var/nv-tensorrt-repo-cuda11.1-trt7.2.2.3-ga-20201211/7fa2af80.pub
OK
daniel@admin:~ sudo apt update Get:1 file:/var/nv-tensorrt-repo-cuda11.1-trt7.2.2.3-ga-20201211 InRelease Ign:1 file:/var/nv-tensorrt-repo-cuda11.1-trt7.2.2.3-ga-20201211 InRelease Get:2 file:/var/nv-tensorrt-repo-cuda11.1-trt7.2.2.3-ga-20201211 Release [574 B] Get:2 file:/var/nv-tensorrt-repo-cuda11.1-trt7.2.2.3-ga-20201211 Release [574 B] Hit:4 http://tw.archive.ubuntu.com/ubuntu bionic InRelease Hit:5 http://tw.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:6 http://tw.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:7 http://tw.archive.ubuntu.com/ubuntu bionic-security InRelease Reading package lists... Done Building dependency tree Reading state information... Done 41 packages can be upgraded. Run 'apt list --upgradable' to see them. daniel@admin:~ 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: libnvinfer7 (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvinfer-plugin7 (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvparsers7 (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvonnxparsers7 (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvinfer-bin (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvinfer-dev (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvinfer-plugin-dev (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvparsers-dev (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvonnxparsers-dev (= 7.2.2-1+cuda11.1) but it is not going to be installed
Depends: libnvinfer-samples (= 7.2.2-1+cuda11.1) but it is not going to be installed

How can i solve this problem?

1 Like

你下载 cuda安装用deb的包,tensonrt也用deb的包,try