Jetson Nano Dev Kit
dpkg: error processing package nvidia-l4t-bootloader (--configure)
You may see this error, or something similar, while trying to install VS Code (or anything else) on the Jetson
Text Only
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)
To resolve, try the following (with thanks to Carlos on the NIVIDIA forums).The issue is related to the information that dpkg saves. To do a hacky fix we'll move the dpkg info to a backup, update and reinstall dpkg packages, and then copy back the info we backed up. This will correct corrupted the information that had been stored
- Backup
/var/lib/dpkg/info
- Update the repos and force install
- Copy the corrected dpkg/info files over our old backup
- Remove the new info and copy our backup (with corrected info) back into place
Things should now work properly.