Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Failed attempt at rebuilding RPM database

Failed attempt at rebuilding RPM database

2003-05-03       - By Z

 Back
Reply:     1     2     3     4     5     6     7     8  

Also, I got rpm to work for root on kernel 2.5.68 by creating
/etc/rpm/macros(renaming etc/macros.specspo - what? that anyway?) and
adding

%__dbi_cdb create cdb mpool mp_mmapsize=16Mb mp_size=1Mb private

AS Jeff Johnson suggested. Otherwise no go.


On Sat, 2003-05-03 at 03:05, Steven P. Ulrick wrote:
> Hello, Everyone :)
> When I attempt to rebuild my corrupted RPM database, following the
> following instructions that I got off the Red Hat 8 list:
>
> To free a stuck database;
> 1. Make sure there are no processes trying to access the rpm database
> (such as rpm, up2date, redhat-config-packages)
> 2. Remove the rpm lock files, rm /var/lib/rpm/__db* .
> Rebooting will do stages 1. & 2. automatically (2. is done in the
> startup
> scripts). In many cases these are enough to free the stuck database. If
> there are still problems;
> 3. Take a safety copy of the database, in case things go wrong. (eg.
> cp -r /var/lib/rpm /var/lib/rpm.copy ).
> 4. Try rebuilding the database (from the Packages data file) by running
> rpm --rebuilddb .
> If the database still doesn 't work, and the db4-utils package was
> installed;
> 5. Run cd /var/lib/rpm; db_verify Packages . This checks the underlying
> data format of this file.
> 6. If there are errors, you can rebuild the Packages file from the good
> records by running
> cp Packages Packages.orig; db_dump Packages.orig | db_load Packages
> and repeat step 4.
> There is a good reference for this procedure at
> http://www.rpm.org/hintskinks/repairdb/
>
>    Michael Young
>
> I get the following result when I do step 6 (I 'm omitting step five from
> this message, as it just proved that my RPM db was hosed:
> db_dump: region error detected; run recovery.
> db_dump: Packages-ORIG: unsupported hash version: 8
> db_dump: open: Packages-ORIG: Invalid argument
>
> I also tried the instructions, almost the same as the above
> instructions, that Jeff Johnson from Red Hat gave:
> http://www.rpm.org/hintskinks/repairdb/
>
> A quick question: I hear a lot about upgrading to the version of RPM
> that is at people.redhat.com/jbj/test-4.1
> Would upgrading have anything to do with reparing my database? Wouldn 't
> I just have a new version of RPM, but with a corrupt database?
>
> Any help you can give me is greatly appreciated :)
> Steven P. Ulrick
>
--
Z <zleite@(protected) >