Symptoms
I use FedoraCore5 or FedoraCore6 and SELinux runs in Enforcing mode. Cannot install Plesk Expand with Autoinstaller.
Cause
The following error is generated when try installation of Plesk Expand via Autoinstaller:
error: %trigger(expand-locale-base-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 20. Installing package checkpolicy
[AI::RPM] 21. Installing package expand-dist-repository
[AI::RPM] 22. Installing package expand-locale-de-DE
error: %post(expand-locale-de-DE-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 23. Installing package expand-locale-es-ES
error: %post(expand-locale-es-ES-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 24. Installing package expand-locale-fr-FR
error: %post(expand-locale-fr-FR-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 25. Installing package expand-locale-ja-JP
error: %post(expand-locale-ja-JP-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 26. Installing package expand-locale-ru-RU
error: %post(expand-locale-ru-RU-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 27. Installing package expand-locale-zh-CN
error: %post(expand-locale-zh-CN-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 28. Installing package expand-locale-zh-TW
error: %post(expand-locale-zh-TW-2.3.2-080905.noarch) scriptlet failed, exit status 255
error: %pre(expand-selinux-support-2.3.2-8.noarch) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping
expand-selinux-support-2.3.2-8
[AI::RPM] 20. Installing package checkpolicy
[AI::RPM] 21. Installing package expand-dist-repository
[AI::RPM] 22. Installing package expand-locale-de-DE
error: %post(expand-locale-de-DE-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 23. Installing package expand-locale-es-ES
error: %post(expand-locale-es-ES-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 24. Installing package expand-locale-fr-FR
error: %post(expand-locale-fr-FR-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 25. Installing package expand-locale-ja-JP
error: %post(expand-locale-ja-JP-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 26. Installing package expand-locale-ru-RU
error: %post(expand-locale-ru-RU-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 27. Installing package expand-locale-zh-CN
error: %post(expand-locale-zh-CN-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 28. Installing package expand-locale-zh-TW
error: %post(expand-locale-zh-TW-2.3.2-080905.noarch) scriptlet failed, exit status 255
error: %pre(expand-selinux-support-2.3.2-8.noarch) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping
expand-selinux-support-2.3.2-8
SELinux runs in Enforcing mode and uses targeted policy.
~# getenforce
Enforcing
~#
The following packages are installed:
selinux-policy-2.2.23-15
selinux-policy-targeted-2.2.23-15
The problem is caused by incorrect SELinux targeted policy set by old package selinux-policy-targeted.
Resolution
In order to install Plesk Expand via Autoinstaller on server with enabled SELinux package selinux-policy-targeted should be upgraded to version 2.4.6 or higher.Alternatively you may change SELinux mode to Permissive with setenforce 0 or disable it.
To disable SELinux you should change it state in /etc/selinux/conf and reboot the server:
/etc/selinux/conf
....................
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
....................