Jetson AGX Orin Flash using Sdkmanager CLI

Im using a vm (I know there are issues here but they are not related right now) with ubuntu 20.04, I am a super user on the device and whenever I try to run sdkmanager all the way through installation and prompts me for sudo in the sdk command panel it doesnt accept my credentials. When I try to sudo sdkmanager this is the error I get

user@jetsonmachine:~$ sudo sdkmanager --cli --offline --license accept --download-folder /home/user/Downloads/nvidia/sdkm_downloads
You are running SDK Manager as root user (or with root privilege). Please note: all installed files will be owned by root,
and SDK Manager configuration and log files will be saved to: /.nvsdkm directory.
Do you want to continue? Yes
Warning: --offline in args will be deprecated soon. Please use: --login-type offline
Installing from: /home/user/Downloads/nvidia/sdkm_downloads

++++++++++++++++++++++++++++++++++++++++++++++++++

  • Welcome to NVIDIA SDK MANAGER v2.3.0.12617 +
    ++++++++++++++++++++++++++++++++++++++++++++++++++

┏ Login ---------------------------------------- ┓
✔ Loading data from local folder /home/user/Downloads/nvidia/sdkm_downloads
Component dependencies may require access to online repositories.
Hello User :)
✔ Loading server data…
✔ Loading and processing available products…
┗ ---------------------------------------------- ┛

┏ Install options ------------------------------ ┓

  • Select action: Install
  • Select product: Jetson
  • Select system configuration: Host Machine [Ubuntu 20.04 - x86_64], Target Hardware
  • Select target hardware: Jetson AGX Orin modules
  • Select target operating system: Linux
  • Select SDK version: (No available option, press to go back)
    ────────────────────────────────
    JetPack 6.2 [ Cannot execute as super user ]

Just saw this sdkmanager-docker-container

so unless you did it already might be a way to attempt flash from vm.

docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb/ -v /dev:/dev -v /media/$USER:/media/nvidia:slave --name JetPack_AGX_Orin_Devkit --network host sdkmanager --cli --action install --login-type devzone --product Jetson --target-os Linux --version 6.2 --target JETSON_AGX_ORIN_TARGETS --flash --license accept --stay-logged-in true --collect-usage-data enable --exit-on-finish

If you expect to need to flash from docker container again then:

After install and flash, commit the container as a new image.

docker commit JetPack_AGX_Orin_Devkit jetpack_agx_orin_devkit:6.2_flash

docker container rm JetPack_AGX_Orin_Devkit

Next, flash can be executed from the created image directly, without additional arguments. The container can then be removed after flash is complete.

docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb/ jetpack_agx_orin_devkit:6.2_flash


Here’s what I initially typed:
running this

sdkmanager --query non-interactive --product Jetson

emits this among other options.

JetPack 6.2

sdkmanager --cli --action install --login-type devzone --product Jetson --version 6.2 --target-os Linux --target JETSON_AGX_ORIN_TARGETS --flash

OK so I am no longer using a VM or docker. I have a host machine (ubuntu 20.04) and whenever i try to run the sdk manager (either gui or cli) when it comes to the installation part of the process I get asked to enter my sudo password into the app but it does not take my password. When I use sudo to start the sdkmanager it tells me that installation of jetpack is not available as superuser. So I get stuck on this part of installation I am not too sure what to do here. Has anyone else encountered this issue?

On your ubuntu ‘host’ desktop run the following to install sdkmanager requirements on your host computer (correct the path if it is installed elsewhere).

sudo ~/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/l4t_flash_prerequisites.sh

sudo apt update
sudo apt install qemu-user-static binfmt-support

sudo update-binfmts --enable


If you now still have problems with sdkmanager here’s the Nvidia documents:

Log In and Run SDK Manager


im getting hit with this even after running through the steps provided

To be clear; that box wants your local computer logon password. Which may be different from your developer.nvidia.com password unless you made them the same.

I understand what the box is asking, it wont accept my sudo credentials for my computer and im asking is there a way to bypass this or why is it only inside the sdkmanager interface that it wont accept my sudo credentials

Try this.

sudo apt-get purge sdkmanager

If you already did the following 3 lines then just install sdkmanager. Otherwise do all 4 lines.

wget https://developer.download.nvidia.com/compute/cuda/repos/[distro]/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update

sudo apt -y install sdkmanager

Replace the [distro] in “wget” line with your host os version : ubuntu1804, ubuntu2004, ubuntu2204, or ubuntu2404

user@agb329:~$ sudo apt -y install ~/Downloads/sdkmanager_2.3.0-12617_amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘sdkmanager’ instead of ‘/home/user/Downloads/sdkmanager_2.3.0-12617_amd64.deb’
The following NEW packages will be installed:
sdkmanager
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/89.2 MB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 /home/user/Downloads/sdkmanager_2.3.0-12617_amd64.deb sdkmanager amd64 2.3.0-12617 [89.2 MB]
Selecting previously unselected package sdkmanager.
(Reading database … 214243 files and directories currently installed.)
Preparing to unpack …/sdkmanager_2.3.0-12617_amd64.deb …
Unpacking sdkmanager (2.3.0-12617) …
Setting up sdkmanager (2.3.0-12617) …
Processing triggers for mime-support (3.64ubuntu1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for desktop-file-utils (0.24-1ubuntu3) …
N: Download is performed unsandboxed as root as file ‘/home/user/Downloads/sdkmanager_2.3.0-12617_amd64.deb’ couldn’t be accessed by user ‘_apt’. - pkgAcquire::Run (13: Permission denied)

following will give user _apt required permissions to /tmp

sudo chmod 1777 /tmp

and then run this again

sudo apt -y install ~/Downloads/sdkmanager_2.3.0-12617_amd64.deb

It didnt work, no matter what I do i end being prompted for sudo on the installation step and getting hit with “Sudo Validation Command Failed”

you could try this to see if problem is group membership

sudo usermod -a -G adm,sudo,docker,nvidia $USER

usermod: group ‘docker’ does not exist
usermod: group ‘nvidia’ does not exist

Hi,
Please try the manual steps and see if it works:

Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation

You can download Driver Package (BSP) and Sample Root Filesystem from

Jetson Linux Release 36.4.4 | NVIDIA Developer

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