Xavier AGX: sdkmanager 1.2.0-6733 Won't Run

I am following the the instructions in User Guide JETSON AGX XAVIER DEVELOPER KIT DA_09403_003 January 7, 2020.

I am experiencing these issues in attempting to install and run the sdkmanager.

Page 7 of that User Guide states:

Supported host operating systems are:Ubuntu Linux x64 Version 18.04 or 16.04

I downloaded the Ubuntu 18.04.4 LTS (Bionic Beaver) Live Desktop image from https://releases.ubuntu.com/18.04/ , and flashed it to a uSD card. Running Ubuntu from a live USB boot image results in the following:

uname -a
Linux ubuntu 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I downloaded the sdkmanager package from this URL: https://developer.nvidia.com/nvidia-sdk-manager . After struggling to overcome the missing dependencies reported by dpkg, I was successful in installing sdkmanager_1.2.0-6733_amd64.deb.

Errors were encountered while processing:
sdkmanager
Wed Jul 8 15:27:04 UTC 2020
(Reading database … 151911 files and directories currently installed.)
Preparing to unpack …/sdkmanager_1.2.0-6733_amd64.deb …
Unpacking sdkmanager (1.2.0-6733) over (1.2.0-6733) …
dpkg: dependency problems prevent configuration of sdkmanager:
sdkmanager depends on libgconf-2-4; however:
Package libgconf-2-4 is not installed.
sdkmanager depends on libcanberra-gtk-module; however:
Package libcanberra-gtk-module is not installed.

Attempting to run sdkmanager from the Applications Manager icon silently fails to launch it.

Attempting to run sdkmanager from a terminal window as user ubuntu generates this output:

ubuntu@ubuntu:~$ sdkmanager
/snapshot/main/node_modules/sql.js/js/sql.js:5
1<process.argv.length?process.argv[1].replace(/\/g,"/"):“unknown-program”);f.arguments=process.argv.slice(2);“undefined”!==typeof module&&(module.exports=f);process.on(“uncaughtException”,function(a){if(!(a instanceof ka))throw a;});f.inspect=function(){return"[Emscripten Module object]"}}else if(fa)f.print||(f.print=print),“undefined”!=typeof printErr&&(f.printErr=printErr),f.read=“undefined”!=typeof read?read:function(){throw"no read() available (jsc?)";},f.readBinary=function(a){if(“function”===
^

Error: EPERM: operation not permitted, unlink ‘/tmp/sdkmanager.sock’
at Object.unlinkSync (fs.js:1129:3)
at Socket. (/snapshot/main/headless.bundle.js)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -1,
syscall: ‘unlink’,
code: ‘EPERM’,
path: ‘/tmp/sdkmanager.sock’
}

Additional information:

ubuntu@ubuntu:~ lsusb Bus 002 Device 002: ID 05e3:0749 Genesys Logic, Inc. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 8087:0aa7 Intel Corp. Bus 001 Device 008: ID 8087:0ab6 Intel Corp. Bus 001 Device 007: ID 19ff:0238 Dynex DX-WRM1401 Mouse Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 004: ID 046d:c248 Logitech, Inc. G105 Gaming Keyboard Bus 001 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub Bus 001 Device 012: ID 0955:7019 NVidia Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ubuntu@ubuntu:~ lsusb -d 0955:7019
Bus 001 Device 012: ID 0955:7019 NVidia Corp.

ubuntu@ubuntu:~$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 480M
|__ Port 2: Dev 12, If 0, Class=Vendor Specific Class, Driver=, 480M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/7p, 480M
|__ Port 4: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 5: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 8, If 1, Class=CDC Data, Driver=cdc_acm, 12M
|__ Port 4: Dev 8, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 5: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 5: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M

So there are several issues that require attention from Nvidia engineers:

  1. Missing dependencies for sdkmanager_1.2.0-6733_amd64.deb
  2. Sdkmanager will not run from the Applications Manager icon
  3. Sdkmanager will not run from a terminal window

Please provide a path forward to successfully flashing my Nvidia Jetson AGX Xavier with the latest Jetpack including detailed corrected instructions and valid URLs to required software.

ADVthanksANCE
Larry Dighera

UPDATE: July 17, 2020

The sdkmanager package is in the Downloads sub-directory:

root@ubuntu:/home/ubuntu/Downloads# ls -l
-rw-rw-r-- 1 ubuntu ubuntu 93787286 Jul 11 16:10
sdkmanager_1.2.0-6733_amd64.deb

Installing the sdkmanager package downloaded from Nvidia (not the one from the Ubuntu distribution as apt erroneously selected in my previous message) produced this output:

/home/ubuntu/Downloads (1) # dpkg -V sdkmanager_1.2.0-6733_amd64.deb
dpkg: package ‘sdkmanager_1.2.0-6733_amd64.deb’ is not installed
/home/ubuntu/Downloads (1) # dpkg -i sdkmanager_1.2.0-6733_amd64.deb
(Reading database … 149810 files and directories currently installed.)
Preparing to unpack sdkmanager_1.2.0-6733_amd64.deb …
Unpacking sdkmanager (1.2.0-6733) over (1.2.0-6733) …
Setting up sdkmanager (1.2.0-6733) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) …
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) …
Processing triggers for mime-support (3.60ubuntu1) …
/home/ubuntu/Downloads (1) #

