Failed to install & flash the Jetson OS from the Docker image of the Nvidia SDK Manager

Hello,

I followed the steps to download & use docker image built by NVidia to run sdkmanager:
https://docs.nvidia.com/sdk-manager/docker-containers/index.html

So I downloaded sdkmanager-1.6.0.8170_docker.tar.gz.
I ran :
docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb/ --name JetPack_NX_Devkit sdkmanager --cli install --logintype devzone --product Jetson --target JETSON_XAVIER_NX_TARGETS --targetos Linux --version 4.6 --select 'Jetson OS' --deselect 'Jetson SDK Components' --flash all --license accept --staylogin true --datacollection enable --exitonfinish

and

docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb/ --name JetPack_NX_Devkit sdkmanager --cli install --logintype devzone --product Jetson --target P3668-0001 --targetos Linux --version 4.6 --select 'Jetson OS' --deselect 'Jetson SDK Components' --flash all --license accept --staylogin true --datacollection enable

The process failed.
sdkm.2.log (81.1 KB)

β”Œβ”€ INSTALLATION FAILED β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”β”Œβ”€ Terminal Log ────────────────────────────────────┐
β”‚  Do you want to retry?                           β”‚β”‚ER_NX_TARGETS/Linux_for_Tegra/rootfs               β”‚
β”‚   Retry                                          β”‚β”‚error: chroot: failed to run command 'dpkg': Exec  β”‚
β”‚   Exit                                           β”‚β”‚format error                                       β”‚
β”‚                                                  β”‚β”‚info: [ Package Install Finished with Error ]      β”‚
β”‚                                                  β”‚β”‚info: [host] [ 4.49 GB used. Disk Avail: 172.60    β”‚
β”‚                                                  β”‚β”‚GB ]                                               β”‚
β”‚                                                  β”‚β”‚info: [ NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP        β”‚
β”‚                                                  β”‚β”‚Install took 2m50s ]                               β”‚
β”‚                                                  β”‚β”‚error: [error]: : [exec_command]: /bin/bash -c     β”‚
β”‚                                                  β”‚β”‚/tmp/tmp_NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP.sh;   β”‚
β”‚                                                  β”‚β”‚[error]: chroot: failed to run command 'dpkg':     β”‚
β”‚                                                  β”‚β”‚Exec format error                                  β”‚
β”‚                                                  β”‚β”‚info:                                              β”‚
β”‚                                                  β”‚β”‚info:                                              β”‚
β”‚                                                  β”‚β”‚error: command terminated with error               β”‚
β”‚                                                  β”‚β”‚info: Installation failed.                         β”‚
β”‚                                                  β”‚β”‚info: Depends on failed component  

Is there any way to flash my board from my host (ubuntu 20.04) or from my container ?

Best regards

Hello Richard,

Can you please try the steps in this post?

Hi,

qemu-user-static is already installed on my host machine. JetPack is not installed.

Please note sdkmanager run from NVidia’s container.

Hi,

I changed the β€œtarget” option.
The docker container is too small (?) for JETSON_XAVIER_NX_TARGETS.
P3668-0001 was probably an incompatible target (sdkmanager do not tell me that in a cristal clear way).
Interactive cli does not guess the right target.
Graphical sdkmanager allow me to guess the right target (executed on host but cannot flash with it. See https://forums.developer.nvidia.com/t/sdkmanager-incompatible-with-ubuntu-20-04/187977/2.)

So :

  • Error messages from sdkmanager are cryptic.
  • Graphical sdkmanager allow me to guess the right target.
  • CLI from docker allow me to flash.

Problem solved.

2 Likes