fedora 9: errors from rpm scripts
David Jansen
jansen at strw.leidenuniv.nl
Fri May 16 10:57:33 UTC 2008
After installing Fedora 9 (installation went just fine), I wanted to add
a few more packages.
However, every package I install, gives an error from the scripts
embedded in the rpm. In most cases, it is a line like:
error: %post(nedit-5.5-18.fc9.x86_64) scriptlet failed, exit status 255
and the package seems to be installed anyway.
Listing the scripts (rpm -q --scripts nedit) and executing them by hand,
works fine, no errors, no weird exit status)
In some cases, the problem is worse: the error is already in the
preinstall script, and then the install failes, although yum's messages
seem a bit confused (looking from the last lines, one would assume the
install worked out fine, but actually the package isn't there). Here is
an example:
# yum install epiphany
Loaded plugins: fedorakmod, priorities, refresh-packagekit
fedora | 2.4 kB 00:00
updates | 2.3 kB 00:00
strw-extras | 951 B 00:00
nonfree | 2.1 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package epiphany.x86_64 0:2.22.1.1-1.fc9 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
epiphany x86_64 2.22.1.1-1.fc9 fedora 5.7 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 5.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): epiphany-2.22.1.1-1.fc9.x86_64.rpm | 5.7 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
error: %pre(epiphany-2.22.1.1-1.fc9.x86_64) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping epiphany-2.22.1.1-1.fc9
Installed: epiphany.x86_64 0:2.22.1.1-1.fc9
Complete!
So, at first I assumed my installation went foul somewhere, so I
reinstalled fedora 9, but with the same results. Also, switching SELinux
off made no difference.
Has anyone else encountered this weird situation? Does anyone have a
clue on how to track down the cause of this exit status?
David Jansen
More information about the fedora-list
mailing list