[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [K12OSN] bad rpm database after restore from backup
- From: Les Mikesell <les futuresource com>
- To: k12osn redhat com
- Subject: Re: [K12OSN] bad rpm database after restore from backup
- Date: Sat Jan 3 19:42:01 2004
On Sat, 2004-01-03 at 17:28, Julius Szelagiewicz wrote:
> as a for instance: the /var/lib/rpm directory looks goot, but rpm
> and apt-get just blow up. Trying to restore rpm database:
> [root solinden rpm]# rpm --rebuilddb
> rpmdb: fatal region error detected; run recovery
> error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error,
> run database recovery
> error: cannot open Packages index
>
> any thoughts? what went wrong? the backup was done and restored with "cpio
> -pudmv" command. tia, julius
Older versions of rpm screwed up the database regularly. Go to
/var/lib/rpm remove any files named rm __db.0* (that's 2
underscores). Then do the rpm --rebuilddb again. Also be
sure no other instances of rpm or apt-get are still running. If
no one else is using the machine the easy way to be sure is
to reboot.
---
Les Mikesell
les futuresource com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]