Error while installing Jetson Xavier with sdkmanager via windows subsystem for linux ubuntu 18.04 LTS

Hi,

I got errors during installing Jetson Xavier with sdkmanager via windows subsystem for linux (WSL) ubuntu 18.04 LTS:

DETAILS TERMINAL
Component Name: All
Error

Filter text here…

01:04:12 ERROR : OpenCV on Host : download error: https://developer.nvidia.com/assets/embedded/secure/tools/files/jetpack-sdks/jetpack-4.3/JETPACK_43_b132/ubuntu1804/OpenCV-4.1.1-2-gd5a58aa75-x86_64-libs.deb failed with Error: The .mtd file is corrupt. Start a new download.
01:09:24 ERROR : OpenCV on Host : download error: https://developer.nvidia.com/assets/embedded/secure/tools/files/jetpack-sdks/jetpack-4.3/JETPACK_43_b132/ubuntu1804/OpenCV-4.1.1-2-gd5a58aa75-x86_64-dev.deb failed with Error: The .mtd file is corrupt. Start a new download.
01:12:28 ERROR : TensorRT on Target : download error: https://developer.nvidia.com/assets/embedded/secure/tools/files/jetpack-sdks/jetpack-4.3/JETPACK_43_b132/DLA/libnvinfer-dev_6.0.1-1+cuda10.0_arm64.deb failed with Error: The .mtd file is corrupt. Start a new download.
01:18:18 ERROR : TensorRT on Target : download error: https://developer.nvidia.com/assets/embedded/secure/tools/files/jetpack-sdks/jetpack-4.3/JETPACK_43_b132/DLA/libnvparsers6_6.0.1-1+cuda10.0_arm64.deb failed with Error: The .mtd file is corrupt. Start a new download.
01:41:28 ERROR : CUDA on Host : download error: checksum is wrong
01:48:42 ERROR : File System and OS : prepare_binprm: Bad file descriptor
01:48:42 ERROR : File System and OS : Run commands failed at step Install: command /tmp/tmp_NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP.sh finished with error
01:48:42 ERROR : File System and OS : command terminated with error
01:48:42 ERROR : File System and OS : install ‘File System and OS’ failure, command < cd ‘/home/gubert/nvidia/nvidia_sdk/JetPack_4.3_Linux_P2888’ ; ‘/opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter’ -a=‘install’ -c=‘eyJpZCI6Ik5WX0w0VF9GSUxFX1NZU1RFTV9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VUUEFDS19MNFRfSU1BR0VfU0VUVVBfVEFSR0VUX0dST1VQQFAyODg4IiwiaW5zdGFsbFN0YXR1cyI6Im5vbmUiLCJhY3Rpb24iOjEsImRvd25sb2FkRXJyb3JzIjpbXSwiZmlyc3REb3dubG9hZEZpbGUiOiIvaG9tZS9ndWJlcnQvRG93bmxvYWRzL252aWRpYS9zZGttX2Rvd25sb2Fkcy9UZWdyYV9MaW51eF9TYW1wbGUtUm9vdC1GaWxlc3lzdGVtX1IzMi4zLjFfYWFyY2g2NC50YnoyIiwiYnVuZGxlVGl0bGUiOiJKZXRQYWNrXzQuM19MaW51eCIsImluc3RhbGxQYXRoIjoiL2hvbWUvZ3ViZXJ0L252aWRpYS9udmlkaWFfc2RrL0pldFBhY2tfNC4zX0xpbnV4X1AyODg4IiwiaW5zdGFsbFJvb3QiOiIvaG9tZS9ndWJlcnQvbnZpZGlhL252aWRpYV9zZGsiLCJib2FyZElEIjoiUDI4ODgiLCJ0YXJnZXRBY2Nlc3NJbmZvIjp7InVzZXIiOiIiLCJwYXNzd29yZCI6IiIsImhvc3QiOiIxOTIuMTY4LjU1LjEiLCJwb3J0IjoiMjIifSwiaXNEcnlSdW4iOmZhbHNlfQ==’ -i=‘NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP’ -v=‘32.3’ -l=’/home/gubert/nvidia/nvidia_sdk/JetPack_4.3_Linux_P2888’ -L=’/home/gubert/.nvsdkm/logs/JetPack_4.3_Linux’ -p=‘11689’ -t=‘P2888’ -e=’/home/gubert/Downloads/nvidia/sdkm_downloads/Tegra_Linux_Sample-Root-Filesystem_R32.3.1_aarch64.tbz2’ > terminated with error
02:07:21 ERROR : CUDA Cross Compile Package on Host : W:
02:07:21 ERROR : CUDA Cross Compile Package on Host : Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving ‘security.ubuntu.com
02:15:57 ERROR : VisionWorks on Host : W:
02:15:57 ERROR : VisionWorks on Host : Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving ‘archive.ubuntu.com
02:16:40 ERROR : Device Mode Host Setup in Flash : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : Flash Jetson AGX Xavier : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : Device Mode Host Setup in Target SDK : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : DateTime Target Setup : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : CUDA Toolkit for L4T : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : cuDNN on Target : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : TensorRT on Target : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : OpenCV on Target : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : VisionWorks on Target : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : VPI : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : NVIDIA Container Runtime with Docker integration (Beta) : Flash skipped due to component(s) download/install failure
02:16:40 ERROR : Multimedia API : Flash skipped due to component(s) download/install failure
INSTALLATION FAILED
Please review the terminal tab for details. Resolve and RETRY.
EXPORT LOGS

