yum error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” updating ContextBroker

前端 未结 21 1045
一生所求
一生所求 2020-12-22 18:00

I\'m trying to update Orion ContextBroker using the command yum install contextBroker. Unfortunatelly I get the following error:

Loaded plugins: fast

21条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 18:35

    In my case when I comment out mirrorlist the error got away but the repo was also not working so I manually point the right baseurl in /etc/yum.repos.d/epel.repo as below

    [epel]
    name=Extra Packages for Enterprise Linux 7 - $basearch
    baseurl=http://iad.mirror.rackspace.com/epel/7Server/x86_64/
    #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
    baseurl=http://iad.mirror.rackspace.com/epel/7Server/x86_64/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
    baseurl=http://iad.mirror.rackspace.com/epel/7Server/SRPMS/
    #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
    
    

提交回复
热议问题