File System and OS error on flashing jetson OS to Xavier AGX Devkit

Trying to flash Jetson OS using Jetpack SDK on Ubuntu 18.04. Every time I get ERROR: File System and OS: command terminated with error. The full log is given below:

22:01:41 INFO: File System and OS: verifying checksum of /media/hasnain/Installations/jetson/download/Tegra_Linux_Sample-Root-Filesystem_R32.5.0_aarch64.tbz2

22:01:43 INFO: File System and OS: Found file /media/hasnain/Installations/jetson/download/Tegra_Linux_Sample-Root-Filesystem_R32.5.0_aarch64.tbz2 with correct checksum, skip downloading.

22:01:43 DEBUG: running command < true >

22:01:43 INFO: command finished successfully

22:01:43 DEBUG: File System and OS: using adapter to install NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP@JETSON_AGX_XAVIER to /media/hasnain/Installations/jetson/nvidia_sdk/JetPack_4.5_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/rootfs/

22:01:43 INFO: File System and OS: [host] [ Disk Avail:28.52 GB ]

22:01:43 INFO: File System and OS: exec_command: /tmp/tmp_NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP.sh

22:01:43 INFO: File System and OS: [host] [sudo] password for hasnain:

22:01:43 INFO: File System and OS: *begin sudo apt-get install -y qemu-user-static , 5

22:01:44 INFO: File System and OS: Reading package lists...

22:01:44 INFO: File System and OS: Building dependency tree...

22:01:44 INFO: File System and OS: Reading state information...

22:01:44 INFO: File System and OS: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

22:01:44 INFO: File System and OS: *begin sudo apt-get install -y python , 5

22:01:44 INFO: File System and OS: Reading package lists...

22:01:45 INFO: File System and OS: Building dependency tree...

22:01:45 INFO: File System and OS: Reading state information...

22:01:45 INFO: File System and OS: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

22:01:45 INFO: File System and OS: exec_command: /tmp/tmp_NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP.sh

22:05:48 INFO: File System and OS: Using rootfs directory of: /media/hasnain/Installations/jetson/nvidia_sdk/JetPack_4.5_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/rootfs

22:05:48 ERROR: File System and OS: command terminated with error

22:05:48 SUMMARY: Flash Jetson AGX Xavier 16GB/32GB: Depends on failed component

INSTALLATION FAILED
Please review the terminal tab for details. Resolve and RETRY.

Please clarify whether this is a flash problem or installing sdk problem. or error happens during preparing the flash components. If you don’t know how to, share us the full sdkmanager log instead of the partial one.

If you just want to flash, go to Linux_for_Tegra and use flash.sh directly and see if any error shows up.