Red Hat Satellite or Capsule Server upgrade failed with an error cannot install the best update candidate for package pulpcore-selinux-1.3.3-1.el8pc.x86_64 or cannot install the best update candidate for package candlepin-selinux-4.1.15-1.el8sat.noarch.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6
  • Red Hat Enterprise Linux 8

Issue

  • Unable to upgrade Red Hat Satellite to v6.12 due to dependency issue.

  • Upgrade to v6.12 of Red Hat Satellite server fails with the following error:

      Error:
      Problem 1: cannot install the best update candidate for package candlepin-selinux-4.1.14-1.el8sat.noarch
     - nothing provides selinux-policy >= 3.14.3-108.el8 needed by candlepin-selinux-4.1.18-1.el8sat.noarch
    Problem 2: package katello-selinux-4.0.2-2.el8sat.noarch requires candlepin-selinux >= 3.1.10, but none of the providers can be installed
     - package candlepin-selinux-4.1.14-1.el8sat.noarch requires candlepin = 4.1.14-1.el8sat, but none of the providers can be installed
     - package candlepin-selinux-4.1.15-1.el8sat.noarch requires candlepin = 4.1.15-1.el8sat, but none of the providers can be installed
     - cannot install both candlepin-4.1.18-1.el8sat.noarch and candlepin-4.1.14-1.el8sat.noarch
     - cannot install both candlepin-4.1.18-1.el8sat.noarch and candlepin-4.1.15-1.el8sat.noarch
     - cannot install the best update candidate for package katello-selinux-4.0.2-2.el8sat.noarch
     - cannot install the best update candidate for package candlepin-4.1.14-1.el8sat.noarch
     - nothing provides selinux-policy >= 3.14.3-108.el8 needed by candlepin-selinux-4.1.18-1.el8sat.noarch
    
  • Upgrade of Red Hat Satellite/Capsule server fails with the following error:

      Problem: cannot install the best update candidate for package pulpcore-selinux-1.3.3-1.el8pc.x86_64
     - nothing provides selinux-policy >= 3.14.3-128.el8 needed by pulpcore-selinux-2.0.0-1.el8pc.x86_64
    

Resolution

Workaround

  • Ensure that the post-upgrade tasks are performed on the Satellite server after the in-place upgrade to RHEL 8.

  • Unset the release on Red Hat Satellite server using the following command.

    # subscription-manager release --unset
    Release preference has been unset
    

For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.

Root Cause

  • If the post-upgrade tasks that include running the subscription-manager release --unset command are not completed on the Satellite, the upgrade to version 6.12 will fail as the dependency for the candlepin package is not available in the minor version repository for version 8.6.
  • When the post-upgrade tasks that include running the subscription-manager release --unset command are not performed on the Red Hat Satellite/Capsule server after performing the in-place upgrade, the upgrade to version will fail as the dependency for the selinux package is not available in the minor version repository for version 8.8.

Diagnostic Steps

  • Verify if release version is set on Red Hat Satellite server using the below command:

      # subscription-manager release --show
      Release: 8.6
    
      # subscription-manager release --show
      Release: 8.8
    
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.