Fedora 8 yum error

david-8uUts6sDVDvs2Lz0fTdYFQ at public.gmane.org david-8uUts6sDVDvs2Lz0fTdYFQ at public.gmane.org
Wed Nov 19 20:14:00 EST 2008


> On Wed, 2008-11-19 at 07:20 -0500, David Kramer wrote:
>> [root at janus pluginconf.d]# yum info poster
>> Loaded plugins: fedorakmod, kernel-module, kmdl, priorities
>> rpmdb: PANIC: fatal region error detected; run recovery
>> error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error,
>> run database recovery
>> error: cannot open Packages index using db3 -  (-30977)
>> error: cannot open Packages database in /var/lib/rpm
...

> Bleah! I see mis-matched db3 and db4 calls mentioned there... You didn't
> upgrade rpm to the Fedora 10 version, did you? Historically, rpm has

No.  As I said, this box is still F8. But I see that I have db4.
# rpm -qa | egrep 'db[0-9]+-'
db4-4.6.21-2.fc8
db4-cxx-4.6.21-2.fc8
db4-devel-4.6.21-2.fc8

rpm -qa | egrep 'f[c]*10'
returns no results.

> used its own internal copy of berkeleydb, which I believe was db3, but
> in F10, its switching to the system-provided db4.x.
>
>> So what do I do about this?
>
> Hopefully, this should do the trick:
>
> 1) rm -f /var/lib/rpm/__db.*
> 2) rpmdb --rebuilddb

That worked.  Thanks.






More information about the Discuss mailing list