Corrupt rpm database
David Gibson
david at gibson.dropbear.id.au
Wed Feb 20 11:00:19 EST 2002
On Wed, Feb 20, 2002 at 10:45:07AM +1100, Peter Barker wrote:
> On Tue, 19 Feb 2002, Rasjid Wilcox wrote:
>
> > I seem to have a corrupt rpm database. Unfortunately:
> >
> > # rpm -v --rebuilddb
> > error: rpmdb: damaged header instance #99 retrieved, skipping.
>
> Yep, that looks bad.
>
> > Is there anything else I can try, or am I just seriously screwed?
>
> Try to get a list of any sort from the rpmdb. strings on
> /var/lib/rpms/Packages may get you one. rpm may be able to pull that out
> of a damaged db.
>
> move the old rpm database out of the way. Initialise a new database.
With rpm --initdb.
> Install (saying "database only" (option to rpm)) all of the packages
> again.
"rpm -i --justdb <package>" IIRC.
Figuring out exactly which packages you had installed is left as an
exercise.
--
David Gibson | For every complex problem there is a
david at gibson.dropbear.id.au | solution which is simple, neat and
| wrong. -- H.L. Mencken
http://www.ozlabs.org/people/dgibson
More information about the linux
mailing list