Apt install nvidia-container failed by dependencies

I use jetson orin nano super 8GB, jetpack 6.2.1 L4T 36.4.7

I try to install nvidia-container followed by SSD + Docker Setup | Jetson AI Lab

(following link should change :\\ → ://, because this website don’t let me add too much url)

then this shows: “““

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.16.2-1) but 1.18.2-1 is to be installed
Depends: libnvidia-container-tools (= 1.16.2-1) but 1.18.2-1 is to be installed
Depends: nvidia-container-toolkit (= 1.16.2-1) but 1.18.2-1 is to be installed
Depends: libnvidia-container1 (= 1.16.2-1) but 1.18.2-1 is to be installed
E: Unable to correct problems, you have held broken packages.

“““

in /etc/apt/sources.list.d/ there’s two repos related:

/cuda-ubuntu2204-arm64.list: “““

deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https:\\developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/arm64/ /

“““

/nvidia-l4t-apt-source.list: “““

SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

SPDX-License-Identifier: LicenseRef-NvidiaProprietary

NVIDIA CORPORATION, its affiliates and licensors retain all intellectual

property and proprietary rights in and to this material, related

documentation and any modifications thereto. Any use, reproduction,

disclosure or distribution of this material and related documentation

without an express license agreement from NVIDIA CORPORATION or

its affiliates is strictly prohibited.

deb https://repo.download.nvidia.com/jetson/common r36.4 main
deb https://repo.download.nvidia.com/jetson/t234 r36.4 main
deb https://repo.download.nvidia.com/jetson/ffmpeg r36.4 main

“““

I found latest nvidia-container is 1.16.2-1 in http:\\repo.download.nvidia.com/jetson/common

but libnvidia-container1_1.18.2-1_arm64.deb in https:\\developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/arm64/

should i try to install from cuda/repos/ubuntu2204? or rollback to 1.16.2-1?

looking for help, thx.

*** Please note that this reply is generated by LLM automatically ***

The issue you’re encountering is due to a version mismatch between the nvidiacontainer package and its dependencies. The nvidiacontainer package version 11.6.2-1 is being requested, but the dependencies are trying to install version 11.8.2-1.

To resolve this issue, you can try the following steps:

  1. Update the package list: Run the command sudo apt update to ensure that the package list is up-to-date.
  2. Check the package versions: Run the command apt-cache policy nvidiacontainer to check the available versions of the nvidiacontainer package.
  3. Install the correct version: Run the command sudo apt install nvidiacontainer=11.8.2-1 to install the correct version of the nvidiacontainer package.
  4. Check the dependencies: Run the command apt-cache policy libnvidiacontainertools to check the available versions of the libnvidiacontainertools package.
  5. Install the correct version of the dependencies: Run the command sudo apt install libnvidiacontainertools=11.8.2-1 to install the correct version of the libnvidiacontainertools package.

If the above steps do not resolve the issue, you can try the following:

  1. Remove the nvidiacontainer package: Run the command sudo apt remove nvidiacontainer to remove the nvidiacontainer package.
  2. Remove the dependencies: Run the command sudo apt remove libnvidiacontainertools to remove the libnvidiacontainertools package.
  3. Update the package list: Run the command sudo apt update to ensure that the package list is up-to-date.
  4. Install the nvidiacontainer package: Run the command sudo apt install nvidiacontainer to install the nvidiacontainer package.

If you are still encountering issues, you can try the following:

  1. Check the /etc/apt/sources.list.d directory for any files that may be causing the issue.
  2. Check the /etc/apt/sources.list file for any lines that may be causing the issue.
  3. Try running the command sudo apt-get install -f to fix any broken dependencies.

In your case, it seems that the issue is caused by the fact that the nvidiacontainer package version 11.6.2-1 is being requested, but the dependencies are trying to install version 11.8.2-1. You can try installing the correct version of the nvidiacontainer package and its dependencies to resolve the issue.

Additionally, you can try to update the package list and install the nvidiacontainer package using the following commands:

sudo apt update
sudo apt install nvidiacontainer

If you are still encountering issues, you can try to remove the nvidiacontainer package and its dependencies and then install them again using the following commands:

sudo apt remove nvidiacontainer
sudo apt remove libnvidiacontainertools
sudo apt update
sudo apt install nvidiacontainer

It’s also worth noting that you can try to install the nvidiacontainer package using the --allow-downgrades option to allow the installation of an older version of the package. For example:

sudo apt install nvidiacontainer --allow-downgrades

However, this should be used with caution as it can potentially cause issues with other packages that depend on the nvidiacontainer package.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

Please try

$ export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.16.2-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

Thanks.

thx for help, install 1.16.2-1 then