Yum/rpm error (rpmdb versioning issue?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2005-07-20 at 06:39 -0400, Chris Mauritz wrote:
> Has anyone seen this before?
> 
> [root@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: not available
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.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux