Installation of xguest package fails when the selinux-policy-targeted package is not installed

Solution Unverified - Updated -

Issue

  • Installation of xguest package fails when the selinux-policy-targeted package is not installed
  • This problem may be hit in two different scenarios:

    1. 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.

  1. 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content