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

vi /etc/yum.repos.d/mirrors-rpmforge

And commented out problem site.

Then edited /etc/yum.repos.d/rpmforge.repo

vi /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.

Comments

4 Responses to “How to fix problems with RPMforge”

  1. Nowyaz on April 11th, 2010 12:01 am

    Thanks man this helped me out so much, I really appreciate it.

  2. Navid on September 2nd, 2010 7:20 pm

    Thanks that worked for me!

  3. Navid on September 2nd, 2010 7:21 pm

    Once again thanks, I could fix the issue with Could not retrieve mirrorlist

  4. malick on June 19th, 2012 11:01 am

    thank you!

Leave a Reply