Flashing Failed device could not be found

I am setting up the TX2. I was in step 3 of the SDK Manager. I put the TX2 into recovery mode. I was able to see ‘NVidia Corp.’ when using the ‘lsusb’ command. However, I get the error in this title.
What is wrong?
Below is the text from the terminal.
Thanks in advance.

12:59:52 INFO : null
13:01:09 INFO : CUDA on Host : download 'CUDA on Host' success
13:01:09 INFO : Drivers for Jetson TX2 & TX2i : download 'Drivers for Jetson TX2 & TX2i' success
13:01:09 INFO : OpenCV on Host : download 'OpenCV on Host' success
13:01:09 INFO : File System and OS : download 'File System and OS' success
13:01:09 INFO : NVIDIA Nsight Graphics : download 'NVIDIA Nsight Graphics' success
13:01:09 INFO : NVIDIA Nsight Systems : download 'NVIDIA Nsight Systems' success
13:01:09 INFO : VisionWorks on Host : download 'VisionWorks on Host' success
13:01:09 INFO : DevTools Documentation : download 'DevTools Documentation' success
13:01:09 INFO : CUDA Cross Compile Package on Host : download 'CUDA Cross Compile Package on Host' success
13:01:09 INFO : install 'CUDA on Host' success
13:01:10 INFO : install 'Drivers for Jetson TX2 & TX2i' success
13:01:10 INFO : install 'OpenCV on Host' success
13:01:10 INFO : install 'File System and OS' success
13:01:10 INFO : install 'NVIDIA Nsight Graphics' success
13:01:10 INFO : install 'NVIDIA Nsight Systems' success
13:01:10 INFO : install 'VisionWorks on Host' success
13:01:10 INFO : install 'DevTools Documentation' success
13:01:10 INFO : install 'CUDA Cross Compile Package on Host' success
13:01:10 INFO : OpenCV on Target : Found file /home/rishabh/Downloads/libopencv_3.3.1-2-g31ccdfe11_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : OpenCV on Target : Found file /home/rishabh/Downloads/libopencv-dev_3.3.1-2-g31ccdfe11_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : OpenCV on Target : Found file /home/rishabh/Downloads/libopencv-python_3.3.1-2-g31ccdfe11_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : OpenCV on Target : Found file /home/rishabh/Downloads/libopencv-samples_3.3.1-2-g31ccdfe11_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : cuDNN on Target : Found file /home/rishabh/Downloads/libcudnn7-doc_7.3.1.28-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/libnvinfer5_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/libnvinfer-dev_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/tensorrt_5.0.6.3-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/python-libnvinfer_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : cuDNN on Target : Found file /home/rishabh/Downloads/libcudnn7_7.3.1.28-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : cuDNN on Target : Found file /home/rishabh/Downloads/libcudnn7-dev_7.3.1.28-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/python-libnvinfer-dev_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/python3-libnvinfer_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/python3-libnvinfer-dev_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/graphsurgeon-tf_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/uff-converter-tf_5.0.6-1+cuda10.0_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : VisionWorks on Target : Found file /home/rishabh/Downloads/libvisionworks-sfm-repo_0.90.4_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : VisionWorks on Target : Found file /home/rishabh/Downloads/libvisionworks-tracking-repo_0.88.2_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : VisionWorks on Target : Found file /home/rishabh/Downloads/libvisionworks-repo_1.6.0.500n_arm64.deb with correct checksum, skip downloading.
13:01:10 INFO : Multimedia API : Found file /home/rishabh/Downloads/Tegra_Multimedia_API_R32.1.0_aarch64.tbz2 with correct checksum, skip downloading.
13:01:11 INFO : TensorRT on Target : Found file /home/rishabh/Downloads/libnvinfer-samples_5.0.6-1+cuda10.0_all.deb with correct checksum, skip downloading.
13:01:11 INFO : CUDA Toolkit for L4T : Found file /home/rishabh/Downloads/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb with correct checksum, skip downloading.
13:01:11 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -ne 1 ] >
13:01:11 INFO : command finished successfully
13:01:11 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -gt 1 ] >
13:01:11 ERROR : command terminated with error
13:01:11 ERROR : Could not detect Nvidia Jetson device connected to USB. *To validate if the device is in connected correctly, run 'lsusb' command on your host, and look for "NVidia Corp".
13:01:11 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -ne 1 ] >
13:01:11 INFO : command finished successfully
13:01:11 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -gt 1 ] >
13:01:12 ERROR : command terminated with error
13:01:12 ERROR : Could not detect Nvidia Jetson device connected to USB. *To validate if the device is in connected correctly, run 'lsusb' command on your host, and look for "NVidia Corp".
13:01:30 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -ne 1 ] >
13:01:30 INFO : command finished successfully
13:01:30 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -gt 1 ] >
13:01:31 ERROR : command terminated with error
13:01:31 ERROR : Could not detect Nvidia Jetson device connected to USB. *To validate if the device is in connected correctly, run 'lsusb' command on your host, and look for "NVidia Corp".
13:02:12 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -ne 1 ] >
13:02:13 ERROR : command terminated with error
13:02:13 INFO : 0955:7c18 detected.
13:02:13 DEBUG : running command < ip addr | grep 192.168.55.100/24 >
13:02:13 ERROR : command terminated with error
13:02:13 ERROR : Failed to use 'Automatic setup'. Please try again or change to 'Manual setup' to continue.
13:02:32 DEBUG : running command < [ `lsusb | grep -c "NVidia Corp"` -ne 1 ] >
13:02:32 ERROR : command terminated with error
13:02:32 INFO : 0955:7c18 detected.
13:02:32 DEBUG : running command < lsusb | grep 0955:7020 >
13:02:32 ERROR : command terminated with error
13:02:32 INFO : Jetson device is in recovery mode.
13:02:32 DEBUG : running command < lsusb | grep 0955:7c18 >
13:02:32 INFO : Bus 003 Device 007: ID e[01;31me[K0955:7c18e[me[K NVidia Corp.
13:02:32 INFO : command finished successfully
13:02:32 INFO : Verified, 0955:7c18 detected in recovery mode.
13:02:32 INFO : Start to install 'Device Mode Host Setup in Flash'
13:02:32 DEBUG : Device Mode Host Setup in Flash : running command < cd '/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310' ; '/opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter' -a='install' -c='eyJpZCI6Ik5WX0w0VF9ERVZJQ0VfTU9ERV9TRVRVUF9DT01QX0lOX0ZMQVNIIiwibmFtZSI6IkRldmljZSBNb2RlIEhvc3QgU2V0dXAgaW4gRmxhc2giLCJkZXNjcmlwdGlvbiI6IlNldHVwcyBmb3IgZGV2aWNlIG1vZGUgaG9zdCBwYXJ0IGluIEw0VCAgYmVmb3JlIGZsYXNoaW5nLCB0byBsZXQgdGhlIHRhcmdldCBjYW4gYWNjZXNzIGhvc3QgaW50ZXJuZXQuIiwiY29tcFR5cGUiOiJmbGFzaCIsImlzVmlzaWJsZSI6ZmFsc2UsImlzRGV0ZWN0YWJsZUluc3RhbGwiOmZhbHNlLCJpc0luc3RhbGxQYXRoQ3VzdG9taXphYmxlIjp0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luZm8iOnsidXNlciI6Im52aWRpYSIsInBhc3N3b3JkIjoibnZpZGlhIiwiaG9zdCI6IjE5Mi4xNjguNTUuMSIsInBvcnQiOiIyMiJ9LCJpc0RyeVJ1biI6ZmFsc2V9' -i='NV_L4T_DEVICE_MODE_SETUP_COMP_IN_FLASH' -v='1.0' -l='/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310' -L='/home/rishabh/.nvsdkm/logs/JetPack_4.2_Linux' -p='9343' -t='P3310' -e='undefined' >
13:02:32 INFO : Device Mode Host Setup in Flash : [ Disk Avail:350.01 GB ]
13:02:32 INFO : Device Mode Host Setup in Flash : Using GenericInstaller to Install NV_L4T_DEVICE_MODE_SETUP_COMP_IN_FLASH
13:02:32 INFO : Device Mode Host Setup in Flash : change working directory to /home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310
13:02:32 INFO : Device Mode Host Setup in Flash : [ Component Install Started ]
13:02:32 INFO : Device Mode Host Setup in Flash : current working directory is /home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310
13:02:32 INFO : Device Mode Host Setup in Flash : exec_command [host]:
13:02:33 INFO : Device Mode Host Setup in Flash : **********************
13:02:33 INFO : Device Mode Host Setup in Flash : #!/bin/bash
13:02:33 INFO : Device Mode Host Setup in Flash : set -e
13:02:33 INFO : Device Mode Host Setup in Flash :
13:02:33 INFO : Device Mode Host Setup in Flash : function safe_apt_install {
13:02:33 INFO : Device Mode Host Setup in Flash : echo "*begin $1, $2"
13:02:33 INFO : Device Mode Host Setup in Flash : tmp_log=/tmp/jetpack_dpkg_log.txt
13:02:33 INFO : Device Mode Host Setup in Flash : sudo rm -f $tmp_log
13:02:33 INFO : Device Mode Host Setup in Flash : set +e; $1 2>&1 | tee $tmp_log; CMD_STATUS=${PIPESTATUS[0]}; set -e
13:02:33 INFO : Device Mode Host Setup in Flash : while [ ${CMD_STATUS} -ne 0 ]; do
13:02:33 INFO : Device Mode Host Setup in Flash : if grep -q -e "is locked by another process" -e "E: Could not get lock /var/lib" $tmp_log; then
13:02:33 INFO : Device Mode Host Setup in Flash : sudo rm -f $tmp_log
13:02:33 INFO : Device Mode Host Setup in Flash : set +e; $1 2>&1 | tee $tmp_log; CMD_STATUS=${PIPESTATUS[0]}; set -e
13:02:33 INFO : Device Mode Host Setup in Flash : echo "Waiting $2 seconds for apt to be available"; sleep ${2}
13:02:33 INFO : Device Mode Host Setup in Flash : else
13:02:33 INFO : Device Mode Host Setup in Flash : echo "Unhandled error when running $1"; exit 1
13:02:33 INFO : Device Mode Host Setup in Flash : fi
13:02:33 INFO : Device Mode Host Setup in Flash : done
13:02:33 INFO : Device Mode Host Setup in Flash : }
13:02:33 INFO : Device Mode Host Setup in Flash : set +e
13:02:33 INFO : Device Mode Host Setup in Flash : eth_port_name=$(ip route show default | awk '/default via/ {print $5; exit}')
13:02:33 INFO : Device Mode Host Setup in Flash : if [[ $eth_port_name == '' ]]; then
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'Can not found route default $eth_port_name, device mode setup failed!'
13:02:33 INFO : Device Mode Host Setup in Flash : exit 0
13:02:33 INFO : Device Mode Host Setup in Flash : fi
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'Found route default' $eth_port_name', setting up device mode'
13:02:33 INFO : Device Mode Host Setup in Flash : setup_t='192.168.55.0/24'
13:02:33 INFO : Device Mode Host Setup in Flash : sudo iptables -t nat -A POSTROUTING -s $setup_t -o $eth_port_name -j MASQUERADE
13:02:33 INFO : Device Mode Host Setup in Flash : sudo iptables -A FORWARD -s $setup_t -o $eth_port_name -j ACCEPT
13:02:33 INFO : Device Mode Host Setup in Flash : sudo iptables -A FORWARD -d $setup_t -m state --state ESTABLISHED,RELATED -i $eth_port_name -j ACCEPT
13:02:33 INFO : Device Mode Host Setup in Flash : sudo sysctl -w net.ipv4.ip_forward=1
13:02:33 INFO : Device Mode Host Setup in Flash : check_google_dns=$(dig @8.8.8.8 nvidia.com || true)
13:02:33 INFO : Device Mode Host Setup in Flash : if [[ $check_google_dns == *'Got answer'* ]]; then
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'Device mode on host successfuly set with DNS 8.8.8.8!'
13:02:33 INFO : Device Mode Host Setup in Flash : exit 0
13:02:33 INFO : Device Mode Host Setup in Flash : else
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'Default google DNS is not working, trying to find a valid server in local host settings!'
13:02:33 INFO : Device Mode Host Setup in Flash : dns_list=$(nmcli -t device show $eth_port_name | grep 'DNS' | grep -o '[^:]*$')
13:02:33 INFO : Device Mode Host Setup in Flash : for dns in $dns_list; do
13:02:33 INFO : Device Mode Host Setup in Flash : check_dns=$(dig @$dns nvidia.com || true)
13:02:33 INFO : Device Mode Host Setup in Flash : if [[ $check_dns == *'Got answer'* ]]; then
13:02:33 INFO : Device Mode Host Setup in Flash : sudo iptables -t nat -A PREROUTING -p tcp -d 8.8.8.8 --dport 53 -j DNAT --to-destination $dns
13:02:33 INFO : Device Mode Host Setup in Flash : sudo iptables -t nat -A PREROUTING -p udp -d 8.8.8.8 --dport 53 -j DNAT --to-destination $dns
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'Device mode on host successfuly set with DNS' $dns'!'
13:02:33 INFO : Device Mode Host Setup in Flash : exit 0
13:02:33 INFO : Device Mode Host Setup in Flash : fi
13:02:33 INFO : Device Mode Host Setup in Flash : done
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'Can not found a valid DNS server, device mode setup failed!'
13:02:33 INFO : Device Mode Host Setup in Flash : echo 'If needed to use device mode, please change the target default dns to a valid server by following the steps in release note.'
13:02:33 INFO : Device Mode Host Setup in Flash : exit 0
13:02:33 INFO : Device Mode Host Setup in Flash : fi
13:02:33 INFO : Device Mode Host Setup in Flash : **********************
13:02:33 INFO : Device Mode Host Setup in Flash : exec_command: /tmp/tmp_NV_L4T_DEVICE_MODE_SETUP_COMP_IN_FLASH.sh
13:02:33 INFO : Device Mode Host Setup in Flash : Found route default enp0s25, setting up device mode
13:02:33 INFO : Device Mode Host Setup in Flash : [host] [sudo] password for rishabh:
13:02:33 INFO : Device Mode Host Setup in Flash :
13:02:33 INFO : Device Mode Host Setup in Flash : net.ipv4.ip_forward = 1
13:02:33 INFO : Device Mode Host Setup in Flash : Device mode on host successfuly set with DNS 8.8.8.8!
13:02:33 INFO : Device Mode Host Setup in Flash : [ Component Install Finished Successfully ]
13:02:33 INFO : Device Mode Host Setup in Flash : [ 8.00 KB used. Disk Avail: 350.01 GB ]
13:02:33 INFO : Device Mode Host Setup in Flash : [ NV_L4T_DEVICE_MODE_SETUP_COMP_IN_FLASH Install took 0s ]
13:02:33 INFO : Device Mode Host Setup in Flash : command finished successfully
13:02:33 INFO : install 'Device Mode Host Setup in Flash' success
13:02:33 INFO : Start to install 'Flash Jetson TX2'
13:02:33 DEBUG : Flash Jetson TX2 : running command < cd '/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310' ; '/opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter' -a='install' -c='eyJpZCI6Ik5WX0w0VF9GTEFTSF9UWDJfV0lUSF9PU19JTUFHRV9DT01QIiwibmFtZSI6IkZsYXNoIEpldHNvbiBUWDIiLCJkZXNjcmlwdGlvbiI6IkZsYXNoIEpldHNvbiBUWDIiLCJjb21wVHlwZSI6ImZsYXNoIiwiaXNWaXNpYmxlIjp0cnVlLCJsaWNlbnNlSWQiOiJOVl9KRVRQQUNLX09TX0VVTEEiLCJpc0RldGVjdGFibGVJbnN0YWxsIjpmYWxzZSwiaXNJbnN0YWxsUGF0aEN1c3RvbWl6YWJsZSI6dHJ1ZSwidGltZW91dFNlY29uZHMiOjM2MDAsInZlcnNpb24iOiIzMi4xIiwib3BlcmF0aW5nU3lzdGVtcyI6WyJ1YnVudHUxNjA0IiwidWJ1bnR1MTgwNCJdLCJpbnN0YWxsU2l6ZU1CIjozMDA1MywiZG93bmxvYWRGaWxlcyI6W10sImluc3RhbGxQYXJhbWV0ZXJzIjp7Imluc3RhbGxEaXIiO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19JTUFHRV9DT01QQFAzMzEwIiwicGFyZW50SUQiOiJOVl9EUklWRV9GTEFTSF9UQVJHRVRfR1JPVVAiLCJfcGFyZW50SUQiOiJOVl9EUklWRV9GTEFTSF9UQVJHRVRfR1JPVVBAUDMzMTAiLCJpbnN0YWxsU3RhdHVzIjoibm9uZSIsImFjdGlvbiI6MSwiZG93bmxvYWRFcnJvcnMiOltdLCJidW5kbGVUaXRsZSI6IkpldFBhY2tfNC4yX0xpbnV4IiwiaW5zdGFsbFBhdGgiOiIvaG9tZS9yaXNoYWJoL252aWRpYS9udmlkaWFfc2RrL0pldFBhY2tfNC4yX0xpbnV4X1AzMzEwIiwiaW5zdGFsbFJvb3QiOiIvaG9tZS9yaXNoYWJoL252aWRpYS9udmlkaWFfc2RrIiwiYm9hcmRJRCI6IlAzMzEwIiwidGFyZ2V0QWNjZXNzSW5mbyI6eyJ1c2VyIjoibnZpZGlhIiwicGFzc3dvcmQiOiJudmlkaWEiLCJob3N0IjoiMTkyLjE2OC41NS4xIiwicG9ydCI6IjIyIn0sImlzRHJ5UnVuIjpmYWxzZX0=' -i='NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP' -v='32.1' -l='/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310' -L='/home/rishabh/.nvsdkm/logs/JetPack_4.2_Linux' -p='9343' -t='P3310' -e='undefined' >
13:02:33 INFO : Flash Jetson TX2 : [ Disk Avail:350.01 GB ]
13:02:33 INFO : Flash Jetson TX2 : Using GenericInstaller to Install NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP
13:02:33 INFO : Flash Jetson TX2 : change working directory to /home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310/Linux_for_Tegra
13:02:33 INFO : Flash Jetson TX2 : [ Component Install Started ]
13:02:33 INFO : Flash Jetson TX2 : current working directory is /home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310/Linux_for_Tegra
13:02:33 INFO : Flash Jetson TX2 : exec_command [target]:
13:02:33 INFO : Flash Jetson TX2 : **********************
13:02:33 INFO : Flash Jetson TX2 : #!/bin/bash
13:02:33 INFO : Flash Jetson TX2 : set -e
13:02:33 INFO : Flash Jetson TX2 :
13:02:33 INFO : Flash Jetson TX2 : function safe_apt_install {
13:02:33 INFO : Flash Jetson TX2 : echo "*begin $1, $2"
13:02:33 INFO : Flash Jetson TX2 : tmp_log=/tmp/jetpack_dpkg_log.txt
13:02:33 INFO : Flash Jetson TX2 : sudo rm -f $tmp_log
13:02:33 INFO : Flash Jetson TX2 : set +e; $1 2>&1 | tee $tmp_log; CMD_STATUS=${PIPESTATUS[0]}; set -e
13:02:33 INFO : Flash Jetson TX2 : while [ ${CMD_STATUS} -ne 0 ]; do
13:02:33 INFO : Flash Jetson TX2 : if grep -q -e "is locked by another process" -e "E: Could not get lock /var/lib" $tmp_log; then
13:02:33 INFO : Flash Jetson TX2 : sudo rm -f $tmp_log
13:02:33 INFO : Flash Jetson TX2 : set +e; $1 2>&1 | tee $tmp_log; CMD_STATUS=${PIPESTATUS[0]}; set -e
13:02:33 INFO : Flash Jetson TX2 : echo "Waiting $2 seconds for apt to be available"; sleep ${2}
13:02:33 INFO : Flash Jetson TX2 : else
13:02:33 INFO : Flash Jetson TX2 : echo "Unhandled error when running $1"; exit 1
13:02:33 INFO : Flash Jetson TX2 : fi
13:02:33 INFO : Flash Jetson TX2 : done
13:02:33 INFO : Flash Jetson TX2 : }
13:02:33 INFO : Flash Jetson TX2 : export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
13:02:33 INFO : Flash Jetson TX2 : sudo reboot forced-recovery
13:02:33 INFO : Flash Jetson TX2 : **********************
13:02:33 INFO : Flash Jetson TX2 : exec_command: scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh nvidia@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nvidia@192.168.55.1 "~/tmp_NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh && rm -f ~/tmp_NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh"
13:04:43 ERROR : Flash Jetson TX2 : lost connection
13:06:54 INFO : Flash Jetson TX2 : exit status 255
13:06:54 WARNING : Flash Jetson TX2 : command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh nvidia@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no nvidia@192.168.55.1 "~/tmp_NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh && rm -f ~/tmp_NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh" finished with error, but ignored
13:06:54 INFO : Flash Jetson TX2 : exec_command: sleep 20
13:07:14 INFO : Flash Jetson TX2 : exec_command: sudo ./flash.sh jetson-tx2 mmcblk0p1
13:07:14 INFO : Flash Jetson TX2 : ###############################################################################
13:07:14 INFO : Flash Jetson TX2 : # L4T BSP Information:
13:07:14 INFO : Flash Jetson TX2 : # R32 (release), REVISION: 1.0, GCID: 14531094, BOARD: t186ref, EABI: aarch64,
13:07:14 INFO : Flash Jetson TX2 : # DATE: Wed Mar 13 07:41:08 UTC 2019
13:07:14 INFO : Flash Jetson TX2 : ###############################################################################
13:07:14 INFO : Flash Jetson TX2 : # Target Board Information:
13:07:14 INFO : Flash Jetson TX2 : # Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186,
13:07:14 INFO : Flash Jetson TX2 : # OpMode: production, Boot Authentication: NS,
13:07:14 INFO : Flash Jetson TX2 : ###############################################################################
13:07:14 INFO : Flash Jetson TX2 : ./tegraflash.py --chip 0x18 --applet "/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin"
13:07:14 ERROR : Flash Jetson TX2 : /usr/bin/env: ‘python’
13:07:14 ERROR : Flash Jetson TX2 : : No such file or directory
13:07:14 INFO : Flash Jetson TX2 : Reading board information failed.
13:07:14 INFO : Flash Jetson TX2 : exit status 1
13:07:14 INFO : Flash Jetson TX2 : [ Component Install Finished with Error ]
13:07:14 ERROR : Flash Jetson TX2 : NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP command sudo ./flash.sh jetson-tx2 mmcblk0p1 finished with error
13:07:14 INFO : Flash Jetson TX2 :
13:07:14 INFO : Flash Jetson TX2 : [ 4.00 KB used. Disk Avail: 350.01 GB ]
13:07:14 INFO : Flash Jetson TX2 : [ NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP Install took 4m42s ]
13:07:14 INFO : Flash Jetson TX2 : command sudo ./flash.sh jetson-tx2 mmcblk0p1 finished with error
13:07:14 ERROR : Flash Jetson TX2 : command terminated with error
13:07:14 ERROR : install 'Flash Jetson TX2' failure, command < cd '/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310' ; '/opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter' -a='install' -c='eyJpZCI6Ik5WX0w0VF9GTEFTSF9UWDJfV0lUSF9PU19JTUFHRV9DT01QIiwibmFtZSI6IkZsYXNoIEpldHNvbiBUWDIiLCJkZXNjcmlwdGlvbiI6IkZsYXNoIEpldHNvbiBUWDIiLCJjb21wVHlwZSI6ImZsYXNoIiwiaXNWaXNpYmxlIjp0cnVlLCJsaWNlbnNlSWQiOiJOVl9KRVRQQUNLX09TX0VVTEEiLCJpc0RldGVjdGFibGVJbnN0YWxsIjpmYWxzZSwiaXNJbnN0YWxsUGF0aEN1c3RvbWl6YWJsZSI6dHJ1ZSwidGltZW91dFNlY29uZHMiOjM2MDAsInZlcnNpb24iOiIzMi4xIiwib3BlcmF0aW5nU3lzdGVtcyI6WyJ1YnVudHUxNjA0IiwidWJ1bnR1MTgwN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ZXJuYWxfZGVwZW5kZW5jaWVzIjpbXSwidGFyZ2V0SUQiOiJQMzMxMCIsIl9pZCI6Ik5WX0w0VF9GTEFTSF9UWDJfV0lUSF9PU19JTUFHRV9DT01QQFAzMzEwIiwicGFyZW50SUQiOiJOVl9EUklWRV9GTEFTSF9UQVJHRVRfR1JPVVAiLCJfcGFyZW50SUQiOiJOVl9EUklWRV9GTEFTSF9UQVJHRVRfR1JPVVBAUDMzMTAiLCJpbnN0YWxsU3RhdHVzIjoibm9uZSIsImFjdGlvbiI6MSwiZG93bmxvYWRFcnJvcnMiOltdLCJidW5kbGVUaXRsZSI6IkpldFBhY2tfNC4yX0xpbnV4IiwiaW5zdGFsbFBhdGgiOiIvaG9tZS9yaXNoYWJoL252aWRpYS9udmlkaWFfc2RrL0pldFBhY2tfNC4yX0xpbnV4X1AzMzEwIiwiaW5zdGFsbFJvb3QiOiIvaG9tZS9yaXNoYWJoL252aWRpYS9udmlkaWFfc2RrIiwiYm9hcmRJRCI6IlAzMzEwIiwidGFyZ2V0QWNjZXNzSW5mbyI6eyJ1c2VyIjoibnZpZGlhIiwicGFzc3dvcmQiOiJudmlkaWEiLCJob3N0IjoiMTkyLjE2OC41NS4xIiwicG9ydCI6IjIyIn0sImlzRHJ5UnVuIjpmYWxzZX0=' -i='NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP' -v='32.1' -l='/home/rishabh/nvidia/nvidia_sdk/JetPack_4.2_Linux_P3310' -L='/home/rishabh/.nvsdkm/logs/JetPack_4.2_Linux' -p='9343' -t='P3310' -e='undefined' > terminated with error
13:07:14 INFO : install 'Device Mode Host Setup in Target SDK' Skipped
13:07:14 INFO : install 'DateTime Target Setup' Skipped
13:07:14 INFO : install 'CUDA Toolkit for L4T' Skipped
13:07:14 INFO : install 'cuDNN on Target' Skipped
13:07:14 INFO : install 'TensorRT on Target' Skipped
13:07:14 INFO : install 'OpenCV on Target' Skipped
13:07:14 INFO : install 'VisionWorks on Target' Skipped
13:07:14 INFO : install 'Multimedia API' Skipped
13:07:15 INFO : All done!

Hi rishabh.choudhary,

Are you using a VM in your host machine? It is known that in a VM the USB connects and disconnects during the flashing process.

Regards,

I am using a physical machine. To determine that,
I used this command: ‘sudo dmidecode -s system-manufacturer’ and got this as the output: ‘Dell Inc.’

You are missing python 2…only python 3 is there by default. I suggest this from host side, and then try again:

sudo apt update
sudo apt --fix-broken install
sudo apt-get install libgconf-2-4 libcanberra-gtk-module
sudo apt-get install python

(you could use just the python line and try, but the other wouldn’t hurt and might help)

It’s still not working. The problem may be with my python installation. I entered all four lines.
I got the following message after entering your 4th line.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
          Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

That would imply python 2 is still missing, but I would have hoped the “–fix-broken” would have got past that. If you run just that command (listed above), does this fail as well? If so, then you might try this prior to the “–fix-broken”:

sudo apt autoremove

(this removes packages which are no longer required due to things dependent upon it no longer existing)

I ended up reinstalling the OS. Then just running this command: sudo apt-get install python

I tried that command before, but I think I broke something before trying it, so it didn’t work the first time.

sudo apt-get install libgconf-2-4 libcanber
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libcanber

I have an error more or less the same. Just to be sure. Could you install and flash OS to Jetson before getting this error?(Or you got this error while trying to install CUDA and OS installed and flashed to Jetson easily!?)

It looks like the package name is truncated…don’t know if that is just a typo in the post, or if this was actually run with that name, but since the name appears twice I am thinking it was actually truncated in the command and not a typo.

Detail: It is “libcanberra”, not “libcanber”. The actual package mentioned earlier is “libcanberra-gtk-module”. On my host PC (Ubuntu 18.04) I see these packages:

# dpkg -l | grep libcanberra
ii  libcanberra-gtk-module:amd64                    0.30-5ubuntu1                                       amd64        translates GTK+ widgets signals to event sounds
ii  libcanberra-gtk0:amd64                          0.30-5ubuntu1                                       amd64        GTK+ helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-0:amd64                        0.30-5ubuntu1                                       amd64        GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-module:amd64                   0.30-5ubuntu1                                       amd64        translates GTK3 widgets signals to event sounds
ii  libcanberra-pulse:amd64                         0.30-5ubuntu1                                       amd64        PulseAudio backend for libcanberra
ii  libcanberra0:amd64                              0.30-5ubuntu1                                       amd64        simple abstract interface for playing event sounds

Can you verify if this fails?
sudo apt-get install libcanberra-gtk-module

If that can be completed, then we can look at the Python package. Or if the Python error shows up adding the libcanberra-gtk-module package.

after flashing process and while setting up the Jetson(name, pass and …), I was asked about :


I go with the default one. But just in case to be aware of it. The other steps are based on this

The power model would not interfere with the actual flash. Did something break at this step?

The flashing is fine. But I just to be sure it is not the reason that I could not install Cuda by chance.

Can you include the full logs, and not just screenshots? I think it is necessary to see what goes before, and in more detail. I am wondering if this is part of the https://ports.ubuntu.com/ubuntu-ports/pool/main/ failure (the same address should work with http instead of encrypted https).

SDKM_logs_2021-03-17_22-21-11.zip (289.2 KB)
@linuxdev

One more thing,
during the flashing process, my internet connection disconnected/connected. I tried my phone hotspot as well(the same). Can be the case?
Is there any solution?

I tried JetPack 4.4.1. Everything seems nice and installed. I check the version of Cuda on Jetson (nvcc --version). It looks fine.
However, in the terminal, there are some errors! I do not know they are going to make some trouble in future or not!
SDKM_logs_2021-03-18_02-46-07.zip (1.3 MB)

I see the logs did show the lack of detecting the Jetson:

21:30:25.585 - error: Could not detect NVIDIA Jetson device connected to USB. Verify that:
1. The device is connected to this host machine with a USB cable.
2. Jetson's Ubuntu OS is up and running.
3. Ubuntu 'System configuration wizard' is completed on the device.

(but we already knew that)

Looks like a lot of host side package install worked, which implies internet access was good. Eventually it gets to flashing the actual TX2 rootfs:

21:47:01.293 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: [  28.2810 ] [                                                ] 000%
[  28.2810 ] [                                                ] 000%
...

…then it succeeds at writing other partitions of the TX2.

After this the Jetson reboots, so you wouldn’t have to repeat the flash steps, but after reboot things go bad (this would be expected if networking fails, or also if first boot account setup was not completed):

21:47:04.810 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: [ 272.2543 ] Flashing completed
21:47:04.810 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: 
21:47:04.810 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: [ 272.2545 ] Coldbooting the device
21:47:04.810 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: [ 272.2574 ] tegradevflash_v2 --reboot coldboot
21:47:04.830 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: [ 272.2598 ] Bootloader version 01.00.0000
21:47:06.867 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: [ 272.3828 ] 
21:47:06.876 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: *** The target t186ref has been flashed successfully. ***
21:47:06.876 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: Reset the board to boot from internal eMMC.
21:47:06.876 - info: NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP@JETSON_TX2: 
21:47:13.434 - info: NV_VISIONWORKS_HOST_COMP@host: Err:19 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
21:47:13.459 - info: NV_VISIONWORKS_HOST_COMP@host:   Could not resolve 'us.archive.ubuntu.com'
21:47:23.442 - info: NV_VISIONWORKS_HOST_COMP@host: Err:20 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
21:47:23.443 - info: NV_VISIONWORKS_HOST_COMP@host:   Could not resolve 'us.archive.ubuntu.com'
21:47:24.627 - info: NV_VISIONWORKS_HOST_COMP@host: Reading package lists...
21:47:24.659 - error: NV_VISIONWORKS_HOST_COMP@host: W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not resolve 'us.archive.ubuntu.com'
21:47:24.659 - info: Event: NV_VISIONWORKS_HOST_COMP@host - error is: W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not resolve 'us.archive.ubuntu.com'

There have been some issues reading those addresses, but only under https…the http should work, and this is what the above uses. For example, I can go to this address in a web browser and it works:
http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease
(the address is failed in your logs, so perhaps this is the network failure you mentioned)

I’m not particularly good with the SDKM logs, but it does seem that the base flash succeeded, and it should have been possible to perform the first boot account setup. Is it correct that the Jetson itself rebooted and allowed you to try the first boot setup? I suspect that all of the errors involved regarding network would not have interfered (given when the failures occurred) with the TX2 flash…all of the failures would have been from package additions after flash to either host or Jetson.

If there was a network failure in the middle of a package update, e.g., to the host PC, then there are probably steps needed to fix that, but I’m not sure what is required. I probably sound like a broken record, but on the host PC, what errors do you get from:

sudo apt update
sudo apt-get upgrade

(I’m interested in knowing if it isn’t something “standard”)

. Is it correct that the Jetson itself rebooted and allowed you to try the first boot setup? yes
As I mentioned Jetpack 4.4.1 installed and I attach the logs here
I did try several times and I did get the same failure in Jetpack 4.5. However, they were not shown up in process of Jetpack 4.4.1. So if the connection is the case, it should affect both in the same way!?
3. I did test

sudo apt update

sudo apt-get upgrade

it looks fine. What you are looking for?!

Sometimes, for Ubuntu (or for that matter, several Linux flavors/distributions), if an update breaks in the middle due to outside influences (e.g., power loss of network failure), then the package database can be put in a non-working state. Manual fixes would be needed. On the other hand, because the “sudo apt update” and “sudo apt-get upgrade” worked, this is likely not a problem. Individual package installs might have dependency related issues, but it won’t be due to a corrupt package database. Instead, such problems would generally be more of a theme such as a package author changing a package name, or depending on another upgrade which is not yet available (or which is available, but only after fixing a network issue).

I can’t answer the exact problem as to why your optional package installs are failing, but it seems to either be due to package repo server issues, or else to DNS issues. The ubuntu.com servers are not under the control of NVIDIA, nor are some of the DNS issues. I think NVIDIA will need to comment on whether this is some temporary network fluke, or else if perhaps there might be other workarounds.