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

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

    Walkthrough Steps

    Running the following command will update the repo to use HTTP rather than HTTPS:

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

    You should then be able to update with this command:

    yum -y update
    
    0 讨论(0)
  • 2020-12-22 18:14

    You just needed to update ca-certificates package. Before that just disable all repos with https that are failing. That's why solution with commenting mirrorlist or using http instead https would work also.

    For example if you need to disable only epel repo:

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

    This will also help wget, curl, and anything else that uses SSL certificates.

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

    Fixed mine like this:

    yum install elfutils-default-yama-scope-0.168-8.el7.noarch --disablerepo=epel
    yum install nss-pem -disablerepo=epel
    yum reinstall ca-certificates --disablerepo=epel
    yum clean all
    rm -rf /var/cache/yum
    yum update`
    
    0 讨论(0)
  • 2020-12-22 18:15

    I solved it by going in /etc/yum.repository.d/. For my case i comment out mirrorlist and uncomenting entries with baseurl. as well as added sslverify=false.

    https://serverfault.com/questions/637549/epel-repo-for-centos-6-causing-error

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

    Updating curl worked for us. Somehow yum uses curl for its transactions.

    yum update curl --disablerepo=epel
    
    0 讨论(0)
  • 2020-12-22 18:17

    I solved this problem by this solution.

    you just change in this file /etc/yum.repos.d/epel.repo

    mirrorlist= change this url https to http

    baseurl= change this url https to http

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