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

前端 未结 21 846
一生所求
一生所求 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:18

    I solved this issue editing both /etc/yum.repos.d/epel.repo and /etc/yum.repos.d/epel-testing.repo files, commenting all entries starting with mirrorlist=... and uncommenting all the entries starting with baseurl=....

    0 讨论(0)
  • 2020-12-22 18:19

    For my case commenting out mirrorlist and uncomenting entries with baseurl din't work. I noticed the problem was with the https iniside the .repofedora files. I solved it by going in /etc/yum.repository.d and replacing all https with http in different .repo files. That worked!!

    0 讨论(0)
  • 2020-12-22 18:21

    You may come across this message/error, after installing epel-release. The quick fix is to update your SSL certificates:

    yum -y upgrade ca-certificates
    

    Chances are the above error may also occur while certificate update, if so, just disable the epel repo i.e. use the following command:

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

    Once the certificates will be updated, you'll be able to use yum normally, even the epel repo will work fine. In case you're getting this same error for a different repo, just put it's name against the --disablerepo=<repo-name> flag.


    Note: use sudo if you're not the root user.

    0 讨论(0)
  • 2020-12-22 18:21

    Changing the mirrorlist URL from https to http fixed the issue for me.

    0 讨论(0)
  • 2020-12-22 18:22

    use this command:

    sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
    

    or alternatively use command

    vi /etc/yum.repos.d/epel.repo
    

    go to line number 4 and change the url from

    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
    

    to

    mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
    
    0 讨论(0)
  • 2020-12-22 18:24

    Another possible cause is that your architecture is not supported. I ran into this because I was provided with a CentOS VM, wanted to install EPEL and couldn't for the life of me get it done.

    Turns out the VM was CentOS 7 i386, which is an architecture that is apparently no longer supported by EPEL. I guess the only remedy in this case is to reinstall.

    0 讨论(0)
提交回复
热议问题