[WBEL-users] YUM and RPM errors after an update

Johnny Hughes mailing-lists at hughesjr.com
Mon Jun 27 12:15:13 CDT 2005


On Mon, 2005-06-27 at 12:00 -0500, Dale's Lists wrote:
> Hello,
> 
> Last night I tried updating my Whitebox 3 system using YUM,
> after an initial error complaining about a corrupted 
> header, all updates seem to have been  downloaded fine.
> Unfortunately now yum says it can't find any installed
> programs
> 
> yum clean packages
> 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
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 30, in ?
>     yummain.main(sys.argv[1:])
>   File "/usr/share/yum/yummain.py", line 163, in main
>     (log, errorlog, filelog, conf, cmds) =
> parseCmdArgs(args)
>   File "/usr/share/yum/yummain.py", line 75, in parseCmdArgs
>     conf=yumconf(configfile=yumconffile)
>   File "/usr/share/yum/config.py", line 155, in __init__
>     self.yumvar['releasever'] = self._getsysver()
>   File "/usr/share/yum/config.py", line 285, in _getsysver
>     idx = ts.dbMatch('provides', self.distroverpkg)
> TypeError: rpmdb open failed
>  
> 
> 
> and trying to do an rpm --rebuild I get:
> 
> 
> rpm --rebuilddb
> rpmdb: Program version 4.2 doesn't match environment version
> error: db4 error(22) from dbenv->open: Invalid argument
> error: cannot open Packages index
> 
> Any ideas, suggestions to resolve this problem?
> 
> Thanks
> 
> Dale
> 

cd /var/lib/rpm

ls __db.00*

If the result is:

__db.001  __db.002  __db.003

Then do:

rm __db.00*

Verify the files are gone ... then do:

rpm --rebuilddb


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://beau.org/pipermail/whitebox-users/attachments/20050627/329fb454/attachment.bin


More information about the Whitebox-users mailing list