yum/rpm hosed me yesterday

Chuck Campbell campbell at accelinc.com
Thu May 6 19:59:35 UTC 2004


On Thu, May 06, 2004 at 12:42:34PM -0700, J. Nyhuis wrote:
> On Thu, 6 May 2004, Chuck Campbell wrote:
> > I installed yum on my rh9 box, and it looked like it was working.
> > At least yum check-updates showed a lot of packages for me to update.
> > I saw that rpm was on the list, so I did yum update rpm*
> > It went through all of its steps without errors, and I thought "this is
> > the best thing since sliced bread"
> >
> > I did rpm -qa | grep rpm to verify the current version and I get this:
> > rpmdb: unable to join the environment
> > error: db4 error(11) from dbenv->open: Resource temporarily unavailable
> > error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
> > error: cannot open Packages database in /var/lib/rpm
> > Now it appears I'm stuffed.  What do I do next?
> > -chuck
> 
> 	I've never seen that happen before, but some basic things to
> check...
> 
> 1.	does /var/lib/rpm exist and have permissions that allow it to be
> accessed?  does /var have space for the files yum needs?  'df'

exists, is accessible and populated.  /var/cache is over 100 Mb, can this be
moved and linked to?  There is space left on /var, but only 50Mb

> 
> 2.	did you try a 'yum clean all' to remove all the old
> (possibly corrupt) packages you downloaded and try to start over with an
> yum update?

Not yet, but I found this:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=92247

it says:

    Additional Comment #2 From Jeff Johnson on 2003-06-05 07:37 

    Yup, kernel has new semantics for O_DIRECT thereby
    breaking rpm.

    Adding LD_ASSUME_KERNEL=2.2.5 should fix sufficiently
    to upgrade to rpm-4.2-1 packages at
        ftp://ftp.rpm.org/pub/rpm/dist
    which have better fix.

I did add LD_ASSUME_KERNEL=2.2.5 and a rpm -qa works again.

What to do to fix this correctly now?

-chuck





More information about the Redhat-install-list mailing list