Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t install TensorRT 8.6.1.6 from network repo #3774

Closed
Hato1 opened this issue Apr 4, 2024 · 6 comments
Closed

Can’t install TensorRT 8.6.1.6 from network repo #3774

Hato1 opened this issue Apr 4, 2024 · 6 comments
Assignees
Labels
triaged Issue has been triaged by maintainers

Comments

@Hato1
Copy link

Hato1 commented Apr 4, 2024

Description

Installing TensorRT 8.6.1.6 via the network repo no longer works. It used to as of sometime in March.

I found this related issue workaround that would probably work here: #1741 (comment)

Steps To Reproduce

I can reproduce this both on my system and several of the official CUDA containers. Here are the simplest repro steps:

docker run --interactive nvcr.io/nvidia/cuda:12.0.1-base-ubuntu20.04
apt-get update
apt-get install tensorrt=8.6.1.6-1+cuda12.0

Output:

Reading package lists...
Building dependency tree...
Reading state information...
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: libnvinfer-bin (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvinfer-dev (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvinfer-lean-dev (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvinfer-plugin-dev (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvinfer-vc-plugin-dev (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvinfer-dispatch-dev (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvparsers-dev (= 8.6.1.6-1+cuda12.0) but it is not going to be installed
            Depends: libnvonnxparsers-dev (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
            Depends: libnvinfer-samples (= 8.6.1.6-1+cuda12.0) but 10.0.0.6-1+cuda12.4 is to be installed
E: Unable to correct problems, you have held broken packages.
@lix19937
Copy link

lix19937 commented Apr 5, 2024

NOTE:
msg The following packages have unmet dependencies
see available versions

sudo apt-cache madison tensorrt  

@zerollzeng
Copy link
Collaborator

Please refer to https://docs.nvidia.com/deeplearning/tensorrt/install-guide/index.html#overview

@zerollzeng zerollzeng self-assigned this Apr 6, 2024
@zerollzeng zerollzeng added the triaged Issue has been triaged by maintainers label Apr 6, 2024
@Hato1
Copy link
Author

Hato1 commented Apr 8, 2024

I'm following the latest stable version documentation.

The latest early access (v10) release documentation only states how to install v10. I notice a new big list of apt installs if you aren't using the latest supported CUDA.

Despite using the latest supported CUDA for stable TRT, running the big list of apt installs (omitting the packages suffixed with '10') with version="8.6.1.6-1+cuda12.0" does operate as a workaround.

Is this breaking change intended behavior? Can we rely on this new install method to work in the future?

@HoKim98
Copy link

HoKim98 commented Apr 9, 2024

The same problem occurs when installing deepstream 6.4. This can be resolved by manually fixing the versions of all conflicting nvidia packages as @Hato1 has suggested.

@lix19937
Copy link

lix19937 commented Apr 11, 2024

The best way to install tensorrt(py, cpp) , you load nv-tensorrt-repo-ubuntu2004-cudaXX.Y-trtX.Y.Z.W-x86-host-ga-yyyymmdd.deb in nvonline, and then dpkg -i to install.
like nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.5.10.4-x86-host-ga-20221229_1-1_amd64.deb

@zeroepoch
Copy link
Contributor

We recently corrected the documentation to list all packages that were available for TRT 8.6.1 in the 8.6 install guide. See https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-861/install-guide/index.html#maclearn-net-repo-install. The other option is as @lix19937 said, which is to use a local repo instead of the network repo. This issue is due to a limitation with apt. Apt's resolver is not smart enough to realize older versions of packages, which are available, could be used to satisfy dependencies.

dnf (on RedHat) is a little smarter in this regard in that it will match the versions of the packages. Although, it also tries to install the latest CUDA version for the older release unless every package version is specified.

@Hato1 Hato1 closed this as completed Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

5 participants