Re: Local rpm database corruption

Jerry Roy <jerry.roy-SrL5qGCgbQJGMJYXDe/[email protected]> Thu, 22 Feb 2007 08:35:38 -0500
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <C203065A.24EE7%[email protected]>
Thank you so much...worked for me too!!!
Regards!
Jerry


G.Pitman wrote:

> Is this RHEL3?
> If so:
> # cd /var/lib/rpm
> # rm __00*
> # rpm --rebuilddb
> 
> atleast thats been a fix for me
> 
> 
> On 2/21/07, Jerry Roy < jerry.roy-SrL5qGCgbQJGMJYXDe/[email protected] <mailto:jerry.roy-SrL5qGCgbQJGMJYXDe/[email protected]> >
> wrote:
>> All...I'm failing rhn update because of a corruption in the local
>> /var/lib/rpm database as evidence by the following example...
>> 
>> root]# rpm -q telnet
>> rpmdb: Program version 4.2 doesn't match environment version
>> error: db4 error(22) from dbenv->open: Invalid argument
>> error: cannot open Packages index using db3 - Invalid argument (22)
>> error: cannot open Packages database in /var/lib/rpm
>> package telnet is not installed
>> 
>> Iwill someone please give me an idea how to correct and recover from this
>> error?
>> 
>> Thanks in Advance
>> Jerry 
>> 
>> --
>> Taroon-list mailing list
>> [email protected]
>> https://www.redhat.com/mailman/listinfo/taroon-list
> 
>

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list