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

revert: install each package of tensorrt #2807

Merged
merged 4 commits into from
Aug 18, 2022

Conversation

wep21
Copy link
Contributor

@wep21 wep21 commented Aug 18, 2022

Description

The old version of tensorrt meta package is not prohibited to be installed as below.

The following packages have unmet dependencies:
 tensorrt : Depends: libnvinfer8 (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-plugin8 (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvparsers8 (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvonnxparsers8 (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-bin (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-dev (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-plugin-dev (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvparsers-dev (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvonnxparsers-dev (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-samples (= 8.4.1-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
E: Unable to correct problems, you have held broken packages.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Daisuke Nishimatsu and others added 2 commits August 18, 2022 13:56
Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
@wep21 wep21 requested a review from kenji-miyake August 18, 2022 05:00
Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
@kenji-miyake
Copy link
Contributor

kenji-miyake commented Aug 18, 2022

Memo: How to test this. cc @xmfcx

Set up CUDA

docker run --rm -it ubuntu:22.04 # Please use 20.04 if you test Galactic

# only humble
echo "deb http://archive.ubuntu.com/ubuntu focal main restricted" > /etc/apt/sources.list.d/focal.list

apt update && apt -y install curl wget
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
dpkg -i cuda-keyring_1.0-1_all.deb
apt update
DEBIAN_FRONTEND=noninteractive apt -y install cuda-11-6

Optional steps to save the intermediate image

$ docker ps
$ docker commit 1a7d8855713d # Please use your own hash
sha256:b10bc67c457927004bf200344651675aee3e2260c69ff0101ca8098495f2c13e

Test apt install

$ docker run --rm -it b10bc67c457927004bf200344651675aee3e2260c69ff0101ca8098495f2c13e

$ apt depends tensorrt=8.4.2.4-1+cuda11.6
tensorrt
  Depends: libnvinfer8 (= 8.4.2-1+cuda11.6)
  Depends: libnvinfer-plugin8 (= 8.4.2-1+cuda11.6)
  Depends: libnvparsers8 (= 8.4.2-1+cuda11.6)
  Depends: libnvonnxparsers8 (= 8.4.2-1+cuda11.6)
  Depends: libnvinfer-bin (= 8.4.2-1+cuda11.6)
  Depends: libnvinfer-dev (= 8.4.2-1+cuda11.6)
  Depends: libnvinfer-plugin-dev (= 8.4.2-1+cuda11.6)
  Depends: libnvparsers-dev (= 8.4.2-1+cuda11.6)
  Depends: libnvonnxparsers-dev (= 8.4.2-1+cuda11.6)
  Depends: libnvinfer-samples (= 8.4.2-1+cuda11.6)

$ apt install tensorrt=8.4.2.4-1+cuda11.6                                                                                                                                                       Reading package lists... Done
Building dependency tree... Done
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: libnvinfer8 (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-plugin8 (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvparsers8 (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvonnxparsers8 (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-bin (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-dev (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-plugin-dev (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvparsers-dev (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvonnxparsers-dev (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
            Depends: libnvinfer-samples (= 8.4.2-1+cuda11.6) but 8.4.3-1+cuda11.6 is to be installed
E: Unable to correct problems, you have held broken packages.

$ apt install libnvinfer8=8.4.2-1+cuda11.6 libnvinfer-plugin8=8.4.2-1+cuda11.6 libnvparsers8=8.4.2-1+cuda11.6 libnvonnxparsers8=8.4.2-1+cuda11.6 libnvinfer-bin=8.4.2-1+cuda11.6 libnvinfer-dev=8.4.2-1+cuda11.6 libnvinfer-plugin-dev=8.4.2-1+cuda11.6 libnvparsers-dev=8.4.2-1+cuda11.6 libnvonnxparsers-dev=8.4.2-1+cuda11.6 libnvinfer-samples=8.4.2-1+cuda11.6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcudnn8 libcudnn8-dev
The following NEW packages will be installed:
  libcudnn8 libcudnn8-dev libnvinfer-bin libnvinfer-dev libnvinfer-plugin-dev libnvinfer-plugin8 libnvinfer-samples libnvinfer8 libnvonnxparsers-dev libnvonnxparsers8 libnvparsers-dev libnvparsers8
0 upgraded, 12 newly installed, 0 to remove and 12 not upgraded.
Need to get 1525 MB of archives.
After this operation, 3854 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Related links:

@kenji-miyake kenji-miyake enabled auto-merge (squash) August 18, 2022 07:32
@kenji-miyake kenji-miyake merged commit e108b8f into main Aug 18, 2022
@kenji-miyake kenji-miyake deleted the revert/tensorrt-meta-package branch August 18, 2022 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants