flashing Jetpack 4.2 with Jetson TX2 Stuck in 50%

Hello everyone.
I’m trying to install Jetpack 4.2 to my Jetson TX 2 but I got errors.
Beforehand, my host machine already has Cuda and cuDnn because it has Nvidia GPU.

When is running the sdk manager in the host I get an error during installation Cuda and Opencv in the host:

CUDA Cross Compile Package on Host : cuda-cross-aarch64-10-0 : Depends: cuda-toolkit-10-0 (>= 10.0.166) but 10.0.130-1 is to be installed
16:35:46 ERROR : CUDA Cross Compile Package on Host : E: Unable to correct problems, you have held broken packages.
16:35:46 INFO : CUDA Cross Compile Package on Host : exit status 100
16:35:46 INFO : CUDA Cross Compile Package on Host : [ Package Install Finished with Error ]
16:35:46 ERROR : CUDA Cross Compile Package on Host : NV_CUDA_HOST_CROSS_COMP apt install failed
16:35:46 INFO : CUDA Cross Compile Package on Host :
16:35:46 INFO : CUDA Cross Compile Package on Host : [ 24.00 KB used. Disk Avail: 99.74 GB ]
16:35:46 INFO : CUDA Cross Compile Package on Host : [ NV_CUDA_HOST_CROSS_COMP Install took 16s ]
16:35:46 INFO : CUDA Cross Compile Package on Host : apt install failed
16:35:46 ERROR : CUDA Cross Compile Package on Host : command terminated with error
16:35:46 ERROR : CUDA Cross Compile Package on Host : install 'CUDA Cross Compile Package on Host' failure, command < cd '/home/diego/nvidia/nvidia_sdk/JetPack_4.2_Linux' ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a='install' -c='eyJpZCI6Ik5WX0NVREFfSE9TVF9DUk9TU19DT01QIiwibmFtZSI6IkNVREEgQ3Jvc3MgQ29tcGlsZSBQYWNrYWdlIG9uIEhvc3QiLCJkZXNjcmlwdGlvbiI6IkNVREEgVG9vbGtpdCBvbiBIb3N0IGZvciBDcm9zcyBDb21waWxpbmcuIE5WSURJQSBDVURBIFRvb2xraXQgcHJvdmlkZXMgYSBjb21wcmVoZW5zaXZlIGRldmVsb3BtZW50IGVudmlyb25tZW50IGZvciBDIGFuZCBDKysgZGV2ZWxvcGVycyBidWlsZGluZyBHUFUt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/diego/Downloads/nvidia/sdkm_downloads/cuda-repo-cross-aarch64-10-0-local-10.0.166_1.0-1_all.deb' > 
terminated with error

Opencv Error:

