티스토리 뷰

nvcr.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 이미지를 베이스 이미지로하여 8.6.0.12-1+cuda11.8 버전의 TensorRT 관련 라이브러리를 다운로드 받으니 다운로드가 안된다.

 

What?!

 

어떤 건 다운로드가 되고 어떤 건 안된다.

 

기존에 8.5.3-1+cuda11.8 으로 다운로드 받는 명령어를 아래와 같이 실행했었어서,

RUN \
    apt-get update && \
    apt-get install -y libnvinfer8=8.5.3-1+cuda11.8 \
                libnvinfer-plugin8=8.5.3-1+cuda11.8 \
                libnvparsers8=8.5.3-1+cuda11.8 \
                libnvonnxparsers8=8.5.3-1+cuda11.8 \
                libnvinfer-bin=8.5.3-1+cuda11.8 \
                libnvinfer-dev=8.5.3-1+cuda11.8 \
                libnvinfer-plugin-dev=8.5.3-1+cuda11.8 \
                libnvparsers-dev=8.5.3-1+cuda11.8 \
                libnvonnxparsers-dev=8.5.3-1+cuda11.8 \
                libnvinfer-samples=8.5.3-1+cuda11.8

 

저기서 8.5.3-1+cuda11.8 를 8.6.0.12-1+cuda11.8 로 변경하려했더니만 어떤 라이브러리를 설치하려니까 8.6.0.12-1+cuda11.8 에 해당하는 버전은 없고 아래의 오류가 출력됐다.

 

root@732029c2cefe:/# apt-get install libnvinfer-bin=8.6.0.12-1+cuda11.8
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:
 libnvinfer-bin : Depends: libnvinfer8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
                  Depends: libnvinfer-lean8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
                  Depends: libnvinfer-plugin8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
                  Depends: libnvinfer-vc-plugin8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
                  Depends: libnvinfer-dispatch8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
                  Depends: libnvparsers8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
                  Depends: libnvonnxparsers8 (= 8.6.0.12-1+cuda11.8) but 8.6.1.6-1+cuda12.0 is to be installed
E: Unable to correct problems, you have held broken packages.

 

이상하다.

 

분명 nvidia에서는 저 버전에 맞는 library를 제공하고있다.

 

https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/

 

왜 안될까... 하고 찾아보니 unmet dependices 를 먼저 설치하라는 글이 존재했다.

 

https://askubuntu.com/a/606896

 

apt-get, unmet dependencies, ... "but it is not going to be installed"

$ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core Reading package lists... Done Building dependency tree R...

askubuntu.com

 

와 이게 정답이였다. TesnorRT Issue란에도 이 이슈가 올라와있었는데 거기에 나온 방법으로는 해결이 안됐다.

 

umet dependices 를 아래 처럼 그냥 다 설치해버리고

 

apt-get install libnvinfer8=8.6.0.12-1+cuda11.8 libnvinfer-lean8=8.6.0.12-1+cuda11.8 libnvinfer-plugin8=8.6.0.12-1+cuda11.8 libnvinfer-vc-plugin8=8.6.0.12-1+cuda11.8 libnvinfer-dispatch8=8.6.0.12-1+cuda11.8 libnvparsers8=8.6.0.12-1+cuda11.8 libnvonnxparsers8=8.6.0.12-1+cuda11.8

 

원래 설치 안되던 libnvinfer-bin=8.6.0.12-1+cuda11.8 를 설치하니 설치가 됐다.

 

나랑 동일한 문제를 겪는 사람을 위해 TesnorRT Issue 에도 내 해결 방법을 작성했다.

https://github.com/NVIDIA/TensorRT/issues/1741#issuecomment-1954319329

 

Intalling TensorRT: Depends: libnvinfer8 (= 8.2.2-1+cuda11.4) but it is not going to be installed · Issue #1741 · NVIDIA/Tenso

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....

github.com

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함