YUM Problem

Every day (most every day) I run the same old command “sudo yum update”.  But the last few days (since my return from visiting the family) I’ve been getting the YUM problem

sudo yum update
[sudo] password for jernstberger:
Loaded plugins: dellsysidplugin2, fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again

So I do what every good member of my generation does:  I google (used as a verb) the error.  I stumble across a few links that aren’t very helpful.  However, I finally find http://www.fedoraforum.org/forum/showthread.php?t=224988.  The member opening the thread has the same problem.  Similarly to the initial poster, I could verify working DNS servers and routes working fine.

One comment says to swap the OpenDNS.org namesevers, but I was already using those to no avail.  Another says to edit the individual repo files (quite a few if you have the KDE and RPMFusion repositories enabled) to uncomment the baseurl address and comment out the mirrorlist URL (all of which are viewable in browsers btw).

I took a good look at http://digitizor.com/2009/06/17/how-…-in-fedora-11/ and I implemented their /etc/hosts/ “fix” to no avail.  I’m sure for others this worked well, but not for me.

The most helpful link for me was https://bugzilla.redhat.com/show_bug.cgi?id=504951.  I found the working fix there by editing my /etc/nsswitch.conf file to remove the lines

[NOTFOUND=return]

leaving the line

hosts: files mdns4_minimal dns

which fixed the problem.

Leave a Reply