is it just me or are you not logged in as root or su in the snip below? 
That is probably your problem.  Not your rpm database.  You must be
either su or root to do anything with rpms.


Abe


Fred Schroeder wrote:
> 
> have you tried:
> rpm --rebuilddb
> 
> I think that will do it, I am sure somebody will correct me if I am wrong.
> ;-)
> 
> HTH
> Fred
> 
> ----- Original Message -----
> From: "cyberclay" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 09, 2001 8:59 PM
> Subject: [newbie] serious rpm problem
> 
> > Hey,
> >   I'm having a pretty serious rpm problem.
> > Something has apparently happened to my
> > /var/lib/rpm/packages.rpm file:
> >
> > [cclay@www ~cclay]# rpm -q bash
> > cannot open file //var/lib/rpm/nameindex.rpm: Invalid argument
> > rpmQuery: rpmdbOpen() failed
> >
> > How can I re-create this?  Should I just re-install
> > rpm?  Which version is appropriate for Mandrake 7.0,
> > and where can I find it as a tar.gz file (because I
> > obviously can't use an rpm).
> >
> > Regards,
> >   cyberclay
> > ---
> > cclay at fastlane dot net
> > I think, therefore I am dangerous
> > http://www.hsien.net
> >
> >

Reply via email to