Unable to install cuda-toolkit-11-4 on Jetson Xavier NX L4T 34.1.1

Minimal scenario:

  1. Jetson Xavier NX flashed with Jetpack 5.0.1 DP
  2. Pull and run nvcr.io/nvidia/l4t-base:r34.1.1
  3. apt update && apt install cuda-toolkit-11-4

Results in following error:

Building dependency tree       
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:
 cuda-toolkit-11-4 : Depends: cuda-libraries-dev-11-4 (>= 11.4.14) but it is not going to be installed
                     Depends: cuda-tools-11-4 (>= 11.4.14) but it is not going to be installed
                     Depends: cuda-samples-11-4 (>= 11.4.239) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.```

Update.

cuda-toolkit-11-4 installs successfully on host system, this problem only manifests in l4t container, even with all the same repositories, i.e.

docker run -it --rm --gpus all -v /etc/apt/sources.list:/etc/apt/sources.list -v /etc/apt/sources.list.d/:/etc/apt/sources.list.d/ nvcr.io/nvidia/l4t-base:r34.1.1
apt update && apt install cuda-toolkit-11-4
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 https://repo.download.nvidia.com/jetson/common r34.1 InRelease [2555 B]
Get:3 https://repo.download.nvidia.com/jetson/t194 r34.1 InRelease [2550 B]
Get:4 https://repo.download.nvidia.com/jetson/common r34.1/main arm64 Packages [16.6 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Get:8 https://repo.download.nvidia.com/jetson/t194 r34.1/main arm64 Packages [13.6 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [1234 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [11.1 MB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1317 B]
Get:12 http://ports.ubuntu.com/ubuntu-ports focal/multiverse arm64 Packages [139 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [4150 B]
Get:14 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1096 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [1691 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [9063 B]
Get:17 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages [27.1 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 Packages [53.8 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [815 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [1318 kB]
Get:21 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [3912 B]
Get:22 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [3257 B]
Fetched 18.2 MB in 4s (4270 kB/s)                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
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:
 cuda-toolkit-11-4 : Depends: cuda-libraries-dev-11-4 (>= 11.4.14) but it is not going to be installed
                     Depends: cuda-tools-11-4 (>= 11.4.14) but it is not going to be installed
                     Depends: cuda-samples-11-4 (>= 11.4.239) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Hi,

This is a known issue and our internal team is working on this actively.
Will share more information with you later.

Currently, you can use the container in the below comment which has CUDA installed already.

Thanks.

1 Like

Hi,

The issue is fixed now.
Please try the CUDA installation again.

Thanks.

1 Like

Can confirm the installation is now successful when starting with nvcr.io/nvidia/l4t-base:r34.1.1 image, as described in the OP.

Unfortunately same problem persists when starting from nvcr.io/nvidia/deepstream-l4t:6.1-samples image. Any advice?

Thank you.

Hi, abramov_ov

For nvcr.io/nvidia/deepstream-l4t:6.1-samples, it works after manually installing cuBLAS first.

$ apt update
$ apt install libcublas-11-4
$ apt install cuda-toolkit-11-4

Please try if this also works on your side.
Thanks.

1 Like

It works, thank you.

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