TensorRT: Intalling TensorRT: Depends: libnvinfer8 (= 8.2.2-1+cuda11.4) but it is not going to be installed
I do have a docker container with the following environment:
- OS: Linux Ubuntu 18.04
- Base Image: pytorch/pytorch:1.9.1-cuda11.1-cudnn8-runtime
- GPU: Tesla K80
- Cuda Version: 11.1
- PyTorch Version: 1.9.1
- downloaded .deb:
nv-tensorrt-repo-ubuntu1804-cuda11.4-trt8.2.2.1-ga-20211214_1-1_amd64.deb
information from the downloaded .deb:
TensorRT 8.2 GA Update 1 for Ubuntu 18.04 and CUDA 11.0, 11.1, 11.2, 11.3, 11.4 and 11.5 DEB local repo Package
As I followed the installing instructions on the Nvidia Webside an error ocurred:
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:
python3-libnvinfer : Depends: libnvinfer8 (= 8.2.2-1+cuda11.4) but it is not going to be installed
Depends: libnvinfer-plugin8 (= 8.2.2-1+cuda11.4) but it is not going to be installed
Depends: libnvparsers8 (= 8.2.2-1+cuda11.4) but it is not going to be installed
Depends: libnvonnxparsers8 (= 8.2.2-1+cuda11.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 10
- Comments: 15
the solution is to install cudnn packages through the deb installation, not tar, as described here: https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html
Found solution here https://forums.developer.nvidia.com/t/tensorrt-8-0-installation/180498/6
I encountered the same issue and found a solution! I was trying to install
tensorrt libs=8.6.0.12-1+cuda11.8
on thenvcr.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
image but ran into error messages indicating unmet dependencies.To resolve this, I followed a suggestion from an AskUbuntu post, which recommended installing the dependent libraries before attempting to install the desired library. This approach worked, and I was able to successfully install the TensorRT libraries.
After first downloading unmet dependencies
any updates or fixes for this issue??
@laszloturanyi I tried that, but it is not able to locate the package for some odd reason.
apt-get install python3-libnvinfer-dev
into:
E: Unable to locate package python3-libnvinfer-dev
This problem occurs for any other libnv-package too.
Install python3-libnvinfer-dev first, then it should work.
Order in Installation guide is mixed up