Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 56910 - RPM database is broken
RPM database is broken
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2001-11-29 16:56 EST by Kenneth Rohde Christiansen
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-02 06:05:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kenneth Rohde Christiansen 2001-11-29 16:56:12 EST
Description of Problem:

it contains erros so that I cannot use gnorpm nor red carpet

I tried the following and it didn't help:

Here's what Jeff Johnson suggested when I had a similar problem:

Save a copy of you database
        cd /var/lib
        tar czvf /tmp/rpmdb.tar.gz rpm

Try doing
        db_verify /var/lib/rpm/Packages

If that succeeds, an rpm --rebuilddb will regenerate the indices.

If that fails, do
        cd /var/lib/rpm
        mv Packages Packages-ORIG
        db_dump Packages-ORIG | db_load Packages
        rpm --rebuilddb

If that still fails, open a bugzilla report with a pointer (attachments
wont work for >2Mb files) to your database and I'll take a look.

Here is my original mail to the testers-list@redhat.com: 

--initdb also fails:

[root@llephaane kenneth]# LANG=C rpm --initdb
rpmdb: First overflow page 15 has a prev_pgno
rpmdb: Overflow item incomplete on page 15
rpmdb: First overflow page 51 has a prev_pgno
rpmdb: Overflow item incomplete on page 32
rpmdb: Overflow item incomplete on page 75
rpmdb: First overflow page 84 has a prev_pgno
rpmdb: Overflow item incomplete on page 84
rpmdb: Overflow item incomplete on page 86
rpmdb: Overflow item incomplete on page 79
rpmdb: First overflow page 4048 has a prev_pgno
rpmdb: Overflow item incomplete on page 4048
error: db3 error(-30985) from db->verify: DB_VERIFY_BAD: Database
verification failed

tir, 2001-11-27 kl. 09:18 skrev Kenneth Rohde Christiansen:
> What can I do to fix this error. It suddently just appeared, and now
> most rpm tools doesn't work
> error: rpmdb: damaged header instance #958 retrieved, skipping.
> Kenneth

If you want me mail you the Packages file, I can do so. I don't have a
place to upload it

Comment 1 Jeff Johnson 2001-12-02 06:05:37 EST
If you want the problem fixed, you better mail me Packages :-)
Remember I cannot guarantee anything. FWIW, many, many
redcarpet users are experiencing these sorts of problems,
I'm just the guy who gets to "fix" :-(
Comment 2 Jeff Johnson 2001-12-02 18:34:06 EST
I believe this problem is solved in private e-mail, please reopen
if not.

Note You need to log in before you can comment on or make changes to this bug.