Any yum/dnf command fails with 'status code 404 Error: Failed to download metadata for repo'
Issue
- On the host registered to the Red Hat Satellite/Capsule 6, any
yum/dnfcommand fails with the following error:
[root@client ~]# dnf update
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
Environment
- Red Hat Satellite 6
- Red Hat Capsule 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.