EPEL 8 fails with 404

Solution Verified - Updated -

Issue

When releasever is set to anything other than 8, epel repositories are not accessible

[root@r8 ~]# dnf -y --enablerepo=epel install ansible
Extra Packages for Enterprise Linux Modular 8.4 - x86_64                                                                                                       12 kB/s |  70 kB     00:05
Errors during downloading metadata for repository 'epel-modular':
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8.4&arch=x86_64&infra=$infra&content=$contentdir
Error: Failed to download metadata for repo 'epel-modular': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8.4&arch=x86_64&infra=$infra&content=$contentdir

Environment

  • Red Hat Enterprise Linux 8
  • Azure Systems
  • RHUI Clients
  • EPEL

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