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)
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.