FIX A BUG OF YUM/F11 HANG PROBLEM WHEN USING PROXY
20 Jan 2010
1. My Environment:
1 dell desktop-Optiplex
1 dell laptop-Latitude
Seemed as a bug of yum/F11 or an issue of my networking, yum always hang in the office.
Also my laptop can normally update with yum at home(without proxy).
The environment of my Desktop is cleaned with http_proxy set.
An error came out when I tried to re-run “yum update”:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
How to fix the “Cannot retrieve repository metadata (repomd.xml)” error in Fedora?
Unexpected,yum can update and all goes well. I redo it on my laptop and also get the point.
- You need to edit two of your repository files: /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo. Now un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist. This should be done for both the above files.
- Now edit your /etc/hosts file and append the following to it’s contents:
126.96.36.199 mirrors.fedoraproject.org 188.8.131.52 mirrors.rpmfusion.org
Issue of yum, or the solution of mirrorlist can’t go well with proxyed-envrionment.