yum upgrade errors : %postun

Jeff Spaleta jspaleta at gmail.com
Sat May 14 13:40:35 UTC 2005


On 5/12/05, mbneto <mbneto at gmail.com> wrote:
> Hi,
> 
> it has been a while that i can't yum upgrade because of errors.
> 
> All rpms installed complain about %postrun errors.

Have you filled up a system partition perhaps?

well.. first thing you can do is attempt to recreate the problem using
rpm command directly instead of yum. You'll find the rawhide updates
that you downloaded, cached in /var/cache/yum/development/packages

If the errors still occure when using rpm directly... then you can
look at the scripts in the package  for example:
rpm -q --scripts -p /pathto/rpm-4.4.1-18.1.i386.rpm

Since your error is a "pre" error and not a "post" error for the rpm
package you should concentrate on the preinstall scriptlet for
rpm-4.4.1-18.1.i386.rpm, and attempt to find which command in the
preinstall scriptlet is failing.  The scriptlet is just a series of
shell commands
using /bin/sh  as the shell.  You can go through the scriptlet one
shell command at a time and find which command is failing. That will
most likely point you to a problem with your system.

For completeness here is the part of the rm -q --scripts -p
/pathto/rpm-4.4.1-18.1.i386.rpm
that you are interested in:

preinstall scriptlet (using /bin/sh):   <-this is the section header,
shell commands start below
if [ -f /var/lib/rpm/packages.rpm ]; then   
    echo "
You have (unsupported)
        /var/lib/rpm/packages.rpm       db1 format installed package headers
Please install rpm-4.0.4 first, and do
        rpm --rebuilddb
to convert your database from db1 to db3 format.
"
    exit 1
fi
/usr/sbin/groupadd -g 37 rpm                            > /dev/null 2>&1
/usr/sbin/useradd  -r -d /var/lib/rpm -u 37 -g 37 rpm -s /sbin/nologin
 > /dev/null 2>&1
exit 0


-jef




More information about the fedora-devel-list mailing list