dev rpm update problem

Mircea MITU mmitu at bitdefender.com
Sat Sep 11 06:49:49 UTC 2004


> I get this error when updating to dev-3.11-1:
> 
> Cannot install the dev package: mounted devfs detected.
> error: %pre(dev-3.11-1) scriptlet failed, exit status 1
> error:   install: %pre scriptlet failed (2), skipping dev-3.11-1
> 
> I know this was happening previously with the MAKEDEV rpm, but it seems
> like it was solved in that case (by removing the %pre script?).
> 
> Anyway, how do I upgrade the package? Is this a bug? 

I had the same problem but upgrading from dev-3.11-1 to dev-3.12-1

The pre-install script of the rpm is looking for devfs into /proc/mounts
and it founds none /dev tmpfs rw 0 0

I did succeed to upgrade by executing the pre-install script by hand,
ignoring the devfs check (

#if [ -r /proc/mounts ]; then
#    while read source mountpoint rest ; do
#        if [ "$mountpoint" = "/dev" ]; then
#            echo $"Cannot install the dev package: mounted devfs detected."
#            exit 1
#        fi
#    done < /proc/mounts
#fi

[ -d /dev ] || /bin/mkdir /dev
/usr/sbin/groupadd -g 19 -r -f floppy > /dev/null 2>/dev/null
/usr/sbin/useradd -c "virtual console memory owner" -u 69 \
        -s /sbin/nologin -r -d /dev vcsa 2> /dev/null
)
and then using --nopre rpm option
rpm -Uvh dev-3.12-1.i386.rpm --nopre




--
This message was scanned for spam and viruses by BitDefender
For more information please visit http://linux.bitdefender.com/







More information about the fedora-devel-list mailing list