Cannot install SDK components

Hi there.

I have trouble installing the SDK components on my TX2.
My host is Ubuntu 18.04 and I successfully flashed my TX2 with JetPack 4.2.

But as soon as I try to install the SDK components I get errors and installation fails.

Can somebody help me?

I can ping my Tx2 from my host and I do have Internet connection on my host.

09:56:48 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
09:56:58 INFO : CUDA Toolkit for L4T : Err:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
09:56:58 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
09:57:08 INFO : CUDA Toolkit for L4T : Err:9 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
09:57:08 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
09:57:18 INFO : CUDA Toolkit for L4T : Err:10 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
09:57:18 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
09:57:19 INFO : CUDA Toolkit for L4T : Reading package lists…
09:57:19 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic/InRelease Could not resolve ‘ports.ubuntu.com
09:57:19 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/InRelease Could not resolve ‘ports.ubuntu.com
09:57:19 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/InRelease Could not resolve ‘ports.ubuntu.com
09:57:19 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/InRelease Could not resolve ‘ports.ubuntu.com
09:57:19 INFO : CUDA Toolkit for L4T : W: Some index files failed to download. They have been ignored, or old ones used instead.
09:57:19 INFO : CUDA Toolkit for L4T : begin sudo apt-get install -y gnupg, 5
09:57:19 INFO : CUDA Toolkit for L4T : Reading package lists…
09:57:19 INFO : CUDA Toolkit for L4T : Building dependency tree…
09:57:19 INFO : CUDA Toolkit for L4T : Reading state information…
09:57:19 INFO : CUDA Toolkit for L4T : gnupg is already the newest version (2.2.4-1ubuntu1.2).
09:57:19 INFO : CUDA Toolkit for L4T : The following packages were automatically installed and are no longer required:
09:57:19 INFO : CUDA Toolkit for L4T : apt-clone archdetect-deb busybox-static cryptsetup-bin dpkg-repack
09:57:19 INFO : CUDA Toolkit for L4T : gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common kde-window-manager kinit
09:57:19 INFO : CUDA Toolkit for L4T : kio kpackagetool5 kwayland-data kwin-common kwin-data kwin-x11
09:57:19 INFO : CUDA Toolkit for L4T : libdebian-installer4 libkdecorations2-5v5 libkdecorations2private5v5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5activities5 libkf5attica5 libkf5completion-data libkf5completion5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5declarative-data libkf5declarative5 libkf5doctools5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5idletime5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kcmutils-data
09:57:19 INFO : CUDA Toolkit for L4T : libkf5kcmutils5 libkf5kiocore5 libkf5kiontlm5 libkf5kiowidgets5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5 libkf5package-data
09:57:19 INFO : CUDA Toolkit for L4T : libkf5package5 libkf5plasma5 libkf5quickaddons5 libkf5solid5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5textwidgets-data libkf5textwidgets5 libkf5waylandclient5
09:57:19 INFO : CUDA Toolkit for L4T : libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5
09:57:19 INFO : CUDA Toolkit for L4T : libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
09:57:19 INFO : CUDA Toolkit for L4T : libkwinglutils11 libkwinxrenderutils11 libqgsttools-p1 libqt5designer5
09:57:19 INFO : CUDA Toolkit for L4T : libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins
09:57:19 INFO : CUDA Toolkit for L4T : libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5
09:57:19 INFO : CUDA Toolkit for L4T : libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5
09:57:19 INFO : CUDA Toolkit for L4T : libqt5quickwidgets5 libqt5sensors5 libqt5sql5 libqt5test5 libqt5webchannel5
09:57:19 INFO : CUDA Toolkit for L4T : libqt5webkit5 libxcb-composite0 libxcb-cursor0 libxcb-damage0 os-prober
09:57:19 INFO : CUDA Toolkit for L4T : python3-dbus.mainloop.pyqt5 python3-icu python3-pam python3-pyqt5
09:57:19 INFO : CUDA Toolkit for L4T : python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-sip
09:57:19 INFO : CUDA Toolkit for L4T : qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
09:57:19 INFO : CUDA Toolkit for L4T : qml-module-qtquick2 rdate
09:57:19 INFO : CUDA Toolkit for L4T : Use ‘sudo apt autoremove’ to remove them.
09:57:19 INFO : CUDA Toolkit for L4T : 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
09:57:19 INFO : CUDA Toolkit for L4T : begin sudo apt-get -y --allow-downgrades install cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin, 5
09:57:19 INFO : CUDA Toolkit for L4T : Reading package lists…
09:57:19 INFO : CUDA Toolkit for L4T : Building dependency tree…
09:57:19 INFO : CUDA Toolkit for L4T : Reading state information…
09:57:19 INFO : CUDA Toolkit for L4T : E: Unable to locate package libfreeimage-dev
09:57:19 INFO : CUDA Toolkit for L4T : E: Unable to locate package libopenmpi-dev
09:57:19 INFO : CUDA Toolkit for L4T : E: Unable to locate package openmpi-bin
09:57:19 INFO : CUDA Toolkit for L4T : Unhandled error when running sudo apt-get -y --allow-downgrades install cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin
09:57:19 INFO : CUDA Toolkit for L4T : exit status 1
09:57:19 INFO : CUDA Toolkit for L4T : [ Package Install Finished with Error ]
09:57:19 INFO : CUDA Toolkit for L4T : [ 124.00 KB used. Disk Avail: 49.91 GB ]
09:57:19 INFO : CUDA Toolkit for L4T : [ NV_L4T_CUDA_TARGET_POST_INSTALL_COMP Install took 1m33s ]
09:57:19 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 nvidia@10.42.0.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nvidia@10.42.0.1 “~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh” finished with error
09:57:19 INFO : CUDA Toolkit for L4T :
09:57:19 ERROR : CUDA Toolkit for L4T : command terminated with error
09:59:20 INFO : CUDA Toolkit for L4T : Found file /home/fhoby/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb with correct checksum, skip downloading.
09:59:25 DEBUG : CUDA Toolkit for L4T : running command < cd ‘/home/fhoby/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310’ ; ‘/opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter’ -a=‘install’ -c=‘eyJpZCI6Ik5WX0w0VF9DVURBX1RBUkdFVF9QT1NUX0lOU1RBTExfQ09NUCIsIm5hbWUiOiJDVURBIFRvb2xraXQgZm9yIEw0VCIsImRlc2NyaXB0aW9uIjoiQ1VEQSB0byBiZSBpbnN0YWxsZWQgb24gdGFyZ2V0LiBDVURBIGlzIGEg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l9DVURBX1RBUkdFVF9HUk9VUEBQMzMxMCIsImluc3RhbGxTdGF0dXMiOiJub25lIiwiYWN0aW9uIjoxLCJpbnN0YWxsUGF0aCI6Ii9ob21lL2Zob2J5L252aWRpYS9udmlkaWFfc2RrL0pldFBhY2tfNC4yX0xpbnV4X1AzMzEwIiwiZG93bmxvYWRFcnJvcnMiOltdLCJleGVjIjoiL2hvbWUvZmhvYnkvRG93bmxvYWRzL252aWRpYS9zZGttX2Rvd25sb2Fkcy9jdWRhLXJlcG8tbDR0LTEwLTAtbG9jYWwtMTAuMC4xNjZfMS4wLTFfYXJtNjQuZGViIiwidGFyZ2V0QWNjZXNzSW5mbyI6eyJ1c2VyIjoibnZpZGlhIiwicGFzc3dvcmQiOiJudmlkaWEiLCJob3N0IjoiMTAuNDIuMC4xIiwicG9ydCI6IjIyIn0sImJ1bmRsZVRpdGxlIjoiSmV0UGFja180LjJfTGludXgiLCJpbnN0YWxsUm9vdCI6Ii9ob21lL2Zob2J5L252aWRpYS9udmlkaWFfc2RrIiwiYm9hcmRJRCI6IlAzMzEwIiwiaXNEcnlSdW4iOmZhbHNlfQ==’ -i=‘NV_L4T_CUDA_TARGET_POST_INSTALL_COMP’ -v=‘10.0’ -l=’/home/fhoby/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310’ -L=’/home/fhoby/.nvsdkm/logs/JetPack_4.2_Linux’ -p=‘16785’ -t=‘P3310’ -e=’/home/fhoby/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb’ >
09:59:25 INFO : CUDA Toolkit for L4T : [ Disk Avail:49.91 GB ]
09:59:25 INFO : CUDA Toolkit for L4T : Using GenericInstaller to Install NV_L4T_CUDA_TARGET_POST_INSTALL_COMP
09:59:25 INFO : CUDA Toolkit for L4T : NV_L4T_CUDA_TARGET_POST_INSTALL_COMP include 1 package
09:59:25 INFO : CUDA Toolkit for L4T : [ Package Install Started ]
09:59:25 INFO : CUDA Toolkit for L4T : current working directory is /home/fhoby/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310
09:59:25 INFO : CUDA Toolkit for L4T : exec_command [target]:
09:59:25 INFO : CUDA Toolkit for L4T : **********************
09:59:25 INFO : CUDA Toolkit for L4T : #!/bin/bash
09:59:25 INFO : CUDA Toolkit for L4T : set -e
09:59:25 INFO : CUDA Toolkit for L4T : export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
09:59:25 INFO : CUDA Toolkit for L4T : sudo mkdir -p /opt/nvidia/deb_repos
09:59:25 INFO : CUDA Toolkit for L4T : sudo chmod 777 /opt/nvidia/deb_repos
09:59:25 INFO : CUDA Toolkit for L4T : sudo rm -f /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb
09:59:25 INFO : CUDA Toolkit for L4T : **********************
09:59:25 INFO : CUDA Toolkit for L4T : exec_command: scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh nvidia@10.42.0.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nvidia@10.42.0.1 “~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh”
09:59:25 INFO : CUDA Toolkit for L4T : [target] nvidia@10.42.0.1’s password:
09:59:25 INFO : CUDA Toolkit for L4T :
09:59:25 INFO : CUDA Toolkit for L4T : [target] nvidia@10.42.0.1’s password:
09:59:26 INFO : CUDA Toolkit for L4T :
09:59:26 INFO : CUDA Toolkit for L4T : [target] [sudo] password for nvidia:
09:59:26 INFO : CUDA Toolkit for L4T :
09:59:26 INFO : CUDA Toolkit for L4T : exec_command: scp -F /dev/null -o PubkeyAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 -r /home/fhoby/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb nvidia@10.42.0.1:/opt/nvidia/deb_repos/
09:59:26 WARNING : CUDA Toolkit for L4T : Warning: Permanently added ‘10.42.0.1’ (ECDSA) to the list of known hosts.
09:59:26 INFO : CUDA Toolkit for L4T : [target] nvidia@10.42.0.1’s password:
09:59:26 INFO : CUDA Toolkit for L4T :
09:59:36 INFO : CUDA Toolkit for L4T : exec_command [target]:
09:59:36 INFO : CUDA Toolkit for L4T : **********************
09:59:36 INFO : CUDA Toolkit for L4T : #!/bin/bash
09:59:36 INFO : CUDA Toolkit for L4T : set -e
09:59:36 INFO : CUDA Toolkit for L4T :
09:59:36 INFO : CUDA Toolkit for L4T : function safe_apt_install {
09:59:36 INFO : CUDA Toolkit for L4T : echo "begin $1, $2"
09:59:36 INFO : CUDA Toolkit for L4T : tmp_log=/tmp/jetpack_dpkg_log.txt
09:59:36 INFO : CUDA Toolkit for L4T : sudo rm -f $tmp_log
09:59:36 INFO : CUDA Toolkit for L4T : set +e; $1 2>&1 | tee tmp_log; CMD_STATUS={PIPESTATUS[0]}; set -e
09:59:36 INFO : CUDA Toolkit for L4T : while [ ${CMD_STATUS} -ne 0 ]; do
09:59:36 INFO : CUDA Toolkit for L4T : if grep -q -e “is locked by another process” -e “E: Could not get lock /var/lib” $tmp_log; then
09:59:36 INFO : CUDA Toolkit for L4T : sudo rm -f $tmp_log
09:59:36 INFO : CUDA Toolkit for L4T : set +e; $1 2>&1 | tee tmp_log; CMD_STATUS={PIPESTATUS[0]}; set -e
09:59:36 INFO : CUDA Toolkit for L4T : echo "Waiting 2 seconds for apt to be available"; sleep {2}
09:59:36 INFO : CUDA Toolkit for L4T : else
09:59:36 INFO : CUDA Toolkit for L4T : echo “Unhandled error when running $1”; exit 1
09:59:36 INFO : CUDA Toolkit for L4T : fi
09:59:36 INFO : CUDA Toolkit for L4T : done
09:59:36 INFO : CUDA Toolkit for L4T : }
09:59:36 INFO : CUDA Toolkit for L4T : export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
09:59:36 INFO : CUDA Toolkit for L4T : function safe_apt_install {
09:59:36 INFO : CUDA Toolkit for L4T : echo "begin $1, $2"
09:59:36 INFO : CUDA Toolkit for L4T : tmp_log=/tmp/jetpack_dpkg_log.txt
09:59:36 INFO : CUDA Toolkit for L4T : sudo rm -f $tmp_log
09:59:36 INFO : CUDA Toolkit for L4T : set +e; $1 2>&1 | tee tmp_log; CMD_STATUS={PIPESTATUS[0]}; set -e
09:59:36 INFO : CUDA Toolkit for L4T : while [ ${CMD_STATUS} -ne 0 ]; do
09:59:36 INFO : CUDA Toolkit for L4T : if grep -q -e “is locked by another process” -e “E: Could not get lock /var/lib” $tmp_log; then
09:59:36 INFO : CUDA Toolkit for L4T : sudo rm -f $tmp_log
09:59:36 INFO : CUDA Toolkit for L4T : set +e; $1 2>&1 | tee tmp_log; CMD_STATUS={PIPESTATUS[0]}; set -e
09:59:36 INFO : CUDA Toolkit for L4T : echo "Waiting 2 seconds for apt to be available"; sleep {2}
09:59:36 INFO : CUDA Toolkit for L4T : else
09:59:36 INFO : CUDA Toolkit for L4T : echo “Unhandled error when running $1”; exit 1
09:59:36 INFO : CUDA Toolkit for L4T : fi
09:59:36 INFO : CUDA Toolkit for L4T : done
09:59:36 INFO : CUDA Toolkit for L4T : }
09:59:36 INFO : CUDA Toolkit for L4T : safe_apt_install “sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb” 5
09:59:36 INFO : CUDA Toolkit for L4T : sleep 5
09:59:36 INFO : CUDA Toolkit for L4T : safe_apt_install "sudo apt-key add /var/cuda-repo-
-local
/
.pub" 5
09:59:36 INFO : CUDA Toolkit for L4T : sleep 2
09:59:36 INFO : CUDA Toolkit for L4T : safe_apt_install “sudo apt-get -y update” 5
09:59:36 INFO : CUDA Toolkit for L4T : safe_apt_install “sudo apt-get install -y gnupg” 5
09:59:36 INFO : CUDA Toolkit for L4T : safe_apt_install “sudo apt-get -y --allow-downgrades install cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin” 5
09:59:36 INFO : CUDA Toolkit for L4T : grep -q 'export PATH=.
/usr/local/cuda-10.0/bin’ ~/.bashrc || echo ‘export PATH=/usr/local/cuda-10.0/bin:$PATH’>>~/.bashrc
09:59:36 INFO : CUDA Toolkit for L4T : grep -q ‘export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64’ ~/.bashrc || echo ‘export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH’ >> ~/.bashrc
09:59:36 INFO : CUDA Toolkit for L4T : sudo rm -f /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb
09:59:36 INFO : CUDA Toolkit for L4T : **********************
09:59:36 INFO : CUDA Toolkit for L4T : exec_command: scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh nvidia@10.42.0.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nvidia@10.42.0.1 “~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh”
09:59:36 INFO : CUDA Toolkit for L4T : [target] nvidia@10.42.0.1’s password:
09:59:36 INFO : CUDA Toolkit for L4T :
09:59:37 INFO : CUDA Toolkit for L4T : [target] nvidia@10.42.0.1’s password:
09:59:37 INFO : CUDA Toolkit for L4T :
09:59:37 INFO : CUDA Toolkit for L4T : begin sudo dpkg -i /opt/nvidia/deb_repos/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb, 5
09:59:37 INFO : CUDA Toolkit for L4T : [target] [sudo] password for nvidia:
09:59:37 INFO : CUDA Toolkit for L4T :
09:59:37 INFO : CUDA Toolkit for L4T : (Reading database … 117271 files and directories currently installed.)
09:59:37 INFO : CUDA Toolkit for L4T : Preparing to unpack …/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb …
09:59:37 INFO : CUDA Toolkit for L4T : Unpacking cuda-repo-l4t-10-0-local-10.0.166 (1.0-1) over (1.0-1) …
09:59:48 INFO : CUDA Toolkit for L4T : Setting up cuda-repo-l4t-10-0-local-10.0.166 (1.0-1) …
09:59:53 INFO : CUDA Toolkit for L4T : begin sudo apt-key add /var/cuda-repo--local
/*.pub, 5
09:59:53 INFO : CUDA Toolkit for L4T : Warning: apt-key output should not be parsed (stdout is not a terminal)
09:59:53 INFO : CUDA Toolkit for L4T : OK
09:59:55 INFO : CUDA Toolkit for L4T : *begin sudo apt-get -y update, 5
09:59:55 INFO : CUDA Toolkit for L4T : Get:1 file:/var/cuda-repo-10-0-local-10.0.166 InRelease
09:59:55 INFO : CUDA Toolkit for L4T : Ign:1 file:/var/cuda-repo-10-0-local-10.0.166 InRelease
09:59:55 INFO : CUDA Toolkit for L4T : Get:2 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
09:59:55 INFO : CUDA Toolkit for L4T : Ign:2 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
09:59:55 INFO : CUDA Toolkit for L4T : Get:3 file:/var/cuda-repo-10-0-local-10.0.166 Release [574 B]
09:59:55 INFO : CUDA Toolkit for L4T : Get:4 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
09:59:55 INFO : CUDA Toolkit for L4T : Get:3 file:/var/cuda-repo-10-0-local-10.0.166 Release [574 B]
09:59:55 INFO : CUDA Toolkit for L4T : Get:4 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
10:00:25 INFO : CUDA Toolkit for L4T : Err:7 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
10:00:25 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
10:00:35 INFO : CUDA Toolkit for L4T : Err:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
10:00:35 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
10:00:45 INFO : CUDA Toolkit for L4T : Err:9 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
10:00:45 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
10:00:55 INFO : CUDA Toolkit for L4T : Err:10 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
10:00:55 INFO : CUDA Toolkit for L4T : Could not resolve ‘ports.ubuntu.com
10:00:56 INFO : CUDA Toolkit for L4T : Reading package lists…
10:00:56 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic/InRelease Could not resolve ‘ports.ubuntu.com
10:00:56 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/InRelease Could not resolve ‘ports.ubuntu.com
10:00:56 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/InRelease Could not resolve ‘ports.ubuntu.com
10:00:56 INFO : CUDA Toolkit for L4T : W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/InRelease Could not resolve ‘ports.ubuntu.com
10:00:56 INFO : CUDA Toolkit for L4T : W: Some index files failed to download. They have been ignored, or old ones used instead.
10:00:56 INFO : CUDA Toolkit for L4T : *begin sudo apt-get install -y gnupg, 5
10:00:56 INFO : CUDA Toolkit for L4T : Reading package lists…
10:00:56 INFO : CUDA Toolkit for L4T : Building dependency tree…
10:00:56 INFO : CUDA Toolkit for L4T : Reading state information…
10:00:56 INFO : CUDA Toolkit for L4T : gnupg is already the newest version (2.2.4-1ubuntu1.2).
10:00:56 INFO : CUDA Toolkit for L4T : The following packages were automatically installed and are no longer required:
10:00:56 INFO : CUDA Toolkit for L4T : apt-clone archdetect-deb busybox-static cryptsetup-bin dpkg-repack
10:00:56 INFO : CUDA Toolkit for L4T : gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common kde-window-manager kinit
10:00:56 INFO : CUDA Toolkit for L4T : kio kpackagetool5 kwayland-data kwin-common kwin-data kwin-x11
10:00:56 INFO : CUDA Toolkit for L4T : libdebian-installer4 libkdecorations2-5v5 libkdecorations2private5v5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5activities5 libkf5attica5 libkf5completion-data libkf5completion5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5declarative-data libkf5declarative5 libkf5doctools5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5idletime5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kcmutils-data
10:00:56 INFO : CUDA Toolkit for L4T : libkf5kcmutils5 libkf5kiocore5 libkf5kiontlm5 libkf5kiowidgets5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5 libkf5package-data
10:00:56 INFO : CUDA Toolkit for L4T : libkf5package5 libkf5plasma5 libkf5quickaddons5 libkf5solid5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5textwidgets-data libkf5textwidgets5 libkf5waylandclient5
10:00:56 INFO : CUDA Toolkit for L4T : libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5
10:00:56 INFO : CUDA Toolkit for L4T : libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
10:00:56 INFO : CUDA Toolkit for L4T : libkwinglutils11 libkwinxrenderutils11 libqgsttools-p1 libqt5designer5
10:00:56 INFO : CUDA Toolkit for L4T : libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins
10:00:56 INFO : CUDA Toolkit for L4T : libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5
10:00:56 INFO : CUDA Toolkit for L4T : libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5
10:00:56 INFO : CUDA Toolkit for L4T : libqt5quickwidgets5 libqt5sensors5 libqt5sql5 libqt5test5 libqt5webchannel5
10:00:56 INFO : CUDA Toolkit for L4T : libqt5webkit5 libxcb-composite0 libxcb-cursor0 libxcb-damage0 os-prober
10:00:56 INFO : CUDA Toolkit for L4T : python3-dbus.mainloop.pyqt5 python3-icu python3-pam python3-pyqt5
10:00:56 INFO : CUDA Toolkit for L4T : python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-sip
10:00:56 INFO : CUDA Toolkit for L4T : qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
10:00:56 INFO : CUDA Toolkit for L4T : qml-module-qtquick2 rdate
10:00:56 INFO : CUDA Toolkit for L4T : Use ‘sudo apt autoremove’ to remove them.
10:00:57 INFO : CUDA Toolkit for L4T : 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
10:00:57 INFO : CUDA Toolkit for L4T : *begin sudo apt-get -y --allow-downgrades install cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin, 5
10:00:57 INFO : CUDA Toolkit for L4T : Reading package lists…
10:00:57 INFO : CUDA Toolkit for L4T : Building dependency tree…
10:00:57 INFO : CUDA Toolkit for L4T : Reading state information…
10:00:57 INFO : CUDA Toolkit for L4T : E: Unable to locate package libfreeimage-dev
10:00:57 INFO : CUDA Toolkit for L4T : E: Unable to locate package libopenmpi-dev
10:00:57 INFO : CUDA Toolkit for L4T : E: Unable to locate package openmpi-bin
10:00:57 INFO : CUDA Toolkit for L4T : Unhandled error when running sudo apt-get -y --allow-downgrades install cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin
10:00:57 INFO : CUDA Toolkit for L4T : exit status 1
10:00:57 INFO : CUDA Toolkit for L4T : [ Package Install Finished with Error ]
10:00:57 INFO : CUDA Toolkit for L4T : [ 264.00 KB used. Disk Avail: 49.91 GB ]
10:00:57 INFO : CUDA Toolkit for L4T : [ NV_L4T_CUDA_TARGET_POST_INSTALL_COMP Install took 1m32s ]
10:00:57 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 nvidia@10.42.0.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nvidia@10.42.0.1 “~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh && rm -f ~/tmp_NV_L4T_CUDA_TARGET_POST_INSTALL_COMP.sh” finished with error
10:00:57 INFO : CUDA Toolkit for L4T :
10:00:57 ERROR : CUDA Toolkit for L4T : command terminated with error

Hi foby,

Are you connected ethernet on your TX2?
Also, please using eth0 ip address instead of usb device ip (192.168.55.1), try install SDK components again.

hi carolyuu

the ip adress of my tx2 is 10.42.0.1.
when installing the sdk components i enter this IP and the username/pw from tx2.
there is a ssh connection but the sdk components won’t install.

i do not have internet access on tx2.

ifconfig on tx2 gives me eth0 is 10.42.0.1

but on my host ifconfig does not show any eth0 connection…

FYI, your host PC must be able to resolve ports.ubuntu.com and have connectivity to the internet. The PC downloads various files and then picks what to install to the Jetson.

yeah i know…but i do have connectivity on my host! that’s why i do not understand why it can’t resolve ports.ubuntu.com and therefore can’t install the sdk components.

i can even ping ports.ubuntu.com and it works…

There is likely some simple setup issue, but “Could not resolve ‘ports.ubuntu.com’” is definitely a host side issue. Maybe it is a router or proxy issue. Specifically, “resolve” implies DNS lookup from the host side. If you can “ping ports.ubuntu.com”, then this implies resolving was not a problem, and is contradictory to the “Could not resolve” comment.

What do you see (from the host side) from “ifconfig” and “route” commands? Do you see success from the command “host ports.ubuntu.com”?

Hi foby,I meet the same question to you,have you solved?

Thanks for your help.
I see the following:

host ports.ubuntu.com
ports.ubuntu.com has address 91.189.88.150
ports.ubuntu.com has IPv6 address 2001:67c:1360:8001::22

ifconfig
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 152.96.24.245 netmask 255.255.255.0 broadcast 152.96.24.255
inet6 fe80::bb06:9bf3:5b9f:7ccb prefixlen 64 scopeid 0x20
ether 90:1b:0e:a4:0a:91 txqueuelen 1000 (Ethernet)
RX packets 1614111 bytes 2315579877 (2.3 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 120575 bytes 8261276 (8.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xf7200000-f7220000

enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.42.0.186 netmask 255.255.255.0 broadcast 10.42.0.255
inet6 fe80::781b:5389:c24d:9137 prefixlen 64 scopeid 0x20
ether 68:05:ca:25:08:7c txqueuelen 1000 (Ethernet)
RX packets 104 bytes 11351 (11.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 919 bytes 86898 (86.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xf71c0000-f71e0000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 824 bytes 89560 (89.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 824 bytes 89560 (89.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default router-24.hsr.c 0.0.0.0 UG 100 0 0 enp0s31f6

Unfortunately not yet…

And:
ping 10.42.0.1 (IP address of TX2)

PING 10.42.0.1 (10.42.0.1) 56(84) bytes of data.
64 bytes from 10.42.0.1: icmp_seq=1 ttl=64 time=0.642 ms
64 bytes from 10.42.0.1: icmp_seq=2 ttl=64 time=0.633 ms
64 bytes from 10.42.0.1: icmp_seq=3 ttl=64 time=0.955 ms

Connection seems there…

Hi foby,

Please zip and upload the ~/.nvsdkm directory for more investigation. Thanks!

I am sorry, I cannot find this directory. Where is it?

Hi foby,

The logs are save in ~/.nvsdkm (your host machine) , please zip this folder and upload.
Thanks!

Thanks.
SDKM_logs_JetPack_4.2_Linux_for_Jetson_TX2_2019-10-23_10-56-21.zip (845 KB)

Hi foby,

Seems that your TX2 cannot connect to the Internet. To solve the problem, please do either of the following:

  • Connect your TX2 device with an ethernet into a network that can access the Internet.
  • Connect your TX2 device and host with a usb cable, and make sure the host machine has Internet access. Then run SDK Manager to install target components. SDK Manager will help you configure your host machine and Jetson device so that the Jetson device can access the Internet via host.

Hi Edward,

Is it necessary that the TX2 is connected to the internet?
I am using university network and its a bit difficult to get in with a new device. But if there is no other option I will talk to the IT-people.

Hi foby,

We need run “apt-get update” or “apt-get install” commands to update repository or install a few packages. So yes, internet access is required.

Thanks so much, it worked after I connected the TX2 to the internet.