[WBEL-users] yum troubles

Pete Biggs pete at physchem.ox.ac.uk
Tue Mar 1 04:17:50 CST 2005


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.

P.

-- 
Pete Biggs :{)       pete @ physchem.ox.ac.uk     pete.biggs @ chem.ox.ac.uk
01865 275490 (Work)  pete1biggs @ gmail.com       pete @ biggs.org.uk



More information about the Whitebox-users mailing list