yum failure after rpm --rebuilddb

Joel Daynes yellowdog-general@lists.terrasoftsolutions.com
Tue Apr 20 12:23:05 2004


This failed in the same way...I'll probably just reinstall rpm and/or 
yum from CD and see what that gets me...Thanks for the suggestions!

Joel


> yum -y install yum fails in the same way....


Have you tried:
	rpm --initdb then --rebuilddb?
	yum clean
??

If still no-go, I would re-install 'rpm' and/or 'yum' packages from CD1 
...




>
> ____________________________________
> Joel Daynes
> Web Developer
> Mercury MediaWorks Digital Solutions
> http://www.mercurymediaworks.com
> jdaynes@mmwds.com
>
>> Hello-
>> 	Recently I rebuilt the rpm database using rpm --rebuilddb, and ever
>> since, when I try to do anything with yum, I get errors like this:
>>
>> [root@edge root]# yum install php
>> Gathering package information from servers
>> Getting headers from: Yellow Dog Linux 3.0 base
>> Getting headers from: Yellow Dog Linux 3.0 updates
>> rpmdb: /var/lib/rpm/Packages: unsupported hash version: 8
>> error: cannot open Packages index using db3 - Invalid argument (22)
>> Traceback (most recent call last):
>>    File "/usr/bin/yum", line 44, in ?
>>      yummain.main(sys.argv[1:])
>>    File "yummain.py", line 145, in main
>>    File "clientStuff.py", line 146, in rpmdbNevralLoad
>>    File "clientStuff.py", line 139, in openrpmdb
>> NameError: global name 'RpmError' is not defined
>>
>> Any thoughts on how to get yum back in working order?
>
> I solved a similar issue with  'yum -y install yum'
>
>> Thanks-
>> Joel
>> ____________________________________
>> Joel Daynes
>> Web Developer
>> Mercury MediaWorks Digital Solutions
>> http://www.mercurymediaworks.com
>> jdaynes@mmwds.com