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
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 versionThat's not good IIRC. Might be the reason why the rest is an issue.> 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.Are you saying the rebuild completes, but yum still fails? Or the rebuild doesn't complete?> Any suggestions would be greatly appreciated as this is a remote > system that isn't easy for me to get physical access to. 8-(-- Bryan J. Smith b.j.smith at ieee.org --------------------------------------------------------------------- It is mathematically impossible for someone who makes more than you to be anything but richer than you. Any tax rate that penalizes them will also penalize you similarly (to those below you, and then below them). Linear algebra, let alone differential calculus or even ele- mentary concepts of limits, is mutually exclusive with US journalism. So forget even attempting to explain how tax cuts work. ;->
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-0001.sig>
Le Wed, 20 Jul 2005 06:39:05 -0400 Chris Mauritz <chrism at imntv.com> ?crivait:> Has anyone seen this before?Yes. It's because of an update of libdb ... So you have to delete __db.XXX files in /var/lib/rpm directory, and do a rpm --rebuilddb and it should be fine.> > [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[...] -- Martin
Johnny Hughes wrote:>On Wed, 2005-07-20 at 06:39 -0400, Chris Mauritz wrote: > > >>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 > >That did it! Thanks guys. Cheers, C