Yum fails against Red Hat Network (RHN) Hosted with 'Cannot retrieve repository metadata (repomd.xml) for repository' error

Solution Verified - Updated -

Issue

  • Getting following error while running "yum list "
# yum list
Loaded plugins: downloadonly, rhnplugin, security
 Error:
 Cannot retrieve repository metadata (repomd.xml) for repository:
 rhel-x86_64-server-5. Please verify its path and try again

Environment

  • Red Hat Enterprise Linux Server 5
  • Red Hat Enterprise Linux Server 6
  • Red Hat Network (RHN)

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