Some of you will have noticed I had some problems with scripts when
installing seamonkey.
I have it with AdobeReader too:
sudo rpm -Uvvv downloads/AdobeReader_enu-7.0.9-1.i386.rpm 2>&1 | less
...
Preparing packages for installation...
D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
D: ========== +++ AdobeReader_enu-7.0.9-1 i386-linux 0x1
D: Expected size: 43915056 = lead(96)+sigs(180)+pad(4)+data(43914776)
D: Actual size: 43915056
D: AdobeReader_enu-7.0.9-1: Header SHA1 digest: OK
(0d5e873fa8a74542544c1c405f970c8b8983e0e5)
D: install: AdobeReader_enu-7.0.9-1 has 341 files, test = 0
D: install: %pre(AdobeReader_enu-7.0.9-1.i386) asynchronous scriptlet
start
D: install: %pre(AdobeReader_enu-7.0.9-1.i386) execv(/bin/sh)
pid 18807
D: install: waitpid(18807) rc 18807 status ff00 secs 0.014
error: %pre(AdobeReader_enu-7.0.9-1.i386) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping
AdobeReader_enu-7.0.9-1
D: running post-transaction scripts
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
There's the exit status 255 again!
There doesn't seem to be much of a %preinstall script:
17:39 [summer@Numbat ~]$ rpm -qp --scripts
downloads/AdobeReader_enu-7.0.9-1.i386.rpm | head
preinstall program: /bin/sh
postinstall scriptlet (using /bin/sh):
UpdateOldGnomeFile()
{
awk '
BEGIN { state = 0; }
/^application\/pdf$/ {
state = 1;
.. etc
17:39 [summer@Numbat ~]$
Here's what strace shows:
sudo strace -f -o /tmp/trace rpm -Uvvv \
downloads/AdobeReader_enu-7.0.9-1.i386.rpm
10040 close(9) = 0
10040 socket(PF_FILE, SOCK_STREAM, 0) = 9
10040 connect(9, {sa_family=AF_FILE,
path="/var/run/setrans/.setrans-unix"}, 110) = 0
10040 sendmsg(9, {msg_name(0)=NULL, msg_iov(5)=[{"\3\0\0\0", 4},
{"4\0\0\0", 4}, {"\1\0\0\0", 4}, {"system_u:system_r:rpm_script_t:S"...,
52}, {"\0", 1}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 65
10040 readv(9, [{"\3\0\0\0", 4}, {".\0\0\0", 4}, {"\0\0\0\0", 4}], 3) = 12
10040 readv(9, [{"system_u:system_r:rpm_script_t:s"..., 46}], 1) = 46
10040 close(9) = 0
10040 gettid() = 10040
10040 open("/proc/self/task/10040/attr/exec", O_RDWR|O_LARGEFILE) = 9
10040 write(9, "system_u:system_r:rpm_script_t:s"..., 46) = 46
10040 close(9) = 0
10040 execve("/bin/sh", ["/bin/sh"], [/* 22 vars */]) = -1 EACCES
(Permission denied)
10040 exit_group(-1) = ?
9942 <... futex resumed> ) = -1 EINTR (Interrupted system call)
9942 --- SIGCHLD (Child exited) @ 0 (0) ---
9942 waitpid(0, [{WIFEXITED(s) && WEXITSTATUS(s) == 255}], WNOHANG) = 10040
9942 futex(0x9adc0cc, FUTEX_WAKE, 1) = 0
9942 waitpid(0, 0xbfc1ce08, WNOHANG) = -1 ECHILD (No child processes)
9942 rt_sigreturn(0x9adc0cc) = -1 EINTR (Interrupted system call)
9942 rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
9942 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
9942 rt_sigprocmask(SIG_SETMASK, NULL, [CHLD], 8) = 0
Permission denied?
All looks good to me:
17:43 [root@Numbat ~]# ls -Zl /bin/sh
lrwxrwxrwx 1 system_u:object_r:bin_t root root 4 Jun 15 10:36
/bin/sh -> bash
17:43 [root@Numbat ~]# ls -Zl /bin/sh /bin/bash
-rwxr-xr-x 1 system_u:object_r:shell_exec_t root root 722716 Mar 24
07:46 /bin/bash
lrwxrwxrwx 1 system_u:object_r:bin_t root root 4 Jun 15
10:36 /bin/sh -> bash
17:43 [root@Numbat ~]# rpm -Vf /bin/bash
prelink: /bin/bash: at least one of file's dependencies has changed
since prelinking
S.?..... /bin/bash
17:45 [root@Numbat ~]#
except maybe that prelink, and that doesn't want to go away:
18:01 [root@Numbat ~]# time prelink --all
prelink: /usr/lib/seamonkey-1.1.2/regchrome: Could not find one of the
dependencies
prelink: /usr/lib/seamonkey-1.1.2/seamonkey-bin: Could not find one of
the dependencies
prelink: Could not find virtual address slot for
/usr/lib/libkdeinit_kedit.so
real 3m16.550s
user 0m2.868s
sys 0m14.961s
18:04 [root@Numbat ~]# rpm -Vf /bin/bash
prelink: /bin/bash: at least one of file's dependencies has changed
since prelinking
S.?..... /bin/bash
18:17 [root@Numbat ~]#
This is my problem:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=892869&admit=-682735245+1182505787226+28353475
but there's no resolution.
--
Cheers
John
-- spambait
[log in to unmask] [log in to unmask]
Please do not reply off-list
|