Yum command fails with 'status code 404 Error: Failed to download metadata for repo'

Solution Verified - Updated -

Issue

  • On the clients registered to the Satellite server, yum commands fails with the below error.
[root@client ~]#  yum update --exclude=kernel*
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                        117  B/s |  14  B     00:00
Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-rpms':
  - Status code: 404 for https://satellite.example.com/pulp/content/Org/Library/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: xx.xxx.xxx.xxx)
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
  • Errors during downloading metadata for repository 'codeready-builder-for-rhel-8-x86_64-rpms':
- Status code: 404 for https://satellite.example.com/pulp/content/Organization-test/pre-production/CV-test/content/dist/rhel8/8.6/x86_64/codeready-builder/os/repodata/repomd.xml (IP: 172.21.27.41)
Error: Failed to download metadata for repo 'codeready-builder-for-rhel-8-x86_64-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Environment

  • Red Hat Satellite 6

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