[Centos] yum updated to 3.3, rpmdb corrupted

Martin Hamant mh at accelance.fr
Fri Sep 24 09:45:23 UTC 2004

On Fri, 24 Sep 2004 10:16:57 +0100
Tom Seeley <caosity at tomseeley.co.uk> disait:

> error: db4 error(-30989) from dbcursor->c_get: DB_PAGE_NOTFOUND:
> Requested page not found
> The above is displayed when I run an rpm -qa |wc -l (which only
> reports 76 afterwards instead of 657 from before)

on my freshly updated system ( 3.3 ):

# cat /etc/redhat-release 
CentOS release 3.3 (final)
# rpm -qa | wc -l

And no such error message ...

> Nothing happened to the machine whilst it was updating, no errors
> appeared whilst yum was running.
> After yum has finished there are the following files in /var/lib/rpm:
> __db.001
> __db.002
> __db.003

I have these files too.

> If I delete those files /and then/ do a rpm --rebuilddb I seem to
> recover.
> At a guess this is probably something todo with updating glibc and/or
> rpm in the same transaction, but I'm far from being an expert on these
> matters.  Although I appear to have found a work-around for this
> problem, its leaves a bad taste in my mouth.
> Anybody else have a better solution?

Are you sure the MD5 of your CentOS's file is ok ?
Maybe a corrupt Rpm or whatever ... i don't know.


More information about the CentOS mailing list