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 replies on “Fedora 11 – Error: “Cannot retrieve repository metadata (repomd.xml)””
Howdy admin, i think that what you say is absolutely persuasively.
i tried the above method. but it is not working. i am using fedora 15. any other idea
I am not a administrator ,so how to fix this error??