I have been trying to downgrade the TensorRT version but run into a problem installing the new version.
I am using the following Dockerfile:
RUN dpkg -l | grep TensorRT
RUN apt-get purge -y "libnvinfer*" libnvonnx*
COPY nv-tensorrt-repo-ubuntu1804-cuda11.1-trt220.127.116.11-ga-20201211_1-1_amd64.deb /Workdir/
RUN dpkg -i nv-tensorrt-repo-ubuntu1804-cuda11.1-trt18.104.22.168-ga-20201211_1-1_amd64.deb
RUN apt-key add /var/nv-tensorrt-repo-cuda11.1-trt22.214.171.124-ga-20201211/7fa2af80.pub && apt update
RUN apt install -y tensorrt
But the last step ends in the following error:
Step 8/9 : RUN apt install -y tensorrt
---> Running in c214e97cc9aa
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
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-samples (= 7.2.2-1+cuda11.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt install -y tensorrt' returned a non-zero code: 100
I have not been able to find how to fix this, could you give me any pointers? Thanks.