Error: Cannot retrieve metalink for repository: epel. Please

Source: Internet
Author: User
Tags metalink

Error: Cannot retrieve metalink for repository: epel. Please

If you use yum for installation today, you may encounter the following problems:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

The process is simple. Modify the file "/etc/yum. repos. d/epel. repo ",

Uncomment the baseurl and comment out the comment list. You can.

Change to the following content:

[Plain] view plaincopy
  1. [Epel]
  2. Name = extrapackagesforcanciselinux6-$ basearch
  3. Baseurl = http://download.fedoraproject.org/pub/epel/6/?basearch
  4. # Items list = https://mirrors.fedoraproject.org/metalink? Epel-6 & arch = $ basearch
  5. Failovermethod = priority
  6. Enabled = 1
  7. Gpgcheck = 1
  8. Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Provides a lazy comment method:

[Plain] view plaincopy
  1. Su-c "sed-I's | ^ # baseurl |; s | ^ sort list | # Sort list | '/etc/yum. repos. d /*"

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.