[WBEL-users] yum problems - correction without reboot.

Nathan Oyler noyler at khimetrics.com
Thu Mar 10 12:42:02 CST 2005


Don't know if this has been fixed, just joined the list and reading
through the archives, but you don't need to reboot to correct that.

rm -f /var/lib/rpm/__db*

takes care of it. Why it happens, I don't know.


On Mon, 2005-02-28 at 16:45 -0800, Mickael Maddison wrote:
> Hello whitebox-users,
> 
> what would cause this?
> 
> [root at loon root]# yum check-update
> 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
> 
> #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
> 

I usually see this after I've done a major yum/rpm update and I think
it's to do with RPM (or possibly glibc) being updated.  I feel bad
saying this, and I'm sure there must be a better way, but I find that a
reboot fixes it.







More information about the Whitebox-users mailing list