Receiving "Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6" when using yum-rhn-plugin from Oracle linux repository

Solution Verified - Updated -

Issue

  • Cannot download updates from Red Hat Network (RHN)
  • yum repolist fails, mentioning repomd.xml:
Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again
  • yum repolist succeeds, but shows zero packages available:
repo id              repo name                                            status
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86      0
repolist: 0

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Network Classic
  • yum-rhn-plugin not shipped by Red Hat

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