阿里云CentOS Yum 出现Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge

Q:

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://apt.sw.be/redhat/el6/en/mirrors-rpmforge error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.
Please verify its path and try again

A :
1. vim /etc/yum.repos.d/rpmforge.repo
2. 修改[rpmforget]中的enable的值为0
阿里云CentOS Yum 出现Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge_第1张图片

你可能感兴趣的:(Linux)