JetPack 4.4: Drivers for Jetson Failed

I’m trying to use my Ubuntu 18.04 VM to flash and setup my AGX Xavier but keep encountering the following error in the SDK Manager.

“Drivers for Jetson: Failed to execute commands with GenericInstaller”

Here’s the contents of the log file NV_L4T_DRIVERS_T194_COMP.log:

"Info: [ Disk Avail:20.09 GB ]
Info: NV_L4T_DRIVERS_T194_COMP include 1 package
Info: change working directory to /home/user/Desktop/shared/JetPack_4.4_Linux_JETSON_AGX_XAVIER
Info: [ Package PreInstall Started ]
Info: current working directory is /home/user/Desktop/shared/JetPack_4.4_Linux_JETSON_AGX_XAVIER
Info: exec_command: sudo rm -rf /home/user/Desktop/shared/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/
Info: [ Package PreInstall Finished Successfully ]
Info: [ Package Install Started ]
Info: current working directory is /home/user/Desktop/shared/JetPack_4.4_Linux_JETSON_AGX_XAVIER
Info: exec_command [host]:


#!/bin/bash
set -e

function safe_apt_install {
echo “*begin $1, $2”
tmp_log=/tmp/jetpack_dpkg_log.txt
sudo rm -f $tmp_log
set +e; $1 2>&1 | tee $tmp_log; CMD_STATUS=${PIPESTATUS[0]}; set -e
while [ ${CMD_STATUS} -ne 0 ]; do
if grep -q -e “is locked by another process” -e “E: Could not get lock /var/lib” $tmp_log; then
sudo rm -f $tmp_log
set +e; $1 2>&1 | tee $tmp_log; CMD_STATUS=${PIPESTATUS[0]}; set -e
echo “Waiting $2 seconds for apt to be available”; sleep ${2}
else
echo “Unhandled error when running $1”; exit 1
fi
done
}
sudo apt-get update || true
safe_apt_install “sudo apt-get install -y pigz lbzip2” 5
tar xf /home/user/Desktop/shared/Jetson_Linux_R32.4.3_aarch64.tbz2


Info: exec_command: /tmp/tmp_NV_L4T_DRIVERS_T194_COMP.sh
Hit:1 Index of /ubuntu bionic InRelease
Get:2 Index of /ubuntu bionic-updates InRelease [88.7 kB]
Hit:3 Index of /ubuntu bionic-security InRelease
Get:4 Index of /ubuntu bionic-backports InRelease [74.6 kB]
Fetched 163 kB in 2s (65.7 kB/s)
Reading package lists…
*begin sudo apt-get install -y pigz lbzip2, 5
Reading package lists…
Building dependency tree…
Reading state information…
lbzip2 is already the newest version (2.5-2).
pigz is already the newest version (2.4-1).
The following packages were automatically installed and are no longer required:
efibootmgr libegl1-mesa libfwup1 libllvm9 libwayland-egl1-mesa
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Info: [ Package Install Finished with Error ]
Info: [ 64.00 KB used. Disk Avail: 20.09 GB ]
Info: [ NV_L4T_DRIVERS_T194_COMP Install took 2m18s ]
Error: [error]: : [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_DRIVERS_T194_COMP.sh; [error]: tar: Exiting with failure status due to previous errors
"

This is generally how VMs work. VMs tend to not correctly handle USB. During a flash USB will repeatedly disconnect and reconnect. Where a regular native install picks USB back up the VM tends to lose the USB (the parent o/s is probably taking the reconnect). If you can find a way to get the VM to always get that USB no matter how it disconnects/reconnects, then you can probably get it to work. However, life will be simpler if you have a native host PC install.