[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, Julius Szelagiewicz wrote:

> 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
>
Well, the fix for rpm dtabase is gaining in urgency, as I need to get
printing going. the situation is really strange: the system insists on
running cups, the full backup that i restored from was done on the system
that has run LPRng. at this point i don't even care which i run, but i
need to fully run something, and printtool fails. i can not remove or add
printers by hand and all the old printers are not working: lpstat
complains about "the remote system" (local for all sane people and
computers) not running lpd protocol. cups-lpd enabled in services. cursed,
i tell you. julius




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