Recently site http://apt.sw.be/redhat/el5/en/mirrors-rpmforge went down and this broke my YUM. Here is the error:
Setting up repositories
Could not retrieve mirrorlist http://apt.sw.be/redhat/el5/en/mirrors-rpmforge error was
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Error: Cannot find a valid baseurl for repo: rpmforge
As a solution I’ve edited manually my /etc/yum.repos.d/mirrors-rpmforge
And commented out problem site.
Then edited /etc/yum.repos.d/rpmforge.repo
And commented live list and uncommented file. Like this
#mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
Now YUM it is back. Still get some mirroring errors, but at least I can use it.