[CentOS] Yum/rpm error (rpmdb versioning issue?)
Johnny Hughes
mailing-lists at hughesjr.com
Wed Jul 20 10:59:47 UTC 2005
On Wed, 2005-07-20 at 06:39 -0400, Chris Mauritz wrote:
> Has anyone seen this before?
>
> [root at shelob rpm]# yum 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
>
> Trying to rebuild the rpm database results in a similar error. Any
> suggestions would be greatly appreciated as this is a remote system that
> isn't easy for me to get physical access to. 8-(
>
> Cheers,
>
> Chris
>
Try removing the files /var/lib/rpm/__db.00* and then rebuilding the
database with the command:
rpm --rebuilddb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20050720/f8d97c31/attachment.sig>
More information about the CentOS
mailing list