Cannot retrieve Metalink for repository Epel. Verify its path and try again

Source: Internet
Author: User
Tags gpg metalink

The solve this problem has a methods:

1.Through command Line

Running This command would 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 is able to the update with the This command:

Yum -y update

2.Through configutation File:

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

Remove the # before the BaseURL which is under Epel,add the # before Mirrorlist and then is OK:

[Epel]name  for 6 - $basearchbaseurl=http://download.fedoraproject.org/pub/epel/6/$basearch# Mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearch failovermethod=priorityenabled=1Gpgcheck=1gpgkey=file ://etc/pki/rpm-gpg/rpm-gpg-key-epel-6

Then run command line:

Yum Makecache

Cannot retrieve Metalink for repository Epel. Verify its path and try again

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.