Xusb firmware update failed; jetson nano

I performed sudo apt-get upgrade and accidentally interrupted the process before it finished

Now, when I want to use sudo apt-get install commands I get following ERROR:

The following packages have been kept back:
nvidia-l4t-3d-core nvidia-l4t-camera nvidia-l4t-cuda nvidia-l4t-firmware
nvidia-l4t-graphics-demos nvidia-l4t-gstreamer nvidia-l4t-init
nvidia-l4t-jetson-multimedia-api nvidia-l4t-multimedia
nvidia-l4t-multimedia-utils nvidia-l4t-wayland nvidia-l4t-weston
nvidia-l4t-x11 ubuntu-drivers-common
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nvidia-l4t-bootloader (32.5.1-20210614115125) …
3448-300—1–jetson-nano-devkit-mmcblk0p1
Starting bootloader post-install procedure.
ERROR. Procedure for bootloader update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-bootloader (–configure):
installed nvidia-l4t-bootloader package post-installation script subprocess returned error exit status 1
Setting up nvidia-l4t-xusb-firmware (32.5.1-20210614115125) …
3448-300—1–jetson-nano-devkit-mmcblk0p1
Starting xusb firmware post-install procedure.
ERROR. Procedure for xusb firmware update FAILED.
Cannot install package. Exiting…
dpkg: error processing package nvidia-l4t-xusb-firmware (–configure):
installed nvidia-l4t-xusb-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-l4t-initrd:
nvidia-l4t-initrd depends on nvidia-l4t-xusb-firmware (= 32.5.1-20210614115125); however:
Package nvidia-l4t-xusb-firmware is not configured yet.

dpkg: error processing package nvidia-l4t-initrd (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
> nvidia-l4t-bootloader
> nvidia-l4t-xusb-firmware
> nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)

I hope I don’t need a clean refresh because I am way to far into a project.

Thanks

Can you run sudo apt-get dist-upgrade again and see if it will get fixed?

Thanks.
I tried sudo apt-get dist-upgrade.
But the same errors occured.

I read this forum post and hoped there is another solution than refreshing.
Errors on nvidia-l4t-xusb-firmware and nvidia-l4t-initrd

dpkg: error processing package nvidia-l4t-initrd (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up nvidia-l4t-multimedia-utils (32.5.1-20210519110732) …
Setting up nvidia-l4t-firmware (32.5.1-20210519110732) …
Setting up nvidia-l4t-init (32.5.1-20210519110732) …
Setting up python3-colorama (0.3.7-1) …
Setting up nvidia-l4t-wayland (32.5.1-20210519110732) …
Setting up nvidia-l4t-x11 (32.5.1-20210519110732) …
Setting up nvidia-l4t-weston (32.5.1-20210519110732) …
Setting up nvidia-l4t-3d-core (32.5.1-20210519110732) …
Setting up python3-click (6.7-3) …
Setting up nvidia-l4t-cuda (32.5.1-20210519110732) …
Setting up nvidia-l4t-multimedia (32.5.1-20210519110732) …
Setting up ubuntu-drivers-common (1:0.8.6.3~0.18.04.1) …
Setting up nvidia-l4t-camera (32.5.1-20210519110732) …
Setting up nvidia-l4t-graphics-demos (32.5.1-20210519110732) …
Setting up nvidia-l4t-gstreamer (32.5.1-20210519110732) …
Setting up nvidia-l4t-jetson-multimedia-api (32.5.1-20210519110732) …
Processing triggers for libc-bin (2.27-3ubuntu1.4) …
Errors were encountered while processing:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)

I don’t think your case is same as those posts.

Is your board a jetson nano using sdcard or emmc?

If it is sdcard module, you can try to flash it with jetson-nano-qspi so that the sdcard itself won’t get updated but only the QSPI. I guess you don’t care about the content over QSPI but only your sdcard.

Thanks. It’s a Jetson Nano using SDcard.

Is flashing with QSPI-NOR difficult as a newby?

I found this documentation of Nvidia:
https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3242/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fquick_start.html%23

However, there is no further description on how to flash the Jetson with QSPI only.

I already told. Using jetson-nano-qspi as your board name here will flash only QSPI-NOR.

Honestly, if even using flash.sh is new to you, try to find a empty sdcard and do the full flash.