Since a while ago updating the bootloader from ppa to different versions (for example 32.4 to 32.5 , from 32.5 to 32.6 and from 32.6 to 34.7) causes will an error in the script post-installation script subprocess returned error exit status 1
Setting up nvidia-l4t-bootloader (32.7.1-20220219090432) ... 3448-300---1--jetson-nano-qspi-sd-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 Processing triggers for libc-bin (2.27-3ubuntu1.3) ... Errors were encountered while processing: nvidia-l4t-bootloader E: Sub-process /usr/bin/dpkg returned an error code (1)
Apparently it is related to the information that dpkg saves and it conflicts in the installation
So wee needed move /var/lib/info/ and create new /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/backup/ sudo mkdir /var/lib/dpkg/info/
Next update repos and force install .
sudo apt-get update sudo apt-get -f install
Move the new structure dpkg/info to old info
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/backup/
Remove the new dpkg structure folder and back the old
sudo rm -rf /var/lib/dpkg/info sudo mv /var/lib/dpkg/backup/ /var/lib/dpkg/info/
If this is not done, it will complain in the script and its installation will always fail.
It’s a “hackly” way without having to flash again.