Dpkg Error on Jetson Orin Nano

Hello Jetson community,
I’m encountering a critical issue on my Jetson Orin Nano device that prevents me from properly using apt and dpkg. I’ve been facing this problem while trying to install or remove packages using sudo apt. The error message I’m getting is as follows:
“dpkg: unrecoverable fatal error, aborting:
loading files list file for package ‘debconf-utils’: cannot open /var/lib/dpkg/info/debconf-utils.list (Bad message)
E: Sub-process /usr/bin/dpkg returned an error code (2)”

I tried to reinstall dpkg using: sudo apt-get install --reinstall dpkg. But then I got the following error:
“E: Sub-process /usr/bin/dpkg returned an error code (2)”

If anyone has any insights, suggestions, or solutions to offer, I would greatly appreciate your help. Thank you in advance for any assistance you can provide.

I’ve never seen this, but that file is owned by package debconf-utils, and I found this thread that might work (different package though):
https://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-inconsistent-state-error

So this might work:

sudo dpkg --remove --force-remove-reinstreq debconf-utils
sudo apt-get install debconf-utils

If you have something valuable, then you might consider cloning the rootfs in case this cannot be resolved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.