centos下yum安装wget失败

执行了yum -y install wget后得到下面的提示

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

vim/etc/yum.repos.d/epel.repo

将baseurl的注释取消 , mirrorlist注释掉

原文地址:https://www.cnblogs.com/taojintianxia/p/5000227.html