Re: RPM woes


Subject: Re: RPM woes
From: Jim Gribbin (jgribbin@alaska.net)
Date: Mon May 12 2003 - 00:45:51 AKDT


I sounds like you may have a database version difference. I found this
in Google Heaven:
     
Re: corrupt database

________________________________________________________________________

________________________________________________________________________
On Thu, 2003-02-06 at 18:35, Jeff Johnson wrote:
> On Thu, Feb 06, 2003 at 06:29:36PM +0000, Torgeir Veimo wrote:
> > On Thu, 2003-02-06 at 17:47, Jeff Johnson wrote:
> > > On Thu, Feb 06, 2003 at 05:25:35PM +0000, Torgeir Veimo wrote:
> > > > On Thu, 2003-02-06 at 16:29, Jeff Johnson wrote:
> > > > > On Thu, Feb 06, 2003 at 03:59:50PM +0000, Torgeir Veimo wrote:
> > > > > >
> > > > > > db_dump: /var/lib/rpm/Packages: unsupported hash version: 8
> > > > > > db_dump: open: /var/lib/rpm/Packages: Invalid argument
> > > > >
> > > > > You've done a --rebuilddb with rpm-4.2, which uses db-4.1.24, which
> > > > > has bumped the versions on /var/lib/rpm/Packages, and are now using
> > > > > some version of rpm other than rpm-4.2.
> > > >
> > > > rpm is still version 4.2, but db4 seems to be 4.0.14.
> > > >
> > >
> > > Ah, sorry, I missed db_dump was the culprit. Yes, db_dump-4.0.14 ain't
> > > happy with db-4.1.24 input.
> > >
> > > Try /usr/lib/rpm/rpmdb_dump instead, should be exactly db_dump from
>db-4.1.24,
> > > but relinked with -lrpmdb.
> >
> > Thanx,
> >
> > /usr/lib/rpm/rpmdb_dump Packages-ORIG | /usr/lib/rpm/rpmdb_load Packages
> >
> > works without any errors. I then do a rpm -qa which runs flawlessly, but
> > on rpm --rebuilddb I still get this error;
> >
> > [root@atlantis rpm]# rpm --rebuilddb
> > error: db4 error(16) from dbenv->remove: Device or resource busy
>
> Add -vv, if message as at end of --rebuilddb, it's harmless (but scary
>looking).

> >
> > /usr/lib/rpm/rpmdb_dump Packages-ORIG | db_load Packages

Could the faq at rpm.org be updated to include a reference to use
/usr/lib/rpm/rpmdb_dump instead of plain db_dump when there are version
differences, and a note saying that the "Device or resource busy"
message can be ignored when running rpm --rebuilddb?

-- 
Torgeir Veimo <torgeir@pobox.com>

On Sun, 2003-05-11 at 18:26, Jim wrote: > I am having trouble with Redhat rpm installs hanging. I tried rebuilding > the database, and get the following errors. Anyone have any thought? > > Jim >

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon May 12 2003 - 00:45:47 AKDT