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

Re: [K12OSN] bad rpm database after restore from backup



On Sat, 3 Jan 2004, Les Mikesell wrote:
> 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,
	I did all that immediately, to no avail, what i get for my efforts
is: "rpmdb: /var/lib/rpm/Packages: unexpected file type or format"
"error: can not open packages index"

removing all the files in the /var/lib/rpm and running recovery creates
empty databas and apt-get loads signatures only. this server appears to be
cursed ... julius






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