Cuda Setup Failure on Xavier using SDK Manager

Hello,

I am using Ubuntu 18.04 as a host machine on Jetson Xavier, I had multiple problems flashing the Xavier but solved them and managed to finally flash the jetson successfully after installing python 2.7 on the host machine.

Currently I am trying to install the jetson SDK software on Xavier however, everytime there is an error saying that the local apt repository has some sort of broken packages because of CUDA and that is error it says.

18:40:49 INFO : CUDA Toolkit for L4T : gnupg is already the newest version (2.2.4-1ubuntu1.2).
18:40:49 INFO : CUDA Toolkit for L4T : You might want to run ‘apt --fix-broken install’ to correct these.
18:40:49 INFO : CUDA Toolkit for L4T : The following packages have unmet dependencies:
18:40:49 INFO : CUDA Toolkit for L4T : nvidia-container-csv-cuda : Depends: cuda-toolkit-10-0 (= 10.0.326-1) but it is not going to be installed
18:40:50 INFO : CUDA Toolkit for L4T : E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
18:40:50 INFO : CUDA Toolkit for L4T : Unhandled error when running sudo apt-get install -y gnupg
18:40:50 INFO : CUDA Toolkit for L4T : exit status 1
18:40:50 INFO : CUDA Toolkit for L4T : [ Package Install Finished with Error ]
18:40:50 INFO : CUDA Toolkit for L4T : [ 32.00 KB used. Disk Avail: 834.01 GB ]
18:40:50 INFO : CUDA Toolkit for L4T : [ NV_L4T_CUDA_TARGET_POST_INSTALL_COMP Install took 54s ]
18:40:50 ERROR : CUDA Toolkit for L4T : Run commands failed at step Install: command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh flash@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no flash@192.168.55.1 “~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh” finished with error
18:40:50 INFO : CUDA Toolkit for L4T :
18:40:50 ERROR : CUDA Toolkit for L4T : command terminated with error
18:40:50 ERROR : CUDA Toolkit for L4T : install ‘CUDA Toolkit for L4T’ failure, command < cd ‘/home/mahmoud/nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888’ ; ‘/opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter’ -a=‘install’ -c=‘eyJpZCI6Ik5WX0w0VF9DVURBX1RBUkdFVF9QT1NUX0lOU1RBTExfQ09NUCIsIm5hbWUiOiJDVURBIFRvb2xraXQgZm9yIEw0VCIsImRlc2NyaXB0aW9uIjoiQ1VEQSB0byBiZSBpbnN0YWxsZWQgb24gdGFyZ2V0LiBDVURBIGlzIGEgcGFyYWxsZWwgY29tcHV0aW5nIHBsYXRmb3JtIGFuZCBwcm9ncmFtbWluZyBtb2RlbCBpbnZlbnRlZCBieSBOVklESUEuIEl0IGVuYWJsZXMgZHJhbWF0aWMgaW5jcmVhc2VzIGluIGNvbXB1dGluZyBwZXJmb3JtYW5jZSBieSBoYXJuZXNzaW5nIHRoZSBwb3dlciBvZiB0aGUgZ3JhcGhpY3MgcHJvY2Vzc2luZyB1bml0IChHUFUpLiIsImNvbXBUeXBlIjoidGFyZ2V0IiwiaXNWaXNpYmxlIjp0cnVlLCJsaWNlbnNlSWQiOiJOVl9KRVRQQUNLX0NVREFfRVVMQSIsImlzRGV0ZWN0YWJsZUluc3RhbGwiOmZhbHNlLCJpc0luc3RhbGxQYXRoQ3VzdG9taXphYmxlIjp0cnVlLCJ2ZXJzaW9uIjoiMTAuMCIsIm9wZXJhdGluZ1N5c3RlbXMiOlsidWJ1bnR1MTYwNCIsInVidW50dTE4MDQiXSwiaW5zdGFsbFNpemVNQiI6MCwiZG93bmxvYWRGaWxlcyI6W3sidXJsIjoiL2N1ZGEtcmVwby1sNHQtMTAtMC1sb2NhbC0xMC4wLjE2Nl8xLjAtMV9hcm02NC5kZWIiLCJmaWxlTmFtZSI6ImN1ZGEtcmVwby1sNHQtMTAtMC1sb2NhbC0xMC4wLjE2Nl8xLjAtMV9hcm02NC5kZWIiLCJzaXplIjo4ODcyMTkzN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.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘2082’ -t=‘P2888’ -e=’/home/mahmoud/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb’ > terminated with error
18:40:50 ERROR : Unavailable components detected, please check log
18:40:50 ERROR : cuDNN on Target : cuDNN on Target Skipped. Due to its dependencies fail to install: CUDA Toolkit for L4T,
18:40:50 ERROR : TensorRT on Target : TensorRT on Target Skipped. Due to its dependencies fail to install: CUDA Toolkit for L4T,
18:40:50 ERROR : OpenCV on Target : OpenCV on Target Skipped. Due to its dependencies fail to install: CUDA Toolkit for L4T,
18:40:50 ERROR : VisionWorks on Target : VisionWorks on Target Skipped. Due to its dependencies fail to install: CUDA Toolkit for L4T,
18:40:50 ERROR : Multimedia API : Multimedia API Skipped. Due to its dependencies fail to install: CUDA Toolkit for L4T,

I am currently stuck and I don’t know what solution should I go with because there are a lot dependencies and currently I removed python 2.7 as I thought it was dependency problem between python 2.7 installed to get the sdk manager to flash and 3.6 as default on the system.

Can anyone suggest what I should do? also, it seems the problem has transferred to the Kit as it shows the same error.

There is also a sign of connection failure between the jetson and the host machine.