Cannot retrieve metalink for repository: epel/x86_64

[root@NS7DEV9 ~]# cat /etc/yum.repos.d/epel.repo

[root@mail ~]# cat /etc/yum.repos.d/epel.repo
        [epel]
        name=Extra Packages for Enterprise Linux 7 - $basearch
        #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
        mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
        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
    #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
    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
    #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    gpgcheck=1

you could read this and try some of these workarounds, but I still don’t understand what it occurs

Ok! thx for link! solved!

I run this commands:

yum clean all

yum --disablerepo=“epel” update nss

yum remove epel-release --disablerepo=epel

yum -y upgrade ca-certificates

yum -y upgrade ca-certificates --disablerepo=epel

My file conf “/etc/yum.repos.d/epel.repo” is OK!

THX! :grinning:

1 Like

cool, fine with this. You were unlucky, this error was solved, just with an upgrade on my servers

But
 I install mail servers and i have this error

Can you paste the output of:

yum -v repolist enabled

No, don’t work.

[root@mail ~]# yum -v repolist enabled
Loading “changelog” plugin
Loading “fastestmirror” plugin
Loading “nethserver_events” plugin
Config time: 0.015
Yum version: 3.4.3
Loading mirror speeds from cached hostfile

Repo-id : centos-sclo-rh/x86_64
Repo-name : CentOS-7 - SCLo rh
Repo-revision: 1496795628
Repo-updated : Wed Jun 7 02:35:04 2017
Repo-pkgs : 5,545
Repo-size : 3.7 G
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:15 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

Repo-id : centos-sclo-sclo/x86_64
Repo-name : CentOS-7 - SCLo sclo
Repo-revision: 1495631075
Repo-updated : Wed May 24 15:04:39 2017
Repo-pkgs : 403
Repo-size : 83 M
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:15 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl.repo

Repo-id : extras/7/x86_64
Repo-name : CentOS-7 - Extras
Repo-revision: 1495836674
Repo-updated : Sat May 27 00:12:30 2017
Repo-pkgs : 380
Repo-size : 1.2 G
Repo-mirrors : URL
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:15 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id : nethforge/7/x86_64
Repo-name : NethForge 7
Repo-revision: 1495393992
Repo-updated : Sun May 21 21:13:13 2017
Repo-pkgs : 93
Repo-size : 115 M
Repo-mirrors : URL
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:16 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethForge.repo

Repo-id : nethserver-base/7/x86_64
Repo-name : NethServer-7 - Base
Repo-revision: 1485790173
Repo-updated : Mon Jan 30 16:29:34 2017
Repo-pkgs : 146
Repo-size : 168 M
Repo-mirrors : URL
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:16 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : nethserver-updates/7/x86_64
Repo-name : NethServer-7 - Updates
Repo-revision: 1496930530
Repo-updated : Thu Jun 8 16:02:25 2017
Repo-pkgs : 182
Repo-size : 483 M
Repo-mirrors : URL
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:17 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : updates/7/x86_64
Repo-name : CentOS-7 - Updates
Repo-revision: 1496671783
Repo-updated : Mon Jun 5 16:14:18 2017
Repo-pkgs : 1,851
Repo-size : 5.8 G
Repo-mirrors : URL
Repo-baseurl : URL
Repo-expire : 21,600 second(s) (last: Fri Jun 9 18:06:17 2017)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

repolist: 17,963

what did you play with your server ?

what is the history ?

If it is a server of tests, probably the reinstallation is the faster way.

The EPEL repo was removed or is not enabled. So maybe the original problem was not really fixed (but omitted).

yum install epel-release

As Stéphane says, a full server reinstallation could also work.

I installed it three times!
I always have the problem!

what is the Iso you used ?

i run “yum install epel-release”, problem first!

I installed it in VM and in the physical machine, but always the first problem!

???

sorry, lso? I do not understand


sorry ISO
 lol

what is the ISO you used to install nethserver

yes, yes
 I was distracted
 sorry!
nethserver-7.3.1611-x86_64.iso