Bug 98548 - rpm database is trashed can not do a rebuilddb
Summary: rpm database is trashed can not do a rebuilddb
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL: http://www.mtiemail.com/~gchiii/rpmdb...
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-03 16:07 UTC by George Huntington
Modified: 2007-04-18 16:55 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2003-07-03 19:05:57 UTC


Attachments (Terms of Use)

Description George Huntington 2003-07-03 16:07:59 UTC
From Bugzilla Helper:


User-Agent: Opera/7.01 (Windows 98; U)  [en]




Description of problem:


i get this error message


    *** dbiUpdateRecord: uh is NULL




i can't run up2date, and i can't figure out a way to fix the database


nothing i've tried seems to work




Version-Release number of selected component (if applicable):


rpm-4.0.5-1.7x




How reproducible:


Always




Steps to Reproduce:


1.rpm --rebuilddb


2.


3.


    




Actual Results:  *** dbiUpdateRecord: uh is NULL


Segmentation fault (core dumped)






Additional info:

Comment 1 Jeff Johnson 2003-07-03 17:29:12 UTC
Can you supply pointer (attachments won't work) to tarball
of your database:
    cd /var/lib
    tar czvf /tmp/rpmdb-98548.tar.gz rpm

Comment 2 Jeff Johnson 2003-07-03 19:05:57 UTC
OK, you had several headers damaged.

A copy of you rpm/Packages file with those headers removed is
at ftp://people.redhat.com/jbj/rpmdb-98548-FIX.tar.gz.

DOwnload and install by doing
    cd /var/lib
    mv rpm/Packages rpm/Packages-ORIG
    tar xzvf rpmdb-98548-FIX.tar.gz
    rpm --rebuilddb -vv

BTW, all I did was --rebuilddb with rpm-4.1.1 or rpm-4.2,
you might want to upgrade.


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