--- Devon <[EMAIL PROTECTED]> wrote:
> -----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? 

.. I have it installed now -- it didn't change the situation ...

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

Yes.

> 
> I normally use:
> $ rpm --redhatprovides libcrypto.so.0
> openssl095a-0.9.5a-1

... does not work here:
$ rpm --redhatprovides libcrypto.so.0
error: cannot open Packages index using db3 - No such file or directory
(2)

this works:
$ rpm -q --whatprovides libcrypto.so.0
openssl-0.9.5a-7.6.x


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

.. I just did a rebuild of the db, to no avail... after this doing a:
rpm --initdb
also with no change of the situation

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

... is this path the default path for the rpm database for Redhat 6.2?:
/usr/lib/rpmdb/i386-redhat-linux/redhat/ 
(I'd like to be careful with this last command you mentioned ... :))

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

... IIRC I upgraded it to the current 4.* version some time ago ..
normally rpm works fine here .. it just doesn't give me this special
option to run .. and I wonder why, because db3 is installed ...

> - --------
> 
> If that doesn't help, lets see the output of 'rpm -qa|grep rpm' ?
> 
$ rpm -qa|grep rpm
rpm-python-4.0.2-6x
rpm-devel-4.0.2-6x
rpm-build-4.0.2-6x
gnorpm-0.95.1-6.6x
rpm2html-1.2-6
rpmfind-1.4-3
rpm-4.0.2-6x
rpmdb-powertools-6.1-1
rpmdb-redhat-6.2-0.20000308
rpmlint-0.8-10

Regards
-- 
   Wolfgang Pfeiffer
   http://www.geocities.com/wolfgangpfeiffer

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to