RETRY
FAILED ITEMS

STOP TRYING

Copyright © 2020,

NVIDIA CORPORATION
.
All rights reserved.
|
NVIDIA Developer

Windows subsystem is not supported. There are times people have made VMs running Ubuntu work, but this takes significant effort (and is not officially supported). I do not know what would be required to make this work, but as a minimum your filesystem type would have to be ext4 (and I don’t know if Windows subsystem has any ability to work with ext4…NTFS is guaranteed to fail even if flash succeeds). It is far easier to add dual boot to Ubuntu 18.04.

In fact, i installing Jetson TX2 with sdkmanager via ubuntu 16.04 has the same error

What was the error log you have from this? There are a lot of errors which look similar but have different causes.

I found the cause of the error. That is to say, the directory where the system is installed must be group root and user root. If you want the file to belong to root, the file must belong to the system disk. The size of my system disk is too small, so I put it into another disk (the files of other disks cannot be modified to root owned), so this error occurs.

I found the cause of the error. That is to say, the directory where the system is installed must be group root and user root. If you want the file to belong to root, the file must belong to the system disk. The size of my system disk is too small, so I put it into another disk (the files of other disks cannot be modified to root owned), so this error occurs.

I’ve managed to install it with Ubuntu 18.04 on multi boot along with win10,
But I had to install few packages before installing sdkmanager.

It is actually the subdirectory “Linux_for_Tegra/rootfs/” which needs to be root ownership. Other content outside of “rootfs/” is normally owned by a regular user. Non-Linux partitions (such as from NTFS when running in the Windows subsystem for Linux) cannot handle groups since this is an unknown concept in Windows.

Multi-boot with an Ubuntu install on the host PC is indeed the recommended method of flashing. SDK Manager does sometimes need a few prerequisite packages which are not installed by default. For people interested in this, sometimes you need to add:

sudo apt update
sudo apt --fix-broken install
sudo apt-get install libgconf-2-4 libcanberra-gtk-module
sudo apt-get install python

Note that the “python” line is because there are both 2.x and 3.x versions of Python, and Ubuntu 18.04 will install only the newer version.

WSL emulates unix permissions, and WSL2 runs a hyperv instance with a real ext4 filesystem. In any case SDK Manager isn’t supported in WSL, but I imagine Nvidia might add this capability at some point. It probably wouldn’t take a whole lot of work to get SDKM instaled and building images, but I think direct flashing might be the harder part.

Already? I thought that wasn’t happening until 20.04…

I’ve noticed at times SDK manager needs Python (of the “sudo apt-get install python”) to be added for an 18.04 host (at least on mine).

IDK for sure. I know Python isn’t installed at all in Docker hub’s 18.04 image and Ubuntu Base 18.04 has a minimal python2 interpreter but I don’t recall about 18.04 desktop.

I would assume so because quite a few things like that obnoxious reminder dialog that pops up whenever you run an apt update is powered by Python. If SDKM does depend on python2 and it’s no longer included in 18.04, Nvidia should know so they can add it to the package dependencies.

Can you confirm in a VM if you’re near a pc? I am on mobile atm.

I’m not personally set up for VMs ("…never touch the stuff!"…). However, JetPack existed prior to 18.04 coming out, and so the history was to use the older Python 2. From what I can tell 18.04 added Python 3, and at least on desktop, 18.04 skipped Python 2 unless you manually added it.

shame. They’re great for testing stuff, and kvm is great.

Well. You had me curous so I downloaded and booted and iso.
Looks like it’s a full install of both python2 and 3, so SDK Manager should work fine if it depends on either of them and it’s not listed as a dependency. Perhaps somehow python2 got removed/purged on your install and that’s what caused the problem.

I actually installed my desktop Ubuntu a very short time after 18.04 was released. I’m guessing it was patched. Currently it looks like the ISO is “ubuntu-18.04.3-desktop-amd64.iso”. (There have probably been two revisions since I installed…maybe 3)