Re: rpm scriptlet failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 1/8/07, Tony Schreiner <schreian@xxxxxx> wrote:
I have a system (Centos 4.4 all packages uptodate) where almost every
rpm or yum operation fails with a message  like e.g.:

error: %preun(a2ps-4.13b-41.i386) scriptlet failed, exit status 255

some times the error is on %post()

the last few lines of output from

rpm -e -vv a2ps
are
D: ========== --- a2ps-4.13b-41 i386-linux 0x1
D:     erase: a2ps-4.13b-41 has 316 files, test = 0
D: opening  db index       /var/lib/rpm/Name create mode=0x42
D:  read h#    1071 Header V3 DSA signature: OK, key ID 443e1821
D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
D:     erase: %preun(a2ps-4.13b-41.i386) asynchronous scriptlet start
D:     erase: %preun(a2ps-4.13b-41.i386)        execv(/bin/sh) pid 29443
D:     erase: waitpid(29443) rc 29443 status ff00 secs 0.001
error: %preun(a2ps-4.13b-41.i386) scriptlet failed, exit status 255
D: closed   db index       /var/lib/rpm/Triggername
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

I can do the install /remove/update with --noscripts, but that
doesn't seem like a good idea.

rpm --rebuilddb has not helped

selinux is enabled but permissive.

I've seen a few mentions of this on google, but found no solution.

Anybody experienced this?

Check the permissions on /tmp and /var/tmp

Check to make sure you have disk space available, at least on /tmp or /var

If it were just one package, you could look at the package scripts
with rpm -q --scripts to see what exactly it's doing. Since you have
more than one package doing it, I suspect permissions errors on /tmp
or /var/tmp


--
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux