On Jetson Xavier NX: Build l4t-jetpack Docker container (only runtime packages) fails at nvidia-vpi install

Dear Nvidia community,

I am trying to build a docker container for l4t-jetpack:35.4.1, which should consist only of runtime packages.

To this end, I follow the instructions I found here: https://gitlab.com/nvidia/container-images/l4t-jetpack
In short, I modified Dockerfile.jetpack, simply replacing all *-dev packages by runtime packages, like for example nvidia-cuda-devnvidia-cuda.
Then I build the image using the Makefile provided in the repository. When I execute, for example,
sudo make image TAG=35.3.1 or sudo make image TAG=r35.1.0, everything works without problems.

However, I need an L4T base version of 35.4.1, and sudo make image TAG=35.4.1 fails at the point where nvidia-vpi is installed. (For completeness, I tried also TAG=r35.4.1, but the according base image does not exist.)
There are two lines that point at a connection to PVA:

50.82 pva_allow and/or /etc/pva/allow.d missing! Falling back to force-overwrite of system allowlist

50.83 cp: cannot create regular file '/lib/firmware/pva_auth_allowlist': No such file or directory

The full error log is added at the bottom of this Post.

In a further investigation I pulled the image nvcr.io/nvidia/l4t-jetpack:r35.4.1 from the official registry and checked its docker history. It turns out that there is a line FROM nvcr.io/nvidian/nvidia-l4t-base:r35.4.1 in it.
Therefore I attempted another modification to Dockerfile.jetpack, replacing
FROM nvcr.io/nvidia/l4t-base:${TAG} by FROM nvcr.io/nvidian/nvidia-l4t-base:r35.4.1, and running sudo make image. Unfortunately also this was not successful, I got an error message pulling from host nvcr.io failed with status code [manifests r35.4.1]: 401 Unauthorized.

If anybody could point out to me what is the cause of the problem and how to fix it, I would be very grateful.

Many thanks in advance and best regards,
Josef Kaufmann

Full error message of sudo make image TAG=35.4.1:

