If you use yum for installation today, you may encounter the following problem: Error: Cannotretrievemetalinkforrepository: epel. pleaseverifyitspathandtryagain is easy to process. modify the file & ldquo;/etc/yum. repos. d/epel. repo & rdquo;, uncomment the baseurl, and cancel L
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 = Extra Packages for Enterprise Linux 6-$ 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 /*"