Unable to run apt-get update on DRIVE OS 7.0.3 – Blocking NVIDIA Container Toolkit Installation

DRIVE OS Version: 7.0.3

Issue Description:

I am trying to install the NVIDIA Container Toolkit on the DRIVE Thor platform in order to run Docker containers. I followed the official NVIDIA documentation- Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit. However, the installation process is currently blocked because apt-get update is failing.

apt-get update returns GPG errors

apt search nvidia-container returns nothing

  • I tried updating date and time: sudo timedatectl set-ntp true

  • Forced IPv4: sudo apt -o Acquire::ForceIPv4=true update

  • Reinstalled apt/gnupg packages

Still seeing the same issue.

This issue prevents:

  • Installation of nvidia-container-toolkit

  • Running Docker containers with NVIDIA runtime support

Could you please advise on:

  1. Whether this issue is related to DRIVE OS 7.0.3 compatibility with Ubuntu repositories?

  2. If there is a recommended or supported method to install NVIDIA Container Toolkit on DRIVE Thor?

  3. Any required patches, configuration steps, or known fixes for resolving APT/GPG issues on this platform?

Dear @Adas.Engineer ,
sudo apt-get update log indicates, it is not an error but a warning. It can be ignored. Also noticed curl is not installed from the logs.

I have followed the steps from Target Container Support — NVIDIA DriveOS 7.0.3 Linux SDK Developer Guide and Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit and I can run docker .

Few observations
missing in the steps when following documentation

  1. Needs to create /etc/apt/sources.list.d/ directory on target.
  2. Configure NVIDIA runtime for docker and restart docker

Used commands

sudo apu-get update
sudo apt-get install -y --no-install-recommends    ca-certificates
sudo apt-get install curl
sudo apt-get install gnupg2
sudo mkdir -p /etc/apt/sources.list.d/
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg   && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list |     sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' |     sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
sudo apt-get update
 export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.19.0-1
sudo apt-get install -y --allow-unauthenticated       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}
cd ~/
vim cudaQuery.cpp
/usr/local/cuda/bin/nvcc -ccbin g++ -o cudaQuery cudaQuery.cpp
vim Dockerfile #to update dockerfile
nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
sudo docker info | grep -i runtime
sudo docker run --rm --privileged --net host --runtime nvidia --gpus all test:sample

Full log is below

