When you execute the yum command, you will be prompted
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: problem making ssl connection
The solution is to comment out mirrorlist
from the [epel]
node in the /etc/yum.repos.d/epel.repo
file, and baseurl
to remove the comment,enable
. code>enable with a value of 1
command:
Open the /etc/yum.repos.d/epel.repo
file with the vim editor
vim /etc/yum.repos.d/epel.repo
Will
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
# baseurl Remove the # sign before
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
# mirrorlist 前加#好
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
# enable change to 1
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
After modifying the EPEL. Repo
file, try the Yum
command again, such as:
yum list php
Similar Posts:
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- [Solved] Cannot retrieve metalink for repository: epel
- [Solved] Centos6.8 yum Error: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
- [Solved] Yum makecache Error: Error: Cannot retrieve repository metadata (repomd.xml)
- When centos7 uses yum, file contains no section headers
- This system is not registered with an entitlement server. You can use subscription-manager to reg…
- [Solved] PHP Compile error: error adding symbols: DSO missing from command line
- Centos6.8 yum Error & Fix YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
- Yum installer reported an error: nothing to do [How to Solve]
- Installing iperf on CentOS