Jetpack 7.1 apt install issue nvidia-container

I followed the quick-start setup for the Nvidia Thor dev kit at: Quick Start Guide — Jetson AGX Thor Developer Kit - User Guide with the USB installation method.

When I get to part where I have the system setup finished and I’m trying to setup the JetPack SDK ( JetPack SDK Setup — Jetson AGX Thor Developer Kit - User Guide ), I have a problem with the sudo apt install nvidia-jetpack, where I get an apt error stating the following:

sudo apt install nvidia-jetpack
Reading package lists… Done
Building dependency tree… Done
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:
nvidia-container : Depends: nvidia-container-toolkit-base (= 1.18.0-1) but 1.18.1-1 is to be installed
Depends: libnvidia-container-tools (= 1.18.0-1) but 1.18.1-1 is to be installed
Depends: nvidia-container-toolkit (= 1.18.0-1) but 1.18.1-1 is to be installed
Depends: libnvidia-container1 (= 1.18.0-1) but 1.18.1-1 is to be installed
E: Unable to correct problems, you have held broken packages.

I can’t find any held packages, and when I run an apt search for the nvidia-container package, it shows I have all the downstream packages installed:

sudo apt search nvidia-container
Sorting… Done
Full Text Search… Done
libnvidia-container-tools/now 1.18.1-1 arm64 [installed,local]
NVIDIA container runtime library (command-line tools)

libnvidia-container1/now 1.18.1-1 arm64 [installed,local]
NVIDIA container runtime library

nvidia-container/stable 7.1-b107 arm64
NVIDIA Container Meta Package

nvidia-container-toolkit/now 1.18.1-1 arm64 [installed,local]
NVIDIA Container toolkit

nvidia-container-toolkit-base/now 1.18.1-1 arm64 [installed,local]
NVIDIA Container Toolkit Base

When I parse info for the nvidia-container meta package, it has hard-coded dependencies for the 1.18.0-1 packages

sudo apt show nvidia-container 

Package: nvidia-container
Version: 7.1-b107
Priority: standard 
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 210 kB
Depends: nvidia-container-toolkit-base (= 1.18.0-1), libnvidia-container-tools (= 1.18.0-1), nvidia-container-toolkit (= 1.18.0-1), libnvidia-container1 (= 1.18.0-1)
Homepage: 

Download-Size: 30.6 kB
APT-Sources: https://repo.download.nvidia.com/jetson/common r38.4/main arm64 Packages
Description: NVIDIA Container Meta Package

This is preventing the main nvidia-jetpack meta package from properly installing. I was able to manually install the component packages individually.

Can this meta-package be updated to reflect the correct available build version, or change the = to a >= to prevent this issue?

Hi,

Do you manually install nvidia-container first?
Or meet this error directly after the USB installation?

As there are multiple packages included in the JetPack, fixing the package versions helps maintain stability.

Thanks.

This error was directly after following the Quick Start USB install of the Jetson ISO r38.4.0.

I wasn’t sure if I had done anything in my first setup incorrectly, so I did a clean install from the USB ISO and then the first commands after setting up my profile was sudo apt update and then sudo apt install nvidia-jetpack. Immediate problem with the nvidia-container package showed up.

Hi!

I have the same problem. Is there recommended solution?

Kind regards,

Bernhard

You could try following that does have same version of Depends (1.18.1-1)

sudo apt install nvidia-container-toolkit


Or

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/1.18.1/install-guide.html

export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.18.1-1
  sudo apt-get install -y \
      nvidia-container-toolkit=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
      nvidia-container-toolkit-base=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
      libnvidia-container-tools=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
      libnvidia-container1=${NVIDIA_CONTAINER_TOOLKIT_VERSION}

Hi, all

JetPack 7.1 can be installed with apt without issue in our environment.
We will double-check this to see what might be the cause.

Thanks.

@AastaLLL By, apt works, do you mean fresh flash and/or upgrade /etc/apt/sources.list.d/nvidia-l4t-apt-source.list 38.2 to 38.4 and apt update && apt upgrade or apt dist-upgrade?

I just recently saw in r38.4/DeveloperGuide docs to use dist-upgrade, but I’ve always done upgrade.

I have the same problem. Is there recommended solution?

Same problem. Followed the quick start guide on a brand new Thor, and then got the same error as OP when trying to install nvidia-jetson.

same problem here, fresh install jetpack 7.1. I don’t know shall I do a force install or not.

sudo apt install nvidia-container-toolkit

Unfortunately the sudo apt dist-upgrade did not solve the issue either.

The current workaround I am using is to install the packages manually:

sudo apt install \
nvidia-l4t-jetson-multimedia-api \
nvidia-nsight-sys \
nvidia-cuda-dev \
nvidia-cudnn-dev \
nvidia-tensorrt-dev \
nvidia-opencv-dev \
nvidia-vpi-dev \
nvidia-container-toolkit

Note that I’m using nvidia-cudnn-dev (instead of nvidia-cudnn8-dev as listed on the Getting Started pages) as this is what is called out by the nvidia-jetpack-dev metapackage.

1 Like

Hi, all

We have fixed this issue internally and will soon release it.
Currently, a workaround is to manually install nvidia-container-toolkit=1.18.0-1 to meet the dependencies:

$ export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.18.0-1
$ sudo apt-get install -y nvidia-container-toolkit=${NVIDIA_CONTAINER_TOOLKIT_VERSION} nvidia-container-toolkit-base=${NVIDIA_CONTAINER_TOOLKIT_VERSION} libnvidia-container-tools=${NVIDIA_CONTAINER_TOOLKIT_VERSION} libnvidia-container1=${NVIDIA_CONTAINER_TOOLKIT_VERSION} --allow-downgrades
$ sudo apt install nvidia-jetpack*

Thanks.

2 Likes