Cannot install DeepStream 5.1 on amd64 Ubuntu 18.04

Hi - I’m running into issues installing DeepStream 5.1 on amd64 Ubuntu 18.04. I’m following the Quickstart Guide instructions from here (link) - specifically the dGPU Setup for Ubuntu section. Please note - I’ve previously gone through and fully removed all CUDA, DeepStream and NVIDIA drivers from the system prior to following this guide.

Per this guide, the required dependencies are these:

You must install the following components:

  • Ubuntu 18.04
  • GStreamer 1.14.1
  • NVIDIA driver 460.32
  • CUDA 11.1
  • TensorRT 7.2.X

Quick note - when I install NVIDIA driver 460.32 it automatically installs CUDA 11.2:

$ nvidia-smi
Thu Jun 17 15:09:48 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |

The Quickstart guide specifically references CUDA 11.1. I’ve tried installing DeepStream 5.1 by continuing with CUDA 11.2, and I’ve also installed trying it with CUDA 11.1 - but no success either way.

From that point I install CUDA 11.1 using the CUDA 11.1 Toolkit runfile, per these instructions.

Next is TensorRT 7.2.X - in this case, I’m trying 7.2.3. I follow the TensorRT Quickstart guide (link).

$ os="ubuntu1804"
$ tag="cuda11.1-trt7.2.3.4-ga-20210226"
$ sudo dpkg -i nv-tensorrt-repo-${os}-${tag}_1-1_amd64.deb
$ sudo apt-key add /var/nv-tensorrt-repo-ubuntu1804-cuda11.1-trt7.2.3.4-ga-20210226/7fa2af80.pub

$ sudo apt-get update
$ sudo apt-get install tensorrt

Unfortunately this part doesn’t seem to work:

$ sudo apt-get install tensorrt
Reading package lists... Done
Building dependency tree
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.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvinfer-plugin8 (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvparsers8 (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvonnxparsers8 (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvinfer-bin (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvinfer-dev (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvinfer-plugin-dev (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvparsers-dev (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvonnxparsers-dev (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvinfer-samples (= 8.0.0-1+cuda11.3) but it is not going to be installed
            Depends: libnvinfer-doc (= 8.0.0-1+cuda11.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Note that I have installed cuDNN (in this case, the only archived version that looks like it would work with CUDA 11.1):

sudo dpkg -i libcudnn8-dev_8.1.1.33-1+cuda11.2_amd64.deb
sudo dpkg -i libcudnn8_8.1.1.33-1+cuda11.2_amd64.deb

This does not improve the situation, unfortunately - sudo apt-get install tensorrt still fails in the same way.

I’m not sure how to move past this - and I’m also not sure why it’s referencing cuda11.3. From what I can tell, the 7.2.x builds of TensorRT are not stable, nor is the installation documentation for installing TensorRT.

What might be the next best thing to try?

1 Like