Following Installation Guide :: NVIDIA Deep Learning TensorRT Documentation i can’t reinstall my 188.8.131.52 dependency.
TensorRT Version: 184.108.40.206
GPU Type: RTX 3090
Nvidia Driver Version: 460.73.01
CUDA Version: 11.2
CUDNN Version: 8
Operating System + Version: ubuntu18.04
Python Version (if applicable): 3.6.9
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):
The following packages have unmet dependencies: tensorrt : Depends: libnvinfer-dev (= 7.2.3-1+cuda11.1) but 8.0.0-1+cuda11.3 is to be installed Depends: libnvinfer-plugin-dev (= 7.2.3-1+cuda11.1) but 8.0.0-1+cuda11.3 is to be installed Depends: libnvparsers-dev (= 7.2.3-1+cuda11.1) but 8.0.0-1+cuda11.3 is to be installed Depends: libnvonnxparsers-dev (= 7.2.3-1+cuda11.1) but 8.0.0-1+cuda11.3 is to be installed Depends: libnvinfer-samples (= 7.2.3-1+cuda11.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
1. Download https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/7.2.3/local_repos/nv-tensorrt-repo-ubuntu1804-cuda11.1-trt220.127.116.11-ga-20210226_1-1_amd64.deb 2. dpkg -i nv-tensorrt-repo-ubuntu1804-cuda11.1-trt18.104.22.168-ga-20210226_1-1_amd64.deb 3. sudo apt update 4. sudo apt install tensorrt
Then you get the dependency error above.
I used apt search to check the apt source and realized that there are several dependencies missing in the central source.
when I search for libnvinfer-dev, there is no 22.214.171.124 anymore but only 8.0.0
libnvinfer-dev/unknown 8.0.0-1+cuda11.3 amd64 TensorRT development libraries and headers python-libnvinfer-dev/unknown,unknown 7.2.3-1+cuda11.1 amd64 Python development package for TensorRT python3-libnvinfer-dev/unknown 8.0.0-1+cuda11.3 amd64 Python 3 development package for TensorRT
I’m currently using the nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04 container. Currently I have some production devices out in the wild in low internet speed environment that I can’t easily change the base container cus rebuild will be super slow. I saw some posts that you recommend to use the ngc tensorrt containers but so far I can’t do that. I can only update the current image. I also checked the apt dependency directly inside this container and I got the 8.0.0 version for all the libs too. it seems the dependency is changed with your distribution with ubuntu 18.04 but not actually with the tensorrt deb. I don’t think this is a good way for software update because this will silently cause failure of environment setup for all the ubuntu 18.04 users.
Or there should be some ppa that I can applied for installing older versions of dependencies.