[WBEL-users] YUM and RPM errors after an update
Nathan Oyler
noyler at khimetrics.com
Mon Jun 27 12:15:18 CDT 2005
This caused by the presence of stale lock files. Run the following
command as root on your machine,
rm -f /var/lib/rpm/__db*
> -----Original Message-----
> From: whitebox-users-bounces at beau.org [mailto:whitebox-users-
> bounces at beau.org] On Behalf Of Dale's Lists
> Sent: Monday, June 27, 2005 10:00 AM
> To: whitebox-users at beau.org
> Subject: [WBEL-users] YUM and RPM errors after an update
>
> 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
>
>
>
> _______________________________________________
> Whitebox-users mailing list
> Whitebox-users at beau.org
> http://beau.org/mailman/listinfo/whitebox-users
More information about the Whitebox-users
mailing list