yum错误Cannot retrieve metalink for repository: epel/x86_6

yum安装epel-release后yum安装软件报错

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

原因是epel仓库默认使用https

解决方法:

改epel文件,将https改为http

sed -i 's#https://#http://#g' /etc/yum.repos.d/epel*repo

原文地址:https://www.cnblogs.com/tiantianhappy/p/13166279.html