Installation of xguest package fails when the selinux-policy-targeted package is not installed
Issue
- Installation of xguest package fails when the selinux-policy-targeted package is not installed
-
This problem may be hit in two different scenarios:
-
During installation of a fresh system, the kernel parameter selinux=0 is used, thus disabling selinux. At the same time, the xguest package is selected for installation. The error seen during installation is:
A fatal error occurred when installing the xguest package. This could indicate errors when reading the installation media. Installation cannot continue.
-
-
On an existing system, selinux is disabled or the selinux-policy-targeted package is not installed. In such a case, the following error is seen:
Error in PREIN scriptlet in rpm package xguest-1.0.9-2.el6.noarch
libsemanage.semanage_install_active: Could not copy /etc/selinux/targeted/modules/active/policy.kern to /etc/selinux/targeted/policy/policy.24. (No such file or directory).
libsemanage.semanage_install_active: Could not copy /etc/selinux/targeted/modules/active/policy.kern to /etc/selinux/targeted/policy/policy.24. (No such file or directory).
/usr/sbin/semanage: Could not commit semanage transaction
error: %pre(xguest-1.0.9-2.el6.noarch) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping xguest-1.0.9-2.el6
Environment
- Red Hat Enterprise Linux 6
- xguest
- SELinux disabled and/or selinux packages are not installed
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
