Fedora 11 – Error: “Cannot retrieve repository metadata (repomd.xml)”

To fix this error you will need to edit some of the repo files located in /etc/yum.repos.d/ heres how:

su -
cd /etc/yum.repos.d/
gedit fedora.repo

In here you are going to want to remove the comments ‘#’ from the lines beginning with baseurl and then comment out the lines beginning with mirrorlist. Now do the same for the file fedora-updates.repo in the same directory.

gedit fedora-updates.repo

Finally you want to add two lines to /etc/hosts file:

gedit /etc/hosts
add these two lines to the bottom of this file:
80.239.156.215          mirrors.fedoraproject.org
213.129.242.84          mirrors.rpmfusion.org

Now try yum update if the error doesn’t show it worked! :)

3 comments to Fedora 11 – Error: “Cannot retrieve repository metadata (repomd.xml)”

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>