Friday, July 9, 2010

Yum Error in Fedora ("Cannot retrieve repository metadata (repomd.xml)")

Today I installed Fedora 13. But when i tried to use "yum" to update my system, It showed error "Error: Cannot retrieve repository metadata (repomd.xml)".After some research i found the solution. It worked hope it will be usefull for you also.

1. Open terminal, Login with root credentials.

2. Open fedora.repo and fedora-updates.repo file to edit.



#gedit  /etc/yum.repos.d/fedora-updates.repo               


3. Serach for 'baseurl' and uncomment all lines starting with 'baseurl' by  removing '#'.


baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/

4. Search for mirrorlist and comment all lines starting with mirrorlist.

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch


5. Save and close.



#gedit  /etc/yum.repos.d/fedora.repo                                       

6. Repeat step 3, 4 and 5. And you are done.

Read more…