ERROR : OpenCV on Host : /sbin/ldconfig.real:
16:32:58 ERROR : OpenCV on Host : /usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so.6 is not a symbolic link
16:32:58 ERROR : OpenCV on Host :
16:32:59 INFO : OpenCV on Host : exec_command: dpkg-query -W -f='${db:Status-abbrev} ${Version}' libopencv
16:32:59 INFO : OpenCV on Host : NV_OPENCV_HOST_COMP libopencv_3.3.1-2-gd6a8916_amd64.deb installed successfully.
16:32:59 INFO : OpenCV on Host : [ Package Install Finished Successfully ]
16:32:59 INFO : OpenCV on Host : [ Package Install Started ]
16:32:59 INFO : OpenCV on Host : deb installer start to install
16:32:59 INFO : OpenCV on Host : exec_command: dpkg -f /home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb Package | tr -d '
16:32:59 INFO : OpenCV on Host : '
16:32:59 INFO : OpenCV on Host : exec_command: dpkg -f /home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb Version | tr -d '
16:32:59 INFO : OpenCV on Host : '
16:32:59 INFO : OpenCV on Host : deb file /home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb, package name [libopencv-dev], package version [3.3.1-2-gd6a8916]
16:32:59 INFO : OpenCV on Host : infer package info from file name libopencv-dev_3.3.1-2-gd6a8916_amd64.deb [ name: libopencv-dev, version: 3.3.1-2-gd6a8916 ]
16:32:59 INFO : OpenCV on Host : exec_command: sudo dpkg -i /home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb
16:32:59 ERROR : OpenCV on Host : dpkg: considering removing libopencv-calib3d-dev:amd64 in favour of libopencv-dev ...
16:32:59 ERROR : OpenCV on Host : dpkg: no, cannot proceed with removal of libopencv-calib3d-dev:amd64 (--auto-deconfigure will help):
16:32:59 INFO : OpenCV on Host : libopencv-contrib-dev:amd64 depends on libopencv-calib3d-dev (= 2.4.9.1+dfsg-1.5ubuntu1.1)
16:32:59 INFO : OpenCV on Host : libopencv-calib3d-dev:amd64 is to be removed.
16:32:59 INFO : OpenCV on Host :
16:32:59 ERROR : OpenCV on Host : dpkg: regarding .../libopencv-dev_3.3.1-2-gd6a8916_amd64.deb containing libopencv-dev:
16:32:59 INFO : OpenCV on Host : libopencv-dev conflicts with libopencv-calib3d-dev
16:32:59 INFO : OpenCV on Host : libopencv-calib3d-dev:amd64 (version 2.4.9.1+dfsg-1.5ubuntu1.1) is present and installed.
16:32:59 INFO : OpenCV on Host :
16:32:59 ERROR : OpenCV on Host : dpkg: error processing archive /home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb (--install):
16:32:59 INFO : OpenCV on Host : conflicting packages - not installing libopencv-dev
16:32:59 ERROR : OpenCV on Host : Errors were encountered while processing:
16:32:59 ERROR : OpenCV on Host : /home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb
16:32:59 INFO : OpenCV on Host : exit status 1
16:32:59 INFO : OpenCV on Host : exec_command: sudo apt-get check
16:33:01 INFO : OpenCV on Host : Reading package lists...
16:33:01 INFO : OpenCV on Host : Building dependency tree...
16:33:01 INFO : OpenCV on Host : Reading state information...
16:33:01 INFO : OpenCV on Host : exec_command: dpkg-query -W -f='${db:Status-abbrev} ${Version}' libopencv-dev
16:33:01 INFO : OpenCV on Host : [ Package Install Finished with Error ]
16:33:01 ERROR : OpenCV on Host : NV_OPENCV_HOST_COMP package [{libopencv-dev 3.3.1}] not installed
16:33:01 INFO : OpenCV on Host :
16:33:01 INFO : OpenCV on Host : [ 115.26 MB used. Disk Avail: 101.30 GB ]
16:33:01 INFO : OpenCV on Host : [ NV_OPENCV_HOST_COMP Install took 11s ]
16:33:01 INFO : OpenCV on Host : package [{libopencv-dev 3.3.1}] not installed
16:33:01 ERROR : OpenCV on Host : command terminated with error
16:33:01 ERROR : OpenCV on Host : install 'OpenCV on Host' failure, command < cd '/home/diego/nvidia/nvidia_sdk/JetPack_4.2_Linux' ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a='install' -c='eyJpZCI6Ik5WX09QRU5DVl9IT1NUX0NPTVAiLCJuYW1lIjoiT3BlbkNWIG9uIEhvc3QiLCJkZXNjcmlwdGlvbiI6Ik9wZW5DViBmb3IgSG9zdCIsImNvbXBUeXBlIjoiaG9zdCIsImlzVmlzaWJsZSI6dHJ1ZSwibGljZW5zZUlkIjoiTlZfSkVUUEFDS19WSVNJT05XT1JLU19PUEVOQ1ZfRVVMQSIsImlzRGV0ZWN0YWJsZUluc3RhbGwiOnRydWUsImlzSW5zdGFsbFBhdGhDdXN0b21pemFibGUiOmZhbHNlLCJ2ZXJzaW9uIjoiMy4zLjEiLCJvcGVyYXRpbmdTeXN0ZW1zIjpbInVidW50dTE2MDQiXSwiaW5zdGFsbFNpemVNQiI6MTU4LCJkb3dubG9hZEZpbGVzIjpbeyJ1cmwiOiJ1YnVudHUxNjA0L2xpYm9wZW5jdl8zLjMuMS0yLWdkNmE4OTE2X2FtZDY0LmRlYiIsImZpbGVOYW1lIjoibGlib3BlbmN2XzMuMy4xLTItZ2Q2YTg5MTZfYW1kNjQuZGViIiwic2l6ZSI6Mjc4MDMwNzgsImNoZWNrc3VtIjoiMDgyZTFhOGI5NTUyNTRmZGNlNTY0MTU2NDczZGY3ZjYiLCJjaGVja3N1bVR5cGUiOiJtZDUiLCJpbnN0YWxsUGFyYW1ldGVycyI6eyJpbnN0YWxsVHlwZSI6ImRlYiIsImFkZGl0aW9uYWxQYXJhbWV0ZXJzIjp7InBhY2thZ2VzSW5mbyI6W3sibmFtZSI6ImxpYm9wZW5jdiIsInZlcnNpb24iOiIzLjMuMSJ9XSwicHJlSW5zdGFsbENvbW1hbmRzIjpbeyJ1c2V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.2_Linux' -p='1980' -t='P3310' -e='/home/diego/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb' > terminated with error

After that, the Jetson tx2 turning on and the installation process stuck in 50%.
I’ve tried to do the instruction below:

1. Please check if ARCH arm64 exists in the system arch list. Run sudo dpkg --print-foreign-architectures
2. If Yes. Run sudo apt-get purge “*:arm64”, all arm64 package will be removed.
3. Then sudo dpkg --remove-architecture arm64, remove ARCH arm64 from system arch list.
4. Then “sudo apt-get update” should end with success.

But still I have the same errors.

SDKM_logs_03312019_1354.zip (392 KB)
error.png

Hi alberto18_90,

Have you clarified the cause and resolve the problem?
Any result can be shared? Sorry for the late response.

Thanks

Hi, I have the same issue on Xavier. After 50% of installation (Flashing Jetson gets complete), Xavier restarts and then Jetson SDK components (CUDA, AI, Computer Vision, and Multimedia) have their status as “Pending flash” and nothing happens thereafter. Please help me in installing Jetpack successfully.

Bypassed the issue by disabling the host installation in Step 1 (Development Environment). Did you try doing that alberto18_90 ?

Hello everyone.

Thanks y’all for reply to my post.

I solved it by taking out the GPU from the host.

It was not possible, because after stuck at 50% when I ran the SDK again automatically goes to step 2 and 3. So, I removed my GPU from the host and ran the SDK again and saw that the components are not installed on the host but all the components were installed on the Jetson.

Hello everyone
After installing Jetpack 4.2 I can’t install caffe I don’t know why.
I opened a new post here. So please help me
https://devtalk.nvidia.com/default/topic/1050177/jetson-tx2/caffe-for-jetson-tx2-with-jetpack-4-2/

Bypassed the issue by disabling the host installation in Step 1 (Development Environment). Did you try doing that alberto18_90 ?

This worked for me, just uncheck the tick next to host machine in step1