Latest NVIDIA BSP packages for Deepstream SDK is unable to be installed

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) : Jetson AGX Orin Devkit
• DeepStream Version : 6.1.1
• JetPack Version (valid for Jetson only) : 5.0.2
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hello, I am trying to follow deepstream sdk install guide.

I do this on nvidia’s docker container - nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.13-py3
But the work is not successful.

$ cat ./nvidia-l4t-apt-source.list

#deb https://repo.download.nvidia.com/jetson/common r35.1 main
deb https://repo.download.nvidia.com/jetson/t234 r35.1 main

$ cat ./dockerfile.deepstream

FROM nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.13-py3
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
COPY ./nvidia-l4t-apt-source.list /etc/apt/sources.list.d
RUN apt-get update
RUN apt install -y libssl1.1 libgstreamer1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
RUN apt install -y gstreamer1.0-libav libgstreamer-plugins-base1.0-dev libgstrtspserver-1.0-0 libjansson4 libyaml-cpp-dev
RUN apt-get update
RUN apt-get upgrade -y
RUN apt install -y --reinstall nvidia-l4t-gstreamer

With these files, I tried this way:
$ docker build -t local -f ./dockerfile.deepstream .

[+] Building 140.4s (13/13) FINISHED
 => [internal] load .dockerignore                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                          0.0s
 => [internal] load build definition from dockerfile.deepstream                                                                                          0.0s
 => => transferring dockerfile: 624B                                                                                                                     0.0s
 => [internal] load metadata for nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.13-py3                                                                          0.0s
 => [1/9] FROM nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.13-py3                                                                                            0.0s
 => [internal] load build context                                                                                                                        0.0s
 => => transferring context: 47B                                                                                                                         0.0s
 => CACHED [2/9] RUN apt-get update                                                                                                                      0.0s
 => [3/9] COPY ./nvidia-l4t-apt-source.list /etc/apt/sources.list.d                                                                                      0.0s
 => [4/9] RUN apt-get update                                                                                                                             4.3s
 => [5/9] RUN apt install -y libssl1.1 libgstreamer1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugl  9.3s
 => [6/9] RUN apt install -y gstreamer1.0-libav libgstreamer-plugins-base1.0-dev libgstrtspserver-1.0-0 libjansson4 libyaml-cpp-dev                     26.4s
 => [7/9] RUN apt-get update                                                                                                                             3.3s
 => [8/9] RUN apt-get upgrade -y                                                                                                                        85.2s
 => ERROR [9/9] RUN apt install -y --reinstall nvidia-l4t-gstreamer                                                                                     11.8s
------
 > [9/9] RUN apt install -y --reinstall nvidia-l4t-gstreamer:
#0 0.444
#0 0.444 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#0 0.444
#0 0.502 Reading package lists...
#0 1.745 Building dependency tree...
#0 2.205 Reading state information...
#0 2.948 The following packages were automatically installed and are no longer required:
#0 2.951   libgtk2.0-0 libgtk2.0-common
#0 2.951 Use 'apt autoremove' to remove them.
#0 2.952 The following additional packages will be installed:
#0 2.953   libegl1-mesa nvidia-l4t-3d-core nvidia-l4t-camera nvidia-l4t-core
#0 2.953   nvidia-l4t-cuda nvidia-l4t-firmware nvidia-l4t-init nvidia-l4t-libvulkan
#0 2.953   nvidia-l4t-multimedia nvidia-l4t-multimedia-utils nvidia-l4t-nvsci
#0 2.954   nvidia-l4t-wayland nvidia-l4t-x11
#0 3.067 The following NEW packages will be installed:
#0 3.068   libegl1-mesa nvidia-l4t-3d-core nvidia-l4t-camera nvidia-l4t-core
#0 3.068   nvidia-l4t-cuda nvidia-l4t-firmware nvidia-l4t-gstreamer nvidia-l4t-init
#0 3.068   nvidia-l4t-libvulkan nvidia-l4t-multimedia nvidia-l4t-multimedia-utils
#0 3.069   nvidia-l4t-nvsci nvidia-l4t-wayland nvidia-l4t-x11
#0 3.177 0 upgraded, 14 newly installed, 0 to remove and 1 not upgraded.
#0 3.177 Need to get 91.3 MB of archives.
#0 3.177 After this operation, 294 MB of additional disk space will be used.
#0 3.177 Get:1 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-core arm64 35.1.0-20220825113828 [3813 kB]
#0 3.524 Get:2 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-firmware arm64 35.1.0-20220825113828 [1972 kB]
#0 3.692 Get:3 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-init arm64 35.1.0-20220825113828 [91.4 kB]
#0 3.699 Get:4 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-libvulkan arm64 35.1.0-20220825113828 [157 kB]
#0 3.712 Get:5 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-wayland arm64 35.1.0-20220825113828 [40.4 kB]
#0 3.716 Get:6 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-x11 arm64 35.1.0-20220825113828 [107 kB]
#0 3.730 Get:7 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-3d-core arm64 35.1.0-20220825113828 [65.5 MB]
#0 3.892 Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 libegl1-mesa arm64 21.2.6-0ubuntu0.1~20.04.2 [6408 B]
#0 9.444 Get:9 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-cuda arm64 35.1.0-20220825113828 [4141 kB]
#0 9.762 Get:10 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-multimedia-utils arm64 35.1.0-20220825113828 [253 kB]
#0 9.782 Get:11 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-nvsci arm64 35.1.0-20220825113828 [330 kB]
#0 9.810 Get:12 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-multimedia arm64 35.1.0-20220825113828 [7896 kB]
#0 10.49 Get:13 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-camera arm64 35.1.0-20220825113828 [5392 kB]
#0 10.94 Get:14 https://repo.download.nvidia.com/jetson/t234 r35.1/main arm64 nvidia-l4t-gstreamer arm64 35.1.0-20220825113828 [1573 kB]
#0 11.49 debconf: delaying package configuration, since apt-utils is not installed
#0 11.61 Fetched 91.3 MB in 8s (11.5 MB/s)
#0 11.65 Selecting previously unselected package nvidia-l4t-core.
(Reading database ... 51556 files and directories currently installed.)
#0 11.72 Preparing to unpack .../nvidia-l4t-core_35.1.0-20220825113828_arm64.deb ...
#0 11.73 /var/lib/dpkg/tmp.ci/preinst: line 41: /proc/device-tree/compatible: No such file or directory
#0 11.74 dpkg: error processing archive /var/cache/apt/archives/nvidia-l4t-core_35.1.0-20220825113828_arm64.deb (--unpack):
#0 11.74  new nvidia-l4t-core package pre-installation script subprocess returned error exit status 1
#0 11.76 Errors were encountered while processing:
#0 11.76  /var/cache/apt/archives/nvidia-l4t-core_35.1.0-20220825113828_arm64.deb
#0 11.82 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
dockerfile.deepstream:18
--------------------
  16 |     RUN apt-get upgrade -y
  17 |
  18 | >>> RUN apt install -y --reinstall nvidia-l4t-gstreamer
  19 |
  20 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt install -y --reinstall nvidia-l4t-gstreamer" did not complete successfully: exit code: 100

What have I done wrong?
Could you please guide me.

I wrote another question.

If there exist a docker container that includes both deepstream sdk and pytorch together. I would happy without resolving this issue. What I really need is just the container.

Thank you in advance!

Not sure if it is easier to start from deepstream-l4t docker ( DeepStream-l4t | NVIDIA NGC) and install the pytorch related packages (Installing PyTorch for Jetson Platform)? Seems install below wheel will be enough

pip3 install --no-cache https://developer.download.nvidia.com/compute/redist/jp/v51/pytorch/<torch_version_desired>

I tried a couple of hours to make a new container that includes deepstream sdk and pytorch.
But it seemed to be not an easy and lightweight task for me.
I am giving up… If someone find some good container, I wish to be notified also.

Thanks!

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

As there are separate dockers for DeepStream and Pytorch, maybe it is simpler to use each container for a different purpose.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.