SDK Manager 0.9.113405 hanging. (SP6 running Win10 with VMware and Ubuntu 18.04.2 LTS.)

Hello All.
I’ve looked for answers before posting so I hope this have not been asked before.

I’m using a SP6 running Win10 with VMware and Ubuntu 18.04.2 LTS.

During install with both target hardware enabled or disabled I get an error installing openCV.

Here is the report:

21:49:06 INFO : OpenCV on Host : Found file /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
•21:49:06 INFO : OpenCV on Host : Found file /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-python_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
•21:49:07 INFO : OpenCV on Host : Found file /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
•21:49:07 INFO : OpenCV on Host : Found file /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-samples_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
•21:49:07 INFO : OpenCV on Host : download ‘OpenCV on Host’ success
•21:49:07 INFO : OpenCV on Host : download ‘OpenCV on Host’ success
•21:49:07 INFO : OpenCV on Host : Start to install ‘OpenCV on Host’
•21:49:07 INFO : OpenCV on Host : [host] [sudo] password for robotros:
•21:49:07 INFO : OpenCV on Host :
•21:49:07 INFO : OpenCV on Host :
•21:49:07 DEBUG : OpenCV on Host : running command < cd ‘/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c=‘e…9’ -i=‘NV_OPENCV_HOST_COMP’ -v=‘3.3.1’ -l=’/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ -L=’/home/robotros/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘6430’ -t=’’ -e=’/home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb’ >
•21:49:07 INFO : OpenCV on Host : [ Disk Avail:104.76 GB ]
•21:49:07 INFO : OpenCV on Host : Using GenericInstaller to Install NV_OPENCV_HOST_COMP
•21:49:07 INFO : OpenCV on Host : NV_OPENCV_HOST_COMP include 4 package
•21:49:07 INFO : OpenCV on Host : [ Package PreInstall Started ]
•21:49:07 INFO : OpenCV on Host : current working directory is /home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux
•21:49:07 INFO : OpenCV on Host : exec_command: sudo apt-get install -y libtbb-dev
•21:49:07 INFO : OpenCV on Host : Reading package lists…
•21:49:08 INFO : OpenCV on Host : Building dependency tree…
•21:49:08 INFO : OpenCV on Host : Reading state information…
•21:49:08 INFO : OpenCV on Host : libtbb-dev is already the newest version (2017~U7-8).
•21:49:08 INFO : OpenCV on Host : 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
•21:49:08 INFO : OpenCV on Host : [ Package PreInstall Finished Successfully ]
•21:49:08 INFO : OpenCV on Host : [ Package Install Started ]
•21:49:08 INFO : OpenCV on Host : deb installer start to install
•21:49:08 INFO : OpenCV on Host : exec_command: dpkg -f /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb Package | tr -d ’
•21:49:08 INFO : OpenCV on Host : ’
•21:49:08 INFO : OpenCV on Host : exec_command: dpkg -f /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb Version | tr -d ’
•21:49:08 INFO : OpenCV on Host : ’
•21:49:08 INFO : OpenCV on Host : deb file /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb, package name [libopencv], package version [3.3.1-2-gb3f86dcd5]
•21:49:08 INFO : OpenCV on Host : infer package info from file name libopencv_3.3.1-2-gb3f86dcd5_amd64.deb [ name: libopencv, version: 3.3.1-2-gb3f86dcd5 ]
•21:49:08 INFO : OpenCV on Host : exec_command: sudo dpkg -i /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb
•21:49:09 ERROR : OpenCV on Host : dpkg: considering removing opencv-data in favour of libopencv …
•21:49:09 INFO : OpenCV on Host : dpkg: yes, will remove opencv-data in favour of libopencv
•21:49:09 INFO : OpenCV on Host : (Reading database … 276474 files and directories currently installed.)
•21:49:09 INFO : OpenCV on Host : Preparing to unpack …/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb …
•21:49:09 INFO : OpenCV on Host : Unpacking libopencv (3.3.1-2-gb3f86dcd5) …
•21:49:10 ERROR : OpenCV on Host : dpkg: error processing archive /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb (–install):
•21:49:10 INFO : OpenCV on Host : trying to overwrite ‘/usr/bin/opencv_version’, which is also in package libopencv-dev 3.2.0+dfsg-4ubuntu0.1
•21:49:10 ERROR : OpenCV on Host : Errors were encountered while processing:
•21:49:10 INFO : OpenCV on Host : /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb
•21:49:10 INFO : OpenCV on Host : exit status 1
•21:49:10 INFO : OpenCV on Host : exec_command: sudo apt-get check
•21:49:11 INFO : OpenCV on Host : Reading package lists…
•21:49:11 INFO : OpenCV on Host : Building dependency tree…
•21:49:11 INFO : OpenCV on Host : Reading state information…
•21:49:11 INFO : OpenCV on Host : exec_command: dpkg-query -W -f=’{db:Status-abbrev} {Version}’ libopencv
•21:49:12 INFO : OpenCV on Host : [ Package Install Finished with Error ]
•21:49:12 ERROR : OpenCV on Host : NV_OPENCV_HOST_COMP package [{libopencv 3.3.1}] not installed
•21:49:12 INFO : OpenCV on Host :
•21:49:12 INFO : OpenCV on Host : [ 12.00 KB used. Disk Avail: 104.76 GB ]
•21:49:12 INFO : OpenCV on Host : [ NV_OPENCV_HOST_COMP Install took 5s ]
•21:49:12 INFO : OpenCV on Host : package [{libopencv 3.3.1}] not installed
•21:49:12 ERROR : OpenCV on Host : command terminated with error
•21:49:12 ERROR : OpenCV on Host : install ‘OpenCV on Host’ failure, command < cd ‘/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c=’…19’ -i=‘NV_OPENCV_HOST_COMP’ -v=‘3.3.1’ -l=’/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ -L=’/home/robotros/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘6430’ -t=’’ -e=’/home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb’ > terminated with error
•21:49:12 INFO : OpenCV on Host : Start to install ‘OpenCV on Host’
•21:49:12 DEBUG : OpenCV on Host : running command < cd ‘/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c=‘e…0=’ -i=‘NV_OPENCV_HOST_COMP’ -v=‘3.3.1’ -l=’/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ -L=’/home/robotros/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘6430’ -t=’’ -e=’/home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb’ >
•21:49:12 INFO : OpenCV on Host : [ Disk Avail:104.76 GB ]
•21:49:12 INFO : OpenCV on Host : Using GenericInstaller to Install NV_OPENCV_HOST_COMP
•21:49:12 INFO : OpenCV on Host : NV_OPENCV_HOST_COMP include 4 package
•21:49:12 INFO : OpenCV on Host : [ Package PreInstall Started ]
•21:49:12 INFO : OpenCV on Host : current working directory is /home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux
•21:49:12 INFO : OpenCV on Host : exec_command: sudo apt-get install -y libtbb-dev
•21:49:12 INFO : OpenCV on Host : Reading package lists…
•21:49:12 INFO : OpenCV on Host : Building dependency tree…
•21:49:12 INFO : OpenCV on Host : Reading state information…
•21:49:13 INFO : OpenCV on Host : libtbb-dev is already the newest version (2017~U7-8).
•21:49:13 INFO : OpenCV on Host : 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
•21:49:13 INFO : OpenCV on Host : [ Package PreInstall Finished Successfully ]
•21:49:13 INFO : OpenCV on Host : [ Package Install Started ]
•21:49:13 INFO : OpenCV on Host : deb installer start to install
•21:49:13 INFO : OpenCV on Host : exec_command: dpkg -f /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb Package | tr -d ’
•21:49:13 INFO : OpenCV on Host : ’
•21:49:13 INFO : OpenCV on Host : exec_command: dpkg -f /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb Version | tr -d ’
•21:49:13 INFO : OpenCV on Host : ’
•21:49:13 INFO : OpenCV on Host : deb file /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb, package name [libopencv], package version [3.3.1-2-gb3f86dcd5]
•21:49:13 INFO : OpenCV on Host : infer package info from file name libopencv_3.3.1-2-gb3f86dcd5_amd64.deb [ name: libopencv, version: 3.3.1-2-gb3f86dcd5 ]
•21:49:13 INFO : OpenCV on Host : exec_command: sudo dpkg -i /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb
•21:49:13 ERROR : OpenCV on Host : dpkg: considering removing opencv-data in favour of libopencv …
•21:49:13 INFO : OpenCV on Host : dpkg: yes, will remove opencv-data in favour of libopencv
•21:49:13 INFO : OpenCV on Host : (Reading database … 276474 files and directories currently installed.)
•21:49:13 INFO : OpenCV on Host : Preparing to unpack …/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb …
•21:49:13 INFO : OpenCV on Host : Unpacking libopencv (3.3.1-2-gb3f86dcd5) …
•21:49:14 ERROR : OpenCV on Host : dpkg: error processing archive /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb (–install):
•21:49:14 INFO : OpenCV on Host : trying to overwrite ‘/usr/bin/opencv_version’, which is also in package libopencv-dev 3.2.0+dfsg-4ubuntu0.1
•21:49:14 ERROR : OpenCV on Host : Errors were encountered while processing:
•21:49:14 INFO : OpenCV on Host : /home/robotros/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb
•21:49:14 INFO : OpenCV on Host : exit status 1
•21:49:14 INFO : OpenCV on Host : exec_command: sudo apt-get check
•21:49:15 INFO : OpenCV on Host : Reading package lists…
•21:49:15 INFO : OpenCV on Host : Building dependency tree…
•21:49:15 INFO : OpenCV on Host : Reading state information…
•21:49:15 INFO : OpenCV on Host : exec_command: dpkg-query -W -f=’{db:Status-abbrev} {Version}’ libopencv
•21:49:15 INFO : OpenCV on Host : [ Package Install Finished with Error ]
•21:49:15 ERROR : OpenCV on Host : NV_OPENCV_HOST_COMP package [{libopencv 3.3.1}] not installed
•21:49:15 INFO : OpenCV on Host :
•21:49:15 INFO : OpenCV on Host : [ 8.00 KB used. Disk Avail: 104.76 GB ]
•21:49:15 INFO : OpenCV on Host : [ NV_OPENCV_HOST_COMP Install took 4s ]
•21:49:15 INFO : OpenCV on Host : package [{libopencv 3.3.1}] not installed
•21:49:15 ERROR : OpenCV on Host : command terminated with error
•21:49:15 ERROR : OpenCV on Host : install ‘OpenCV on Host’ failure, command < cd ‘/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c=‘e…0=’ -i=‘NV_OPENCV_HOST_COMP’ -v=‘3.3.1’ -l=’/home/robotros/nvidia/nvidia_sdk/JetPack_4.2_Linux’ -L=’/home/robotros/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘6430’ -t=’’ -e=’/home/robotros/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb’ > terminated with error