nvidia@tegra-ubuntu:~$ sudo apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
Ign:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Ign:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Packages [2134 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/main Translation-en [354 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 Packages [1680 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe Translation-en [328 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted arm64 Packages [4591 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted Translation-en [739 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports noble-security/main arm64 Packages [1846 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports noble-security/main Translation-en [267 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports noble-security/universe arm64 Packages [1211 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports noble-security/universe Translation-en [229 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted arm64 Packages [4374 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted Translation-en [697 kB]
Fetched 19.0 MB in 4s (5117 kB/s)
Reading package lists... Done
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-updates_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-security InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-security_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
nvidia@tegra-ubuntu:~$ sudo apt-get update && sudo apt-get install -y --no-install-recommends \
   ca-certificates \
   curl \
   gnupg2
Get:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
Ign:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Ign:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Fetched 508 kB in 2s (250 kB/s)
Reading package lists... Done
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-updates_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-security InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-security_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20240203).
ca-certificates set to manually installed.
The following additional packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv keyboxd libcurl3t64-gnutls libcurl4t64
Suggested packages:
  tor parcimonie xloadimage gpg-wks-server scdaemon
The following NEW packages will be installed:
  curl gnupg2
The following packages will be upgraded:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv keyboxd libcurl3t64-gnutls libcurl4t64
13 upgraded, 2 newly installed, 0 to remove and 455 not upgraded.
Need to get 3133 kB of archives.
After this operation, 602 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  gpg-wks-client dirmngr gnupg-utils gpgsm gpg-agent gpg gpgconf gnupg keyboxd gpgv libcurl4t64 curl gnupg-l10n libcurl3t64-gnutls gnupg2
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
nvidia@tegra-ubuntu:~$ curl
-bash: curl: command not found
nvidia@tegra-ubuntu:~$ sudo apt-get install -y --no-install-recommends \
   ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20240203).
ca-certificates set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 468 not upgraded.
nvidia@tegra-ubuntu:~$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcurl3t64-gnutls libcurl4t64
The following NEW packages will be installed:
  curl
The following packages will be upgraded:
  libcurl3t64-gnutls libcurl4t64
2 upgraded, 1 newly installed, 0 to remove and 466 not upgraded.
Need to get 885 kB of archives.
After this operation, 569 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  libcurl4t64 curl libcurl3t64-gnutls
Install these packages without verification? [y/N] y
Get:1 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 libcurl4t64 arm64 8.5.0-2ubuntu10.9 [335 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 curl arm64 8.5.0-2ubuntu10.9 [222 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 libcurl3t64-gnutls arm64 8.5.0-2ubuntu10.9 [329 kB]
Fetched 885 kB in 0s (18.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 73898 files and directories currently installed.)
Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu10.9_arm64.deb ...
Unpacking libcurl4t64:arm64 (8.5.0-2ubuntu10.9) over (8.5.0-2ubuntu10.5) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_8.5.0-2ubuntu10.9_arm64.deb ...
Unpacking curl (8.5.0-2ubuntu10.9) ...
Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu10.9_arm64.deb ...
Unpacking libcurl3t64-gnutls:arm64 (8.5.0-2ubuntu10.9) over (8.5.0-2ubuntu10.5) ...
Setting up libcurl4t64:arm64 (8.5.0-2ubuntu10.9) ...
Setting up libcurl3t64-gnutls:arm64 (8.5.0-2ubuntu10.9) ...
Setting up curl (8.5.0-2ubuntu10.9) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
/sbin/ldconfig.real: /lib/aarch64-linux-gnu/libnl-genl-3.so.200 is not a symbolic link

/sbin/ldconfig.real: /lib/aarch64-linux-gnu/libnl-3.so.200 is not a symbolic link

nvidia@tegra-ubuntu:~$ curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
  && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
    sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
    sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
tee: /etc/apt/sources.list.d/nvidia-container-toolkit.list: No such file or directory
deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/experimental/deb/$(ARCH) /
nvidia@tegra-ubuntu:~$ sudo apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
Ign:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Ign:3 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Fetched 508 kB in 2s (242 kB/s)
Reading package lists... Done
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-updates_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-security InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-security_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
nvidia@tegra-ubuntu:~$ export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.19.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}
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package nvidia-container-toolkit
E: Unable to locate package nvidia-container-toolkit-base
E: Unable to locate package libnvidia-container-tools
E: Unable to locate package libnvidia-container1
nvidia@tegra-ubuntu:~$ sudo apt-get install gnupg2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv keyboxd
Suggested packages:
  tor parcimonie xloadimage gpg-wks-server scdaemon
The following NEW packages will be installed:
  gnupg2
The following packages will be upgraded:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv keyboxd
11 upgraded, 1 newly installed, 0 to remove and 455 not upgraded.
Need to get 2247 kB of archives.
After this operation, 32.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  gpg-wks-client dirmngr gnupg-utils gpgsm gpg-agent gpg gpgconf gnupg keyboxd gpgv gnupg-l10n gnupg2
Install these packages without verification? [y/N] y
Get:1 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gpg-wks-client arm64 2.4.4-2ubuntu17.4 [69.7 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 dirmngr arm64 2.4.4-2ubuntu17.4 [316 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gnupg-utils arm64 2.4.4-2ubuntu17.4 [106 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gpgsm arm64 2.4.4-2ubuntu17.4 [225 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gpg-agent arm64 2.4.4-2ubuntu17.4 [221 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gpg arm64 2.4.4-2ubuntu17.4 [549 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gpgconf arm64 2.4.4-2ubuntu17.4 [103 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gnupg all 2.4.4-2ubuntu17.4 [359 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 keyboxd arm64 2.4.4-2ubuntu17.4 [75.9 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gpgv arm64 2.4.4-2ubuntu17.4 [151 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 gnupg-l10n all 2.4.4-2ubuntu17.4 [66.4 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 gnupg2 all 2.4.4-2ubuntu17.4 [4752 B]
Fetched 2247 kB in 0s (16.1 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 73905 files and directories currently installed.)
Preparing to unpack .../0-gpg-wks-client_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gpg-wks-client (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../1-dirmngr_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking dirmngr (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../2-gnupg-utils_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gnupg-utils (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../3-gpgsm_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gpgsm (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../4-gpg-agent_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gpg-agent (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../5-gpg_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gpg (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../6-gpgconf_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gpgconf (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../7-gnupg_2.4.4-2ubuntu17.4_all.deb ...
Unpacking gnupg (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../8-keyboxd_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking keyboxd (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Preparing to unpack .../9-gpgv_2.4.4-2ubuntu17.4_arm64.deb ...
Unpacking gpgv (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Setting up gpgv (2.4.4-2ubuntu17.4) ...
(Reading database ... 73905 files and directories currently installed.)
Preparing to unpack .../gnupg-l10n_2.4.4-2ubuntu17.4_all.deb ...
Unpacking gnupg-l10n (2.4.4-2ubuntu17.4) over (2.4.4-2ubuntu17) ...
Selecting previously unselected package gnupg2.
Preparing to unpack .../gnupg2_2.4.4-2ubuntu17.4_all.deb ...
Unpacking gnupg2 (2.4.4-2ubuntu17.4) ...
Setting up gnupg-l10n (2.4.4-2ubuntu17.4) ...
Setting up gpgconf (2.4.4-2ubuntu17.4) ...
Setting up gpg (2.4.4-2ubuntu17.4) ...
Setting up gnupg-utils (2.4.4-2ubuntu17.4) ...
Setting up gpg-agent (2.4.4-2ubuntu17.4) ...
Setting up gpgsm (2.4.4-2ubuntu17.4) ...
Setting up dirmngr (2.4.4-2ubuntu17.4) ...
Setting up keyboxd (2.4.4-2ubuntu17.4) ...
Setting up gnupg (2.4.4-2ubuntu17.4) ...
Setting up gnupg2 (2.4.4-2ubuntu17.4) ...
Setting up gpg-wks-client (2.4.4-2ubuntu17.4) ...
Processing triggers for man-db (2.12.0-4build2) ...


nvidia@tegra-ubuntu:~$ sudo mkdir -p /etc/apt/sources.list.d/
nvidia@tegra-ubuntu:~$ curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg   && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list |     sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' |     sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
File '/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg' exists. Overwrite? (y/N) y
deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/experimental/deb/$(ARCH) /
nvidia@tegra-ubuntu:~$ sudo apt-get update
Get:1 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  InRelease [1477 B]
Ign:1 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
Get:3 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  Packages [25.1 kB]
Ign:2 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Ign:4 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Get:5 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Ign:5 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Fetched 535 kB in 2s (235 kB/s)
Reading package lists... Done
W: GPG error: https://nvidia.github.io/libnvidia-container/stable/deb/arm64  InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/nvidia.github.io_libnvidia-container_stable_deb_arm64_InRelease
W: The repository 'https://nvidia.github.io/libnvidia-container/stable/deb/arm64  InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-updates_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports noble-security InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_noble-security_InRelease
W: The repository 'http://ports.ubuntu.com/ubuntu-ports noble-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
nvidia@tegra-ubuntu:~$ ls /etc/apt/sources.list.d/nvidia-container-toolkit.list
/etc/apt/sources.list.d/nvidia-container-toolkit.list
nvidia@tegra-ubuntu:~$ cat /etc/apt/sources.list.d/nvidia-container-toolkit.list
deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/experimental/deb/$(ARCH) /
nvidia@tegra-ubuntu:~$ export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.19.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}
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libnvidia-container-tools libnvidia-container1 nvidia-container-toolkit nvidia-container-toolkit-base
0 upgraded, 4 newly installed, 0 to remove and 455 not upgraded.
Need to get 6988 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libnvidia-container1 libnvidia-container-tools nvidia-container-toolkit-base nvidia-container-toolkit
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
nvidia@tegra-ubuntu:~$ sudo apt-get install -y --allow-unauthenticated \
      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}
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libnvidia-container-tools libnvidia-container1 nvidia-container-toolkit nvidia-container-toolkit-base
0 upgraded, 4 newly installed, 0 to remove and 455 not upgraded.
Need to get 6988 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libnvidia-container1 libnvidia-container-tools nvidia-container-toolkit-base nvidia-container-toolkit
Authentication warning overridden.
Get:1 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  libnvidia-container1 1.19.0-1 [1016 kB]
Get:2 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  libnvidia-container-tools 1.19.0-1 [18.9 kB]
Get:3 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  nvidia-container-toolkit-base 1.19.0-1 [4813 kB]
Get:4 https://nvidia.github.io/libnvidia-container/stable/deb/arm64  nvidia-container-toolkit 1.19.0-1 [1140 kB]
Fetched 6988 kB in 1s (6139 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libnvidia-container1:arm64.
(Reading database ... 73911 files and directories currently installed.)
Preparing to unpack .../libnvidia-container1_1.19.0-1_arm64.deb ...
Unpacking libnvidia-container1:arm64 (1.19.0-1) ...
Selecting previously unselected package libnvidia-container-tools.
Preparing to unpack .../libnvidia-container-tools_1.19.0-1_arm64.deb ...
Unpacking libnvidia-container-tools (1.19.0-1) ...
Selecting previously unselected package nvidia-container-toolkit-base.
Preparing to unpack .../nvidia-container-toolkit-base_1.19.0-1_arm64.deb ...
Unpacking nvidia-container-toolkit-base (1.19.0-1) ...
Selecting previously unselected package nvidia-container-toolkit.
Preparing to unpack .../nvidia-container-toolkit_1.19.0-1_arm64.deb ...
Unpacking nvidia-container-toolkit (1.19.0-1) ...
Setting up nvidia-container-toolkit-base (1.19.0-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-cdi-refresh.path → /etc/systemd/system/nvidia-cdi-refresh.path.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-cdi-refresh.service → /etc/systemd/system/nvidia-cdi-refresh.service.
Regenerating NVIDIA CDI specification...
Setting up libnvidia-container1:arm64 (1.19.0-1) ...
Setting up libnvidia-container-tools (1.19.0-1) ...
Setting up nvidia-container-toolkit (1.19.0-1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
/sbin/ldconfig.real: /lib/aarch64-linux-gnu/libnl-genl-3.so.200 is not a symbolic link

/sbin/ldconfig.real: /lib/aarch64-linux-gnu/libnl-3.so.200 is not a symbolic link

nvidia@tegra-ubuntu:~$ cd /usr/local/cuda/bin/
nvidia@tegra-ubuntu:/usr/local/cuda/bin$ ls
__nvcc_device_query  compute-sanitizer  cu++filt  cuda-gdbserver  cuobjdump  ncu     nvcc          nvdisasm  nvprune
bin2c                crt                cuda-gdb  cudafe++        fatbinary  ncu-ui  nvcc.profile  nvlink    ptxas
nvidia@tegra-ubuntu:/usr/local/cuda/bin$ cd ~/
nvidia@tegra-ubuntu:~$ ls
nvidia@tegra-ubuntu:~$ vim cudaQuery.cpp
nvidia@tegra-ubuntu:~$ /usr/local/cuda/bin/nvcc -ccbin g++ -o cudaQuery cudaQuery.cpp
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvidia@tegra-ubuntu:~$ ls
cudaQuery  cudaQuery.cpp
nvidia@tegra-ubuntu:~$ vim Dockerfile
nvidia@tegra-ubuntu:~$ sudo docker build -t test:sample .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  1.898MB
Step 1/3 : FROM ubuntu:24.04
24.04: Pulling from library/ubuntu
818154cda96d: Pull complete
Digest: sha256:c4a8d5503dfb2a3eb8ab5f807da5bc69a85730fb49b5cfca2330194ebcc41c7b
Status: Downloaded newer image for ubuntu:24.04
 ---> 3c220491de2e
Step 2/3 : ADD cudaQuery /
 ---> 380380a5220c
Step 3/3 : CMD ["/cudaQuery"]
 ---> [Warning] IPv4 forwarding is disabled. Networking will not work.
 ---> Running in 1a2d5876ecec
 ---> Removed intermediate container 1a2d5876ecec
 ---> 40c43c246311
Successfully built 40c43c246311
Successfully tagged test:sample
nvidia@tegra-ubuntu:~$ sudo docker run --rm --privileged --net host --runtime nvidia --gpus all test:sample
docker: Error response from daemon: unknown or invalid runtime name: nvidia.
See 'docker run --help'.
See 'docker run --help'.
nvidia@tegra-ubuntu:~$ ./cudaQuery
Running Sample Cuda Query...

Device 0: Thor
CUDA Capability major/minor: 10.1
nvidia@tegra-ubuntu:~$ sudo docker --version
Docker version 26.1.3, build 26.1.3-0ubuntu1~24.04.1
nvidia@tegra-ubuntu:~$ sudo nvidia-ctk runtime configure --runtime=docker
INFO[0000] Config file does not exist; using empty config
INFO[0000] Wrote updated config to /etc/docker/daemon.json
INFO[0000] It is recommended that docker daemon be restarted.
nvidia@tegra-ubuntu:~$ sudo systemctl restart docker
nvidia@tegra-ubuntu:~$ sudo docker info | grep -i runtime
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: runc
WARNING: IPv4 forwarding is disabled
nvidia@tegra-ubuntu:~$ sudo docker run --rm --privileged --net host --runtime nvidia --gpus all test:sample
Running Sample Cuda Query...

Device 0: Thor
CUDA Capability major/minor: 10.1

Note : If you notice issue with apt to download packages, It could be due to the previous static IP interface configuration using netplan. Please revert the changes or down the ethernet interface which was configured static IP and use another ethernet interface.

The suggested commands worked perfectly, and I was able to install the NVIDIA Container Toolkit successfully. Thank you for the detailed response.