Unable to locate package nvidia-jetpack

I create a docker container using sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-bas, then run apt update and apt install nvidia-jetpack, but I get Unable to locate package nvidia-jetpack. How can I install JetPack inside docker container?

Hi,

Confirmed that we can also reproduce this issue in our environment.
We are checking this internally.
Will get back to you soon.

Thanks.

1 Like

@AastaLLL Hi, any updates?

Hi,

Sorry that we are still checking this issue.
Will get back to you later.

Thanks.

Hi,

Please mount the whole /etc/apt/ folder to enable the source repository.
We can run the command with the following steps:

$ sudo docker run -it --rm --net=host --runtime nvidia  -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix -v /etc/apt/:/etc/apt nvcr.io/nvidia/l4t-base:r32.5.0
# apt-get update
# apt install ca-certificates
# apt-get update
# apt-get install nvidia-jetpack

Thanks.

it runs, but then it has an error, can you help me please?
@AastaLLL

Selecting previously unselected package nvidia-l4t-core.
Preparing to unpack .../5-nvidia-l4t-core_32.5.1-20210519111140_arm64.deb ...
/var/lib/dpkg/tmp.ci/preinst: line 40: /proc/device-tree/compatible: No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-WZPiS5/5-nvidia-l4t-core_32.5.1-20210519111140_arm64.deb (--unpack):
 new nvidia-l4t-core package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /tmp/apt-dpkg-install-WZPiS5/5-nvidia-l4t-core_32.5.1-20210519111140_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks!

Hi,

Is running apt-get install nvidia-jetpack outside of the docker an option for you?

On the Jetson device, we usually mount the host’s library into docker for saving the image size.
To install components within docker or on the device are almost identical to Jetson’s use case.

However, to run apt-get install nvidia-jetpack within docker tends to get some permission issues.
Since you will need to mount the device tree and also make it accessible within docker.

Thanks.

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