在linux中通过yum安装软件时出错

错误如下:

Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
 

解决方案:来自stackOverflow:

就是将打开 /etc/yum.repos.d/epel.repo 这个文件,将里面的https改为http即可,亲测可用