Random rpm script failures

Michal Jaegermann michal at harddata.com
Sun Nov 6 00:08:03 UTC 2005


On Sat, Nov 05, 2005 at 04:13:55PM -0500, Ivan Gyurdiev wrote:
> Rawhide...I've been seeing random script failures like this: exit code 255.
..... 
> error: %post(libcap-1.10-23.i386) scriptlet failed, exit status 255
>   2:libgtk-java            ########################################### 
> [ 33%]
> error: %post(libgtk-java-2.8.1-1.i386) scriptlet failed, exit status 255

That may be related to messed up "alternatives". 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=171843
was already mentioned today.  See discussion there.

> 
> [root at cobra packages]# rpm -q tar --scripts
> postinstall scriptlet (using /bin/sh):
> /sbin/install-info /usr/share/info/tar.info.gz /usr/share/info/dir
> preuninstall scriptlet (using /bin/sh):
> if [ $1 = 0 ]; then
>   /sbin/install-info --delete /usr/share/info/tar.info.gz 
> /usr/share/info/dir
> fi
....
> ... but now I'm starting to 
> suspect that only my system is broken...  ideas?

Did you try saving such failig scripts to a file, editing results
accordingly so that will be indeed a correct script to run and
running that?  Possibly with 'sh -x ...'?  This may provide you with
some clues why things are unhappy on your system.  My particular
test boxes seem to be doing mostly ok.

   Michal




More information about the test mailing list