-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 19 January 2002 10:47 am, Wolfgang Pfeiffer wrote: > Hi, > When I run the following command (whether as root or a normal user): > > $ rpm -q -vv --redhatprovides libcrypto.so.0 > > I get the answer: > D: opening db index > /usr/lib/rpmdb/i386-redhat-linux/redhat/Packages rdonly mode=0x0 > D: closed db index > /usr/lib/rpmdb/i386-redhat-linux/redhat/Packages > error: cannot open Packages index using db3 - No such file or directory > (2) > > How can I fix this error?
First, you do have the rpmdb-redhat package installed according to your output. Do you also have rpmdb-powertools package? On a 7.1 machine, I have rpmdb-redhat-7.1-0.20010408 rpmdb-powertools-7.1-0.20010305 Why the -vv option? Verbose output for a query? I normally use: $ rpm --redhatprovides libcrypto.so.0 openssl095a-0.9.5a-1 The command you gave does work here, it just hides the answer in the output. $ rpm -q -vv --redhatprovides libcrypto.so.0 D: opening db index /usr/lib/rpmdb/i386-redhat-linux/redhat/Packages rdonly mode=0x0 D: locked db index /usr/lib/rpmdb/i386-redhat-linux/redhat/Packages D: opening db index /usr/lib/rpmdb/i386-redhat-linux/redhat/Providename rdonly mode=0x0 openssl095a-0.9.5a-1 The only thing I would suggest at this point is to try 'rpm --rebuilddb' - -------- The following qualifies as a wild guess. I've never used this option myself. You might also want to try running rpm --rebuilddb --dbpath \ usr/lib/rpmdb/i386-redhat-linux/redhat/ Watch the line break above, it's all one command. You may need to use the above to tell rpm to specifically rebuild the redhat-rpmdb Perhaps this would be an issue if rpm has been upgraded? I remember having to rebuild the main database after an upgrade, perhaps from the 3.* to 4.* version of rpm? - -------- If that doesn't help, lets see the output of 'rpm -qa|grep rpm' ? Hope that helps, - -D - -- pgp key: http://www.tuxfan.homeip.net:8080/pgpkey.txt - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8SfhReMAUbzJhSVcRAhgiAKCUg/fC/ks+UFCTBq2xuAlBjZvvvQCdE2Ni aysGkuX34oOBlk1naHXdpB8= =BFsE -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list