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

failed to open //var/lib/rpm/packages.rpm



Hello!

I have this problem:

    [pascal@hermes pascal]$ su
    Password: 
    [root@hermes pascal]# rpm -q -a
    failed to open //var/lib/rpm/packages.rpm

    rpmQuery: rpmdbOpen() failed
    [root@hermes pascal]# rpm --rebuilddb
    failed to open //var/lib/rpm/packages.rpm

    [root@hermes pascal]# rpm --initdb
    [root@hermes pascal]# rpm -q -a
    failed to open //var/lib/rpm/packages.rpm

    rpmQuery: rpmdbOpen() failed
    [root@hermes pascal]# rpm --version
    RPM version 3.0.3

What would you do in my case ?

I'm  going  to  `find  /  -print`  to  find  out  on  another  similar
installation what  packages were installed,  then remove /var/lib/rpm,
then  rebuild a  new  rpm  db, and  re-install  every packages,  being
carefull of  saving current configuration files. Would  this be right?
Note that this is on a  production machine that should not be restared
if possible. We need to upgrade some packages for security patches.


-- 
__Pascal Bourguignon__    PGP Key ID:      0xEF5E9966
mailto:pjb@imaginet.fr    PGP fingerprint: 00 F5 7B DB CA 51 8A AD 04 5B 
http://www.imaginet.fr/~pjb/               6C DE 32 60 16 8E EF 5E 99 66

() Join the ASCII ribbon campaign against html email and Microsoft attachments.
/\ Rejoignez la campagne du ruban ASCII, contre les couriels html 
   et les pièces jointes Microsoft.

Software patents are endangering the computer industry in the US and around 
the world.  Join the LPF and help the cause.         http://lpf.ai.mit.edu/





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