=> ERROR [6/9] RUN apt-get update && apt-get install -y --no-install-recommends     nvidia-vpi     && rm -rf /var/lib/apt/lists/*     && apt-get clean                                                      54.4s
------                                                                                                                                                                                                             
 > [6/9] RUN apt-get update && apt-get install -y --no-install-recommends     nvidia-vpi     && rm -rf /var/lib/apt/lists/*     && apt-get clean:                                                                  
1.448 Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]                                                                                                                                          
1.534 Get:2 https://repo.download.nvidia.com/jetson/common r35.4 InRelease [2555 B]                                                                                                                                
2.050 Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]                                                                                                                                  
2.062 Get:4 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 Packages [19.6 kB]                                                                                                                     
2.168 Get:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]
2.554 Get:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
2.662 Get:7 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [1234 kB]
3.042 Get:8 http://ports.ubuntu.com/ubuntu-ports focal/multiverse arm64 Packages [139 kB]
3.042 Get:9 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [11.1 MB]
4.815 Get:10 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1317 B]
4.817 Get:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [9705 B]
4.835 Get:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [2981 kB]
5.379 Get:13 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1386 kB]
5.697 Get:14 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [52.0 kB]
5.881 Get:15 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 Packages [54.8 kB]
5.975 Get:16 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages [27.8 kB]
5.978 Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [1091 kB]
6.376 Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [51.7 kB]
6.377 Get:19 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [3625 B]
6.379 Get:20 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [2599 kB]
7.046 Fetched 21.4 MB in 6s (3738 kB/s)
7.046 Reading package lists...
9.798 Reading package lists...
12.15 Building dependency tree...
12.66 Reading state information...
13.44 The following additional packages will be installed:
13.44   cupva-2.3-l4t libnvvpi2 libpython3.9-minimal libpython3.9-stdlib
13.44   python3.8-vpi2 python3.9 python3.9-minimal python3.9-vpi2
13.45 Suggested packages:
13.45   python3.9-venv python3.9-doc binutils binfmt-support
13.64 The following NEW packages will be installed:
13.65   cupva-2.3-l4t libnvvpi2 libpython3.9-minimal libpython3.9-stdlib nvidia-vpi
13.65   python3.8-vpi2 python3.9 python3.9-minimal python3.9-vpi2
13.83 0 upgraded, 9 newly installed, 0 to remove and 104 not upgraded.
13.83 Need to get 58.1 MB of archives.
13.83 After this operation, 332 MB of additional disk space will be used.
13.83 Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 libpython3.9-minimal arm64 3.9.5-3ubuntu0~20.04.1 [751 kB]
13.94 Get:2 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 cupva-2.3-l4t arm64 2.3.0 [202 kB]
14.07 Get:3 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 libnvvpi2 arm64 2.3.9 [51.4 MB]
14.82 Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 python3.9-minimal arm64 3.9.5-3ubuntu0~20.04.1 [1940 kB]
16.32 Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 libpython3.9-stdlib arm64 3.9.5-3ubuntu0~20.04.1 [1750 kB]
17.71 Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 python3.9 arm64 3.9.5-3ubuntu0~20.04.1 [423 kB]
34.98 Get:7 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 python3.8-vpi2 arm64 2.3.9 [776 kB]
35.26 Get:8 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 python3.9-vpi2 arm64 2.3.9 [775 kB]
35.59 Get:9 https://repo.download.nvidia.com/jetson/common r35.4/main arm64 nvidia-vpi arm64 5.1.2-b104 [29.3 kB]
36.56 debconf: delaying package configuration, since apt-utils is not installed
36.75 Fetched 58.1 MB in 22s (2652 kB/s)
36.89 Selecting previously unselected package libpython3.9-minimal:arm64.
(Reading database ... 35223 files and directories currently installed.)
37.12 Preparing to unpack .../0-libpython3.9-minimal_3.9.5-3ubuntu0~20.04.1_arm64.deb ...
37.14 Unpacking libpython3.9-minimal:arm64 (3.9.5-3ubuntu0~20.04.1) ...
37.52 Selecting previously unselected package python3.9-minimal.
37.54 Preparing to unpack .../1-python3.9-minimal_3.9.5-3ubuntu0~20.04.1_arm64.deb ...
37.57 Unpacking python3.9-minimal (3.9.5-3ubuntu0~20.04.1) ...
38.03 Selecting previously unselected package cupva-2.3-l4t.
38.06 Preparing to unpack .../2-cupva-2.3-l4t_2.3.0_arm64.deb ...
38.07 Unpacking cupva-2.3-l4t (2.3.0) ...
38.20 Selecting previously unselected package libnvvpi2.
38.22 Preparing to unpack .../3-libnvvpi2_2.3.9_arm64.deb ...
38.24 Unpacking libnvvpi2 (2.3.9) ...
46.27 Selecting previously unselected package python3.8-vpi2.
46.29 Preparing to unpack .../4-python3.8-vpi2_2.3.9_arm64.deb ...
46.31 Unpacking python3.8-vpi2 (2.3.9) ...
46.57 Selecting previously unselected package libpython3.9-stdlib:arm64.
46.60 Preparing to unpack .../5-libpython3.9-stdlib_3.9.5-3ubuntu0~20.04.1_arm64.deb ...
46.61 Unpacking libpython3.9-stdlib:arm64 (3.9.5-3ubuntu0~20.04.1) ...
47.11 Selecting previously unselected package python3.9.
47.14 Preparing to unpack .../6-python3.9_3.9.5-3ubuntu0~20.04.1_arm64.deb ...
47.15 Unpacking python3.9 (3.9.5-3ubuntu0~20.04.1) ...
47.30 Selecting previously unselected package python3.9-vpi2.
47.32 Preparing to unpack .../7-python3.9-vpi2_2.3.9_arm64.deb ...
47.33 Unpacking python3.9-vpi2 (2.3.9) ...
47.59 Selecting previously unselected package nvidia-vpi.
47.61 Preparing to unpack .../8-nvidia-vpi_5.1.2-b104_arm64.deb ...
47.62 Unpacking nvidia-vpi (5.1.2-b104) ...
47.81 Setting up libpython3.9-minimal:arm64 (3.9.5-3ubuntu0~20.04.1) ...
47.86 Setting up cupva-2.3-l4t (2.3.0) ...
47.94 Setting up python3.9-minimal (3.9.5-3ubuntu0~20.04.1) ...
50.73 Setting up libpython3.9-stdlib:arm64 (3.9.5-3ubuntu0~20.04.1) ...
50.76 Setting up libnvvpi2 (2.3.9) ...
50.82 pva_allow and/or /etc/pva/allow.d missing! Falling back to force-overwrite of system allowlist
50.83 cp: cannot create regular file '/lib/firmware/pva_auth_allowlist': No such file or directory
50.83 dpkg: error processing package libnvvpi2 (--configure):
50.83  installed libnvvpi2 package post-installation script subprocess returned error exit status 1
50.84 dpkg: dependency problems prevent configuration of python3.9-vpi2:
50.84  python3.9-vpi2 depends on libnvvpi2 (>= 2.3); however:
50.84   Package libnvvpi2 is not configured yet.
50.84 
50.84 dpkg: error processing package python3.9-vpi2 (--configure):
50.84  dependency problems - leaving unconfigured
50.84 Setting up python3.9 (3.9.5-3ubuntu0~20.04.1) ...
53.30 dpkg: dependency problems prevent configuration of nvidia-vpi:
53.30  nvidia-vpi depends on python3.9-vpi2 (= 2.3.9); however:
53.30   Package python3.9-vpi2 is not configured yet.
53.30  nvidia-vpi depends on libnvvpi2 (= 2.3.9); however:
53.30   Package libnvvpi2 is not configured yet.
53.30 
53.30 dpkg: error processing package nvidia-vpi (--configure):
53.30  dependency problems - leaving unconfigured
53.30 dpkg: dependency problems prevent configuration of python3.8-vpi2:
53.30  python3.8-vpi2 depends on libnvvpi2 (>= 2.3); however:
53.30   Package libnvvpi2 is not configured yet.
53.30 
53.30 dpkg: error processing package python3.8-vpi2 (--configure):
53.30  dependency problems - leaving unconfigured
53.31 Processing triggers for mime-support (3.64ubuntu1) ...
53.40 Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
53.83 Errors were encountered while processing:
53.83  libnvvpi2
53.83  python3.9-vpi2
53.83  nvidia-vpi
53.83  python3.8-vpi2
53.90 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile.jetpack:65
--------------------
  64 |     #
  65 | >>> RUN apt-get update && apt-get install -y --no-install-recommends \
  66 | >>>     nvidia-vpi \
  67 | >>>     && rm -rf /var/lib/apt/lists/* \
  68 | >>>     && apt-get clean
  69 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends     nvidia-vpi     && rm -rf /var/lib/apt/lists/*     && apt-get clean" did not complete successfully: exit code: 100
make: *** [Makefile:6: image] Error 1

Hi,

Would you mind sharing the customized Dockerfile so we can test it in our environment as well?
Thanks.

Hi,

thanks for the quick reply! Please find attached a zip of the gitlab repo with my own modifications (removing -dev from the package names).

I attempt to build the docker image by running sudo make image TAG=35.4.1

Best regards,
Josef Kaufmann

l4t-jetpack-runtime.zip (27.8 KB)

Hi,

Thanks for sharing the file.

Confirmed that we can reproduce this issue in our environment.
We are checking this and will update more info with you.

Thanks.

1 Like

Hi,

Thanks for your patience.

Just for your reference, we also reproduce the same issue with the default l4t-jetpack repo.

$ git clone https://gitlab.com/nvidia/container-images/l4t-jetpack.git
$ cd l4t-jetpack/
$ sudo make image TAG=35.4.1
...
Setting up libnvvpi2 (2.3.9) ...
pva_allow and/or /etc/pva/allow.d missing! Falling back to force-overwrite of system allowlist
cp: cannot create regular file '/lib/firmware/pva_auth_allowlist': No such file or directory
dpkg: error processing package libnvvpi2 (--configure):
 installed libnvvpi2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of vpi2-demos:
 vpi2-demos depends on libnvvpi2 (>= 2.3); however:
  Package libnvvpi2 is not configured yet.

dpkg: error processing package vpi2-demos (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.9-vpi2:
 python3.9-vpi2 depends on libnvvpi2 (>= 2.3); however:
  Package libnvvpi2 is not configured yet.

dpkg: error processing package python3.9-vpi2 (--configure):
 dependency problems - leaving unconfigured
Setting up python3.9 (3.9.5-3ubuntu0~20.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-vpi-dev:
 nvidia-vpi-dev depends on vpi2-demos (= 2.3.9); however:
  Package vpi2-demos is not configured yet.

dpkg: error processing package nvidia-vpi-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-vpi:
 nvidia-vpi depends on python3.9-vpi2 (= 2.3.9); however:
  Package python3.9-vpi2 is not configured yet.
 nvidia-vpi depends on libnvvpi2 (= 2.3.9); however:
  Package libnvvpi2 is not configured yet.

dpkg: error processing package nvidia-vpi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of vpi2-dev:
 vpi2-dev depends on libnvvpi2 (>= 2.3); however:
  Package libnvvpi2 is not configured yet.

dpkg: error processing package vpi2-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.8-vpi2:
 python3.8-vpi2 depends on libnvvpi2 (>= 2.3); however:
  Package libnvvpi2 is not configured yet.

dpkg: error processing package python3.8-vpi2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of vpi2-samples:
 vpi2-samples depends on vpi2-dev (>= 2.3); however:
  Package vpi2-dev is not configured yet.

dpkg: error processing package vpi2-samples (--configure):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 libnvvpi2
 vpi2-demos
 python3.9-vpi2
 nvidia-vpi-dev
 nvidia-vpi
 vpi2-dev
 python3.8-vpi2
 vpi2-samples
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends     nvidia-vpi-dev     && rm -rf /var/lib/apt/lists/*     && apt-get clean' returned a non-zero code: 100
make: *** [Makefile:6: image] Error 100

Thanks.

Hi,

The issue is fixed.
Please update to the latest Dockerfile and try it again.

Thanks.

Hi! Thank you very much for your effort, it works now.

Best regards,
JK

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