如下图所示,Yum安装epel源的xrdp时出现错误"Cannot retrieve metalink for repository: epel/x86_64.Please verify its path and try again."
解决方法很简单,只需要编辑/etc/yum.repos.d/epel.repo,把baseurl行的注释去掉,并注释metalink行
vim /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7