Ask Your Question

yum update error: cannot retrieve metalink for repository: fedora.

asked 2011-12-31 10:40:45 -0500

macroron gravatar image

updated 2013-02-15 11:15:10 -0500

mether gravatar image


$ uname -a

3.1.6-1.fc16.x86_64 #1 SMP 
Wed Dec 21 22:41:17 UTC 2011 
x86_64 x86_64 x86_64 GNU/Linux


$ sudo yum update
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again

[Temporary Fix To Use Yum Online]

Masked "#mirrorlist=" and unmasked "baseurl=" in '/etc/yum.repos.d/fedora.repo' '/etc/yum.repos.d/fedora-updates.repo'


$ rpm -q nss


$ URLGRABBER_DEBUG=1 yum check-update


* About to connect() to port 443 (#0)
*   Trying * connected
* Connected to ( port 443 (#0)
* warning: ignoring unsupported value (1) of ssl.verifyhost
* NSS error -5978

* Closing connection #0
* Problem with the SSL CA cert (path? access rights?)
2011-12-31 14:00:09,652 exception: [Errno 14] curl#77 - "<Unknown>"
INFO:urlgrabber:exception: [Errno 14] curl#77 - "<Unknown>"
2011-12-31 14:00:09,652 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
INFO:urlgrabber:retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
Could not get metalink error was
14: curl#77 - "<Unknown>"


There seemed to be an SSL CA cert problem on my end.

Chrome browser is working ok.

I tried links lynx and elinks and they all couldn't connect with SSL errors.

I recently configured msmtp mail(mta) and may have inadvertently mess up in '/etc/pki/tls/certs/'


$ rpm --query --file  /etc/pki/tls/certs/

$ sudo yum reinstall ca-certificates-2011.78-1.fc16.noarch
  ca-certificates.noarch 0:2011.78-1.fc16



edit retag flag offensive close merge delete


Please don't rename the title to "Solved" unnecessarily. Just mark the answer you prefer and that will be enough to note that this question has been answered to your satisfaction.

mether gravatar imagemether ( 2013-02-15 11:15:56 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2011-12-31 12:55:01 -0500

In errors like this, I always like to use urlgrabbers debug mode:

URLGRABBER_DEBUG=1 yum check-update

and look for lines with error in them. This will usually tell you what the exact issue is with downloading the mirrorlists.

edit flag offensive delete link more

answered 2014-11-25 01:03:31 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

If you are getting this Error as follow while Yum Update or yum install : Error: Cannot retrieve metalink for repository: fedora/18/x86_64. Please verify its path and try again

Answer : Please check your Proxies i.e env variables 1. http_proxy 2. https_proxy 3. http_proxy in the /etc/yum.conf

Enter the proxy like : export export

edit flag offensive delete link more

answered 2015-01-09 06:53:14 -0500

Getting this error, I uninstalled the epel repository (otherwise yum can't be used):

rpm -ev epel-release-6-8.noarch

Then update the ca-certificates package:

yum update ca-certificates

The reinstall the epel repository

rpm -ihv epel-release-6-8.noarch.rpm

And everything worked.

edit flag offensive delete link more


EPEL is Extra Packages for Enterprise Linux. That means RHEL, and derivatives like CentOS. You should not be using EPEL on Fedora - it is a repository intended for an entirely different operating system.

randomuser gravatar imagerandomuser ( 2015-01-09 07:57:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-12-31 10:40:45 -0500

Seen: 103,540 times

Last updated: Jan 09 '15