Yum appears when installing: Cannot retrieve Metalink for Repository:epel. Verify its path and try again

Source: Internet
Author: User
Tags metalink

There was a problem installing php-mcrypt under CentOS 6.3 x86_64: Error:cannot retrieve Metalink for Repository:epel. Verify its path and try again, you need to install the Epel source.

Solution: A sentence: The/etc/yum.repos.d/epel.repo, the document 3rd line of comments removed, the fourth line comment out. Specific as follows:

Open the/etc/yum.repos.d/epel.repo and

    1. [epel
    2. name=extra  packages for  enterprise linux  6 -  $basearch
    3. #baseurl =http://download.fedoraproject.org/pub/epel/6/$basearch
    4. mirrorlist=https ://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearch

Modify to

    1. [epel
    2. name=extra  packages for  enterprise linux  6 -  $basearch
    3. baseurl=http ://download.fedoraproject.org/pub/epel/6/$basearch
    4. #mirrorlist =https://mirrors.fedoraproject.org/metalink?repo=epel-6& Arch= $basearch

Re-clean source, reinstall

    1. Yum Clean All
    2. The package that Yum Install-y needs

If not, modify DNS to add it under/etc/resolv.conf:

NameServer 8.8.8.8
Search Localdomain

Then restart the Network Service: Service network restart

Yum appears when installing: 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.