yum check-update fails; error in /etc/yum.repos.d/redhat.repo file

Latest response

Running RHEL 6.8

  • subscription-manager-1.16.8-8.el6.x86_64
  • yum-3.2.29-75.el6_8.noarch

Subscription status is Current.

If I do "yum check-update", I get:

Loaded plugins: fastestmirror, priorities, product-id, refresh-packagekit, search-disabled-repos, security,
              : subscription-manager
Loading mirror speeds from cached hostfile
https://cdn.redhat.com/content/dist/rhel/server/6/7.7/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-6-server-rpms. Please verify its path and try again

If I check the enabled repo, it seems to have an error:

+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-6-server-rpms
Repo Name: Red Hat Enterprise Linux 6 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/6/7.7/$basearch/os
Enabled:   1

The error is in the URL: shouldn't the "7.7" instead be "6.8"? If I uninstall subscription manager, use a copy of the redhat.repo file, but edit it to replace the 7.7 with 6.8, then everything works fine.

Responses