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
- [Epel]
- Name = extrapackagesforcanciselinux6-$ basearch
- Baseurl = http://download.fedoraproject.org/pub/epel/6/?basearch
- # Items list = https://mirrors.fedoraproject.org/metalink? Epel-6 & arch = $ basearch
- Failovermethod = priority
- Enabled = 1
- Gpgcheck = 1
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Provides a lazy comment method:
[Plain] view plaincopy
- Su-c "sed-I's | ^ # baseurl |; s | ^ sort list | # Sort list | '/etc/yum. repos. d /*"