rpm db problem

Patrice Dumas pertusus at free.fr
Thu Aug 31 07:53:47 UTC 2006


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 at 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




More information about the devel mailing list