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

Re: rpm db problem



On Thu, Aug 31, 2006 at 09:29:42AM +0200, Erwin Rol wrote:
> This morning i tried to do a yum update and got an error, when trying a
> rpm -qa i got the following error;
> 
> [root xpc erwin]# rpm -qa
> rpmdb: /var/lib/rpm/Packages: Invalid hash meta page 0
> error: cannot open Packages index using db3 - Invalid argument (22)
> error: cannot open Packages database in /var/lib/rpm
> 
> I have no idea how this happened, have others seen this problem

I also have ahd issues with rpm database corruption, but I don't know
what caused it nor how to reproduce it. sometimes there is a segfault 
when running yum, which is certainly in the rpmlib, and I guess it is 
what screews things, and also sometimes rpm never finish.

> recently? And more important how can it be fixed?

What I do is

rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb

--
Pat


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