SDKManager Hangs During Installation

I am trying to setup Jetpack using SDK Manager 0.9.11.3405 for Jetson Nano. I get through flashing Nano but target SDK components installation remains pending install because I get an install error for OpenCV and VisionWorks on Host. Then, it hangs there forever. I get the following errors:

21:10:48 ERROR : OpenCV on Host : dpkg: considering removing opencv-data in favour of libopencv …
21:10:50 ERROR : OpenCV on Host : dpkg: error processing archive /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb (–install):
21:10:53 ERROR : OpenCV on Host : Errors were encountered while processing:
21:10:55 ERROR : OpenCV on Host : NV_OPENCV_HOST_COMP package [{libopencv 3.3.1}] not installed
21:10:55 ERROR : OpenCV on Host : command terminated with error
21:10:55 ERROR : OpenCV on Host : install ‘OpenCV on Host’ failure, command < cd ‘/home/ras/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c='blablabla…

Rerunning the SDK Manager doesn’t help but end up at the same point. Any advice on how to proceed?

Thanks,

Rasid

Hi rasid.pac,

What is your host ubuntu version?
We’re support Ubuntu 16.04 and 18.04. Thanks!

18.04 it is.

Hi,

The error indicates the installation for host failed.

Suppose you want to install the libraries on the Jetson.
Do you run the sdkmanager on a x86 machine and select the install option for Jetson?

Thanks.

Yes, I run the SDKManager on 64-bit Bionic Beaver on a x86 machine (Intel i5) and select Jetson Nano for target. The host is a laptop with an ATI graphics card. Is Nvidia GPU a prerequisite for Jetson development?

Here is the complete log for the part where it tries to install Computer Vision on host. Please see where the first error occurs.

20:46:37 INFO : null
20:46:43 INFO : CUDA on Host : download ‘CUDA on Host’ success
20:46:43 INFO : NVIDIA Nsight Systems : download ‘NVIDIA Nsight Systems’ success
20:46:43 INFO : NVIDIA Nsight Graphics : download ‘NVIDIA Nsight Graphics’ success
20:46:43 INFO : CUDA Cross Compile Package on Host : download ‘CUDA Cross Compile Package on Host’ success
20:46:43 INFO : DevTools Documentation : download ‘DevTools Documentation’ success
20:46:43 INFO : CUDA on Host : install ‘CUDA on Host’ success
20:46:43 INFO : NVIDIA Nsight Systems : install ‘NVIDIA Nsight Systems’ success
20:46:43 INFO : NVIDIA Nsight Graphics : install ‘NVIDIA Nsight Graphics’ success
20:46:43 INFO : CUDA Cross Compile Package on Host : install ‘CUDA Cross Compile Package on Host’ success
20:46:43 INFO : DevTools Documentation : install ‘DevTools Documentation’ success
20:46:43 INFO : OpenCV on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
20:46:43 INFO : OpenCV on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
20:46:43 INFO : OpenCV on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libopencv-python_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
20:46:43 INFO : OpenCV on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libopencv-samples_3.3.1-2-gb3f86dcd5_amd64.deb with correct checksum, skip downloading.
20:46:43 INFO : OpenCV on Host : download ‘OpenCV on Host’ success
20:46:44 INFO : OpenCV on Host : Start to install ‘OpenCV on Host’
20:46:44 INFO : OpenCV on Host : [host] [sudo] password for ras:
20:46:44 INFO : OpenCV on Host :
20:46:44 INFO : OpenCV on Host :
20:46:44 DEBUG : OpenCV on Host : running command < cd ‘/home/ras/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c=‘eyJpZCI6Ik5WX09QRU5DVl9I…

…LjE2OC41NS4xIiwicG9ydCI6IjIyIn19’ -i=‘NV_OPENCV_HOST_COMP’ -v=‘3.3.1’ -l=’/home/ras/nvidia/nvidia_sdk/JetPack_4.2_Linux’ -L=’/home/ras/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘2921’ -t=’’ -e=’/home/ras/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb’ >
20:46:44 INFO : OpenCV on Host : [ Disk Avail:182.59 GB ]
20:46:44 INFO : OpenCV on Host : Using GenericInstaller to Install NV_OPENCV_HOST_COMP
20:46:44 INFO : OpenCV on Host : NV_OPENCV_HOST_COMP include 4 package
20:46:44 INFO : OpenCV on Host : [ Package PreInstall Started ]
20:46:44 INFO : OpenCV on Host : current working directory is /home/ras/nvidia/nvidia_sdk/JetPack_4.2_Linux
20:46:44 INFO : OpenCV on Host : exec_command: sudo apt-get install -y libtbb-dev
20:46:44 INFO : OpenCV on Host : Reading package lists…
20:46:45 INFO : VisionWorks on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libvisionworks-repo_1.6.0.500n_amd64.deb with correct checksum, skip downloading.
20:46:45 INFO : OpenCV on Host : Building dependency tree…
20:46:45 INFO : OpenCV on Host : Reading state information…
20:46:45 INFO : VisionWorks on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libvisionworks-sfm-repo_0.90.4_amd64.deb with correct checksum, skip downloading.
20:46:45 INFO : VisionWorks on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/libvisionworks-tracking-repo_0.88.2_amd64.deb with correct checksum, skip downloading.
20:46:46 INFO : VisionWorks on Host : Found file /home/ras/Downloads/nvidia/sdkm_downloads/NVIDIA_VisionWorks_References.zip with correct checksum, skip downloading.
20:46:46 INFO : VisionWorks on Host : download ‘VisionWorks on Host’ success
20:46:46 INFO : OpenCV on Host : libtbb-dev is already the newest version (2017~U7-8).
20:46:46 INFO : OpenCV on Host : 0 upgraded, 0 newly installed, 0 to remove and 124 not upgraded.
20:46:46 INFO : OpenCV on Host : [ Package PreInstall Finished Successfully ]
20:46:46 INFO : OpenCV on Host : [ Package Install Started ]
20:46:46 INFO : OpenCV on Host : deb installer start to install
20:46:46 INFO : OpenCV on Host : exec_command: dpkg -f /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb Package | tr -d ’
20:46:46 INFO : OpenCV on Host : ’
20:46:46 INFO : OpenCV on Host : exec_command: dpkg -f /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb Version | tr -d ’
20:46:46 INFO : OpenCV on Host : ’
20:46:46 INFO : OpenCV on Host : deb file /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb, package name [libopencv], package version [3.3.1-2-gb3f86dcd5]
20:46:46 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 ]
20:46:46 INFO : OpenCV on Host : exec_command: sudo dpkg -i /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb
20:46:46 ERROR : OpenCV on Host : dpkg: considering removing opencv-data in favour of libopencv …
20:46:46 INFO : OpenCV on Host : dpkg: yes, will remove opencv-data in favour of libopencv
20:46:46 INFO : OpenCV on Host : (Reading database … 274039 files and directories currently installed.)
20:46:46 INFO : OpenCV on Host : Preparing to unpack …/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb …
20:46:47 INFO : OpenCV on Host : Unpacking libopencv (3.3.1-2-gb3f86dcd5) …
20:46:47 ERROR : OpenCV on Host : dpkg: error processing archive /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb (–install):
20:46:47 INFO : OpenCV on Host : trying to overwrite ‘/usr/bin/opencv_version’, which is also in package libopencv-dev 3.2.0+dfsg-4ubuntu0.1
20:46:48 ERROR : OpenCV on Host : Errors were encountered while processing:
20:46:48 INFO : OpenCV on Host : /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb
20:46:48 INFO : OpenCV on Host : exit status 1
20:46:48 INFO : OpenCV on Host : exec_command: sudo apt-get check
20:46:49 INFO : OpenCV on Host : Reading package lists…
20:46:50 INFO : OpenCV on Host : Building dependency tree…
20:46:50 INFO : OpenCV on Host : Reading state information…
20:46:50 INFO : OpenCV on Host : exec_command: dpkg-query -W -f=’{db:Status-abbrev} {Version}’ libopencv
20:46:50 INFO : OpenCV on Host : [ Package Install Finished with Error ]
20:46:50 ERROR : OpenCV on Host : NV_OPENCV_HOST_COMP package [{libopencv 3.3.1}] not installed
20:46:50 INFO : OpenCV on Host :
20:46:50 INFO : OpenCV on Host : [ 8.00 KB used. Disk Avail: 182.59 GB ]
20:46:50 INFO : OpenCV on Host : [ NV_OPENCV_HOST_COMP Install took 5s ]
20:46:50 INFO : OpenCV on Host : package [{libopencv 3.3.1}] not installed
20:46:50 ERROR : OpenCV on Host : command terminated with error
20:46:50 ERROR : OpenCV on Host : install ‘OpenCV on Host’ failure, command < cd ‘/home/ras/nvidia/nvidia_sdk/JetPack_4.2_Linux’ ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a=‘install’ -c=‘eyJpZCI6Ik5W…

…IiwicG9ydCI6IjIyIn19’ -i=‘NV_OPENCV_HOST_COMP’ -v=‘3.3.1’ -l=’/home/ras/nvidia/nvidia_sdk/JetPack_4.2_Linux’ -L=’/home/ras/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘2921’ -t=’’ -e=’/home/ras/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gb3f86dcd5_amd64.deb’ > terminated with error
20:46:50 ERROR : Unavailable components detected, please check log
20:46:50 ERROR : VisionWorks on Host : Skipped. Due to its dependencies fail to install: OpenCV on Host,
20:46:51 INFO : All done!

Another note is that I have ROS Melodic Morenia installed on this machine that is why it already has opencv_version, opencv_annotation, etc. files in /usr/bin which the SDKManager is trying to overwrite. I am guessing it is running into some conflict there.

Hi,

Graphics card on the host is not a request.

As you said, the error occurs here:

20:46:47 INFO : OpenCV on Host : trying to overwrite '/usr/bin/opencv_version', which is also in package libopencv-dev 3.2.0+dfsg-4ubuntu0.1
20:46:48 ERROR : OpenCV on Host : Errors were encountered while processing:

You can force the installation with -f option.

sudo dpkg <b>-f</b> -i /home/ras/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gb3f86dcd5_amd64.deb

But this may break your ROS environment.
May I know what kind of application you want to use? OpenCV or VisionWorks?

Thanks.