[Resolved] Epel Repository Failing

General support questions
gw1500se
Posts: 222
Joined: 2012/05/07 13:53:35

[Resolved] Epel Repository Failing

Post by gw1500se » 2021/10/20 04:27:12

I am suddenly unable to update from the epel repository. When I run yum update I get this error:

Loaded plugins: fastestmirror, langpacks, verify
Loading mirror speeds from cached hostfile


One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

I cannot find any info on any new base url. What happened to the epel repository? TIA.
Last edited by gw1500se on 2021/11/05 11:03:06, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Epel Repository Failing

Post by TrevorH » 2021/10/20 12:13:04

EPEL is not a CentOS repo, you need to report problems with it via bugzilla.redhat.com in the Fedora EPEL section. There are also EPEL mailing lists and an #epel channel on libera.chat IRC.

Before you do anything else, try `yum clean all` then retry.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gw1500se
Posts: 222
Joined: 2012/05/07 13:53:35

Re: Epel Repository Failing

Post by gw1500se » 2021/10/21 18:16:15

Will do. Thanks.

gw1500se
Posts: 222
Joined: 2012/05/07 13:53:35

Re: Epel Repository Failing

Post by gw1500se » 2021/10/28 15:32:40

After extensive investigation via the epel folks it was determined this is indeed a CentOS 7 problem. It has something to with the ca-certificates which were reinstalled but to no avail.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Epel Repository Failing

Post by TrevorH » 2021/10/28 15:44:37

What is the output from rpm -q ca-certificates
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gw1500se
Posts: 222
Joined: 2012/05/07 13:53:35

Re: Epel Repository Failing

Post by gw1500se » 2021/10/28 16:00:26

ca-certificates-2021.2.50-72.el7_9.noarch

As far as I can tell that is the latest.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Epel Repository Failing

Post by TrevorH » 2021/10/28 16:41:30

And which EPEL mirror exactly do you get this problem with? I can connect to all the ones I've tried.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gw1500se
Posts: 222
Joined: 2012/05/07 13:53:35

Re: Epel Repository Failing

Post by gw1500se » 2021/10/28 17:52:02

Not sure. Here is the epel.repo:

Code: Select all

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=http://download.example/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=http://download.example/pub/epel/7/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place it's address here.
#baseurl=http://download.example/pub/epel/7/source/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Epel Repository Failing

Post by TrevorH » 2021/10/28 18:20:03

Look at the errors you get, they will give the url the problem repos.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gw1500se
Posts: 222
Joined: 2012/05/07 13:53:35

Re: Epel Repository Failing

Post by gw1500se » 2021/10/28 18:26:45

My OP has the error. It doesn't help me other than it is a epel repo.

Post Reply