Any sugestions on how to fix this?
Regards

Hi ROVguy,

Are you run the sdkmanager on VM?
We are not support VM server, please run the sdkmanager on Ubuntu directly. Thanks!

Thanks Carolyuu.

Yes this is or was setup on a virtual machine. When I run the setup using Ubuntu 18.04 on VMware, Jetson OS loads but then the install hangs at 50% when it’s time to load SDK components. Just says pending though Ubuntu is now running on Xavier and I can login and reboot or surf the net.

I was eventually able to load Ubuntu 18.04 directly into my older SP3. All host components loaded just fine but when it comes to load Xavier with the OS the system keeps dropping the link and I get an error message that it couldn’t establish connection (I don’t remember the exact message other than that the link was not there). When I do lsusb through terminal I still see Xavier.

Any suggestions why I keep loosing connection or how to get Xavier properly flashed?

Thanks

Hi ROVguy,

Please make sure there is no environment issue, confirm this by manually flashing:

Put Jetson device to recovery mode. 
Go to JetPack install directory: ~/nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888/
cd Linux_for_Tegra
Run below command to flash Jetson device:  
$ sudo ./flash.sh jetson-xavier

Hello again Carolyuu,
I tried your suggestion and had similar results as to before.

SP3 with just Ubuntu.
When connected and in recovery mode I can see Xavier through terminal but when I run the code I get an error:
probing the target board failed.
Make sure the target board is connected through USB port and is in recovery mode.

