Home » 

Expected Valid RedHat Repo Unavailable - Knowledge Base

 

Required Red Hat repository information is not available in any repository file within the /etc/yum.repos.d/ directory.

Problem:

You receive an error message "Required Red Hat repository information is not available in any repository file within the /etc/yum.repos.d/ directory" while installing the patches or scanning the systems on your network computers using Endpoint Central.

Cause:

  1. The EC agent validates the Red Hat subscription by checking the entitlement certificates' expiry details.
  2. These entitlement details are derived from the repository (.repo) files configured on the machine.
  3. The EC agent looks for a valid Red Hat repo that meets all these criteria:
    • Only .repo files are considered.
    • Repo name must include "red hat enterprise linux".
    • Repo details must include sslclientcert information.
    • Beta & debug repositories are excluded.
  4. If no repository configuration file matches these criteria, then this error occurs.

Resolution:

  1. Verify the repository configuration filesavailable in /etc/yum.repos.d directory, having entries below:
    • Standard Subscription
[rhel-8-for-x86_64-appstream-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
baseurl = https://cdn.redhat.com/<redacted-url>
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify = 1
sslcacert = /etc/rhsm/ca/<ca-cert>.pem
sslclientkey = /etc/pki/entitlement/<client-key>.pem
sslclientcert = /etc/pki/entitlement/<client-cert>.pem
metadata_expire = 86400
enabled_metadata = 1
    • RHUI Subscription
[rhel-8-appstream-rhui-rpms]
name=Red Hat Enterprise Linux 8 for $basearch - AppStream from RHUI (RPMs)
mirrorlist=https://<redacted-url>
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify=1
sslclientkey=/etc/pki/rhui/<client-key>.key
sslclientcert=/etc/pki/rhui/product/<client-cert>.crt
sslcacert=/etc/pki/rhui/<ca-cert>.crt
  1. If you donot have a standard/RHUI subscription or the mentioned criteria are met but you're still seeing this error, please contact support with the following details:
    • A zipped archive of your /etc/yum.repos.d/ directory
    • Subscription details:
      1. Run sudo subscription-manager list --available --all >> subscription.txt and share the subscription.txt file.
      2. Share the entitlement.txt file:
        • Standard subscription: sudo rct cat-cert /etc/pki/entitlement/<client-cert>.pem >> entitlement.txt
        • RHUI subscription: sudo rct cat-cert /etc/pki/rhui/product/<client-cert>.crt >> entitlement.txt
      3. Run sudo subscription-manager status and share a screenshot
      4. Linux agent logs