解决yum安装出现错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again

今天利用yum源安装docker的时候出现的问题:

错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again


解决方法:编辑此文件vi /etc/yum.repos.d/epel.repo 


注释撤销:baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

加上注释:#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

你可能感兴趣的:(解决yum安装出现错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again)