rpm database error - reposted

Truls Gulbrandsen trulsg at broadpark.no
Fri Oct 15 14:39:21 UTC 2004


It seems as my original message drowned in other interesting subject so, 
therefor, here it is reposted.

Truls

-------- Original Message --------
Subject:     rpm database error
Date:     Thu, 14 Oct 2004 19:11:35 +0200
From:     Truls Gulbrandsen <trulsg at broadpark.no>
Reply-To:     For users of Fedora Core releases <fedora-list at redhat.com>
To:     For users of Fedora Core releases <fedora-list at redhat.com>



I am unable to run >yum update< as my rpm database has been corupted,
please see the below errormessage.  I have tried to run the below
commands, which I found at RedHat, but without success:

#rm -f /var/lib/rpm/__db*
#db_verify /var/lib/rpm/Packages
#rpm --rebuilddb

This should fix your RPM database.

HTH,
Prakash


Can someone help me, please

Truls Gulbrandsen

-
-----------------------------------------------------------------------------

[root at localhost root]# yum update
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal
error, run database recovery
error: cannot open Packages index using db3 -  (-30978)
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
[root at localhost root]#


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: file:///tmp/nsmail-1.asc
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041015/10622127/attachment-0001.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trulsg.vcf
Type: text/x-vcard
Size: 237 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041015/10622127/attachment-0001.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041015/10622127/attachment-0001.sig>


More information about the fedora-list mailing list