[Centos] yum updated to 3.3, rpmdb corrupted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 24 Sep 2004 10:16:57 +0100
Tom Seeley <caosity@xxxxxxxxxxxxxxx> 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
    483

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.


-- 
Martin


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux