While trying to install a package the following error is showed: Status code: 404 for https://HOSTNAME/repodata/repodata/repomd.xml (IP: XXX.XXX.XXX.XXX)

Solution In Progress - Updated -

Issue

  • When running 'dnf' commands like 'dnf repolist -v' or 'dnf install PACKAGE', the following error is displayed:
Errors during downloading metadata for repository 'custom-repo':
  - Status code: 404 for https://HOSTNAME/repodata/repodata/repomd.xml (IP: XXX.XXX.XXX.XXX)
Error: Failed to download metadata for repo 'custom-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@HOSTNAME yum.repos.d]#

Environment

  • Red Hat Enterprise Linux 8+

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