However, attempting to run the newly installed version of sdkmanager still produced this error:

$ sdkmanager
/snapshot/main/node_modules/sql.js/js/sql.js:5
1<process.argv.length?process.argv[1].replace(/\/g,"/"):“unknown-program”);f.arguments=process.argv.slice(2);“undefined”!==typeof module&&(module.exports=f);process.on(“uncaughtException”,function(a){if(!(a instanceof ka))throw a;});f.inspect=function(){return"[Emscripten Module object]"}}else if(fa)f.print||(f.print=print),“undefined”!=typeof printErr&&(f.printErr=printErr),f.read=“undefined”!=typeof read?read:function(){throw"no read() available (jsc?)";},f.readBinary=function(a){if(“function”===
^

Error: EPERM: operation not permitted, unlink ‘/tmp/sdkmanager.sock’
at Object.unlinkSync (fs.js:1129:3)
at Socket. (/snapshot/main/headless.bundle.js)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -1,
syscall: ‘unlink’,
code: ‘EPERM’,
path: ‘/tmp/sdkmanager.sock’
}

I sent email to sdkm-feedback@nvidia.com directing them to this message in the hope that they may be able to resolve this issue.

I will be grateful for all other assistance in installing sdkmanager so that I can finally have an opportunity to use my Nvidia development kit. Surely others have been successful.

Larry

Hi Larry,
The error here indicates that you don’t have permission to remove the ‘/tmp/sdkmanager.sock’ file. Can you please check if you have write permission to this file with ls -al /tmp/sdkmanager.sock command?

Edward,

Thank you so much for your response.

As you requested:

# ls -al /tmp/sdkmanager.sock
srwxr-xr-x 1 root root 0 Jul 24 05:55 /tmp/sdkmanager.sock

When I attempted to run sdkmanager as root, I receive this error:

/root/Nvidia (1) # sdkmanager
/root/Nvidia (1) # [3967:0724/055530.792581:FATAL:atom_main_delegate.cc(207)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

So, I suppose that stale lock file was created when I attempted to run sdkmanager as root.

Indeed, when I run sdkmanager as regular user larry it silently terminates with $? = 0, and leaves a stale lock file owned by larry:

# ls -al /tmp/sdkmanager.sock
srwxr-xr-x 1 larry larry 0 Jul 24 06:08 /tmp/sdkmanager.sock

While the stale lock file issues is annoying, this first successful execution of sdkmanager is encouraging. The reason for this success is probably due to having done a full Ubuntu install, instead of attempting to run from an Ubuntu live USB stick.

Is sdkmanager’s failure to remove its lockfiles upon termination a bug or feature?

So, I’ll try running sdkmanager again with the Jetson AGX Xavier connected in recovery mode and see if sdkmanger produces some enlightening output.

I am very grateful for your assistance.

With the Jetson AGX Xavier in recovery mode connected to the Ubuntu system, sdkmanager produces an interesting message:

larry@ubuntu-udoo-x86:~$ sdkmanager
SDK Manager is already running; please use the running SDK Manager instance.

Indeed, sdkmanager does appear to be running:

larry@ubuntu-udoo-x86:~ ps PID TTY TIME CMD 4004 pts/1 00:00:00 bash 4641 pts/1 00:00:00 ps larry@ubuntu-udoo-x86:~ ps -ef |grep sdkmanager
larry 4193 1097 0 06:08 ? 00:00:12 /opt/nvidia/sdkmanager/sdkmanager-gui
larry 4196 4193 0 06:08 ? 00:00:00 /opt/nvidia/sdkmanager/sdkmanager-gui --type=zygote
larry 4198 4196 0 06:08 ? 00:00:00 /opt/nvidia/sdkmanager/sdkmanager-gui --type=zygote
larry 4226 4193 0 06:08 ? 00:00:01 /opt/nvidia/sdkmanager/sdkmanager-gui --type=gpu-process --field-trial-handle=1132385675120102733,8244614279864317542,131072 --disable-features=SpareRendererForSitePerProcess --gpu-preferences=KAAAAAAAAAAgAAAgAAAAAAAAYAAAAAAAEAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAA --service-request-channel-token=11534779525642364468
larry 4227 4193 0 06:08 ? 00:00:04 /opt/nvidia/sdkmanager/sdkmanager-gui --type=utility --field-trial-handle=1132385675120102733,8244614279864317542,131072 --disable-features=SpareRendererForSitePerProcess --lang=en-US --service-sandbox-type=network --service-request-channel-token=12618918487472582290 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
larry 4229 4193 0 06:08 ? 00:00:10 /opt/nvidia/sdkmanager/sdkmanager-gui --type=renderer --field-trial-handle=1132385675120102733,8244614279864317542,131072 --disable-features=SpareRendererForSitePerProcess --lang=en-US --app-path=/opt/nvidia/sdkmanager/resources/app --node-integration --webview-tag --no-sandbox --no-zygote --background-color=#121419 --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=12020936082258644680 --renderer-client-id=5 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
larry 4266 4229 0 06:08 ? 00:00:00 /opt/nvidia/sdkmanager/sdkmanager-gui /opt/nvidia/sdkmanager/resources/app/output/dist/electron/service/spawn-worker.js
larry 4267 4229 0 06:08 ? 00:00:01 /opt/nvidia/sdkmanager/sdkmanager-gui /opt/nvidia/sdkmanager/resources/app/output/dist/electron/service/downloadService.js
larry 4293 4193 0 06:08 ? 00:00:00 /opt/nvidia/sdkmanager/sdkmanager-gui --type=renderer --field-trial-handle=1132385675120102733,8244614279864317542,131072 --disable-features=SpareRendererForSitePerProcess --lang=en-US --app-path=/opt/nvidia/sdkmanager/resources/app --node-integration --no-sandbox --no-zygote --background-color=#323332 --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=7345309999244273686 --renderer-client-id=8 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
larry 4335 4193 0 06:08 ? 00:00:07 /opt/nvidia/sdkmanager/sdkmanager-gui --type=renderer --field-trial-handle=1132385675120102733,8244614279864317542,131072 --disable-features=SpareRendererForSitePerProcess --lang=en-US --app-path=/opt/nvidia/sdkmanager/resources/app --node-integration --no-sandbox --no-zygote --background-color=#fff --guest-instance-id=2 --enable-blink-features --disable-blink-features --hidden-page --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=11004404528383631922 --renderer-client-id=10 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
larry 4644 4004 0 06:41 pts/1 00:00:00 grep --color=auto sdkmanager
larry@ubuntu-udoo-x86:~$

Burried under the numerous windows open on the desktop, I found:

sdkmanager RAM warming_Screenshot from 2020-07-24 06-56-30

So, it would appear that undocumented or well hidden requirements are the source of my frustration:

REQUIREMENT 1: Ubuntu live USB stick cannot be used to install sdkmanager

REQUIREMENT 2: An AMD64 system with a minimum of 7.5GB of ram is required to run sdkmanager.

Indeed, these requirements are mentioned on this page: https://docs.nvidia.com/sdk-manager/system-requirements/index.html

At any rate, I have now successfully run sdkmanager on my 4GB RAM system, and flashed the Jetson AGX Xaviar. It took about an hour and a half to complete.

Now, I’m trying to find Nvidia documentation that explains how to install the isaac module: isaac-sdk-20200527-0159e2bab.tar.xz

Thanks again for your support. It’s a releaf to finally be poised to explore AI development after over a month of frustration.

Best regards,
Larry