SP6 with ubuntu running through VMware.
Xavier loads, I setup Ubuntu on Xavior and all seems OK.

Is there a way to check if everything that is needed loaded? Specifically since SDK manager on the virtual machine under host did not install openCV would openCV still load in Xavier? If I’m missing packages in Xavier is there a way to install them individually through terminal?

Thanks again for all the help.

Hi ROVguy,

For your SP3 with just Ubuntu:

  1. Are you connect type-c to USB cable on your Xavier to host PC?
  2. Are you flash by sdkmanager or manually?

The OpenCV had install on host and Target via sdkmanager.
You can find the deb package on your download folder. (In SDK Manager Steps 2)

Everything that I have done with SP6 I copied exactly with SP3. I have tried both sdk manager and manually.

How do I check if everything that is required loaded onto the Xavier?
Thanks

I am not familiar with what SP3 or SP6 is, but one of the major issues when using the VM is loss of USB during flash because the USB re-enumerates and is lost if the VM does not maintain ownership the entire time.

Once flash completes (you can just add packages or just flash if you check the right steps) the Jetson reboots and extra packages (e.g., CUDA) are added over wired ethernet. If the particular combination of release and Jetson uses the USB virtual ethernet, then the additional trick is that virtual wired ethernet is over the USB cable. If you’ve lost USB ownership, you’ve again lost the ability to continue since the virtual ethernet case requires the USB. Even if you have passed through USB, if the virtual network device provided is taken by the host and not by the VM, then you’ve lost yet again (there is the double requirement…ownership by VM of both USB and ethernet even when things are constantly disconnecting and reconnecting).

Assuming everything works correctly, extra package addition might also require at this stage that you use the GUI on your host to allow the virtual adapter to be used. This is just the Ubuntu host perhaps requiring you to enable a new network adapter. This will possibly be an issue regardless of whether or not a VM is used.

If you have installed extra packages, then you will see CUDA and perhaps other related content in “/usr/local/”. You will see a “local” repository (or more) in “/var/”. Any “.deb” file in a local repo found in “/var/” can be added by apt/apt-get.

Sorry I thought I typed it out at least once. SP3 and SP6 are Surface Pro3 and 6. The only issues I had with the virtual machine (SP6 Running win10 and Ubuntu 18.04 on VMware) was that OpenCV did not load on the host. Everything else worked fine (or so seems).
SP3 is strictly Ubuntu 18.04. SDK manager loaded completely including OpenCV. The issue I had there was that it kept dropping the connection to Xavier even though I could still see it over terminal.

I was only able to flash Xavier with SP6. Under user/local all I see is: bin etc games include lib man sbin share src. Looks like nothing extra loaded.

Keep in mind that when you run SDK Manager again you can disable the flash step and the host install step (you would skip CUDA and dev tools on the SP). When it gets to the install stage for extra packages, then in case of any failure try unplugging and replugging the USB…monitor “dmesg --follow” as you do. Once you see a MAC address in dmesg try manually enabling this in the network config of the host. If nothing shows on dmesg, then it means either the Jetson didn’t boot and provide the virtual ethernet, or else (for the case of a VM) the host did not pass it through.

@ linuxdev and carolyuu.
Thanks for the help with this setup. After trying everything including a 3rd computer (generic tower) with Ubuntu 18.04 the SDK manager never did a full install. I did get Xavier loaded with all components by installing the OS using sudo ./flash.sh jetson-xavier and the components using SDK manager as you both suggested.