Re: Serious dpkg problems
On Sat, May 24, 2003 at 03:34:58PM +0100, Rory Campbell-Lange wrote:
> Hi. I realise this isn't a ppc question, but since I've had no response
> on debian-user over the last 2 days I thought I would take the liberty
> of trying here (where people have always been helpful!).
> A server went down during an apt-get dist-upgrade. It looks like some
> sort of cache value is missing in the dpkg database -- I had to fsck the
> disk by hand after the crash and a there were a fair number of problems.
> This problem exists for a number of packages, but not all of them. Is
> there any way of rebuilding the database or reinstalling dpkg from
> scratch without having to rebuild the server?
> The errors start like this when installing ssh (for instance):
> Unpacking ssh (from ssh_1%3a3.6.1p2-1_i386.deb) ...
> Use of uninitialized value in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 29.
> Use of uninitialized value in exists at /usr/share/perl5/Debconf/Template.pm line 66, <GEN1> line 4.
apt-get install --reinstall
to reinstall any package, including dpkg and apt-get.
You can also try apt-get install --fix-broken
which often does the right thing.
Debian GNU/Linux Operating System
By the People, For the People
Chris Tillman (a people instance)