Debconf complains of database corruption; apt system wedged
Hi.
After a nasty crash during a dist-upgrade, I discovered that
/var/lib/dpkg/status was missing (fsck must not have been able to save
it). I restored a copy form /var/backups, and threw away a file from
/var/lib/dpkg/updates/ that was making dpkg choke (it was malformed,
probably truncated) and resumed the dist-upgrade.
Unfortunately, something else in the dpkg/apt system seems to be
hosed, and I'm not sure how to fix it. Namely:
bigbox:~# dpkg --configure debconf
Setting up debconf (1.3.17) ...
Use of uninitialized value in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 29.
debconf: warning: possible database corruption. Will attempt to repair by adding back missing question debconf.
debconf: warning: possible database corruption. Will attempt to repair by adding back missing question debconf-tiny.
Use of uninitialized value in exists at /usr/share/perl5/Debconf/Template.pm line 66, <GEN1> line 4.
Use of uninitialized value in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 29, <GEN1> line 4.
Use of uninitialized value in exists at /usr/share/perl5/Debconf/Template.pm line 66, <GEN1> line 4.
Use of uninitialized value in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 29, <GEN1> line 4.
Can't call method "choices" on an undefined value at /usr/share/perl5/Debconf/Question.pm line 85, <GEN1> line 4.
dpkg: error processing debconf (--configure):
subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
debconf
As tons of other stuff depends on debconf, I can't progress without
it.
Any suggestions on how to fix this would be appreciated.
Best,
--Joe
--
Joseph Barillari -- http://barillari.org
Reply to: