yum update lanza “Error: Cannot retrieve metalink for repository”

Al intentar actualizar un equipo hoy, he recibido el siguiente error

# yum update
Loaded plugins: langpacks, refresh-packagekit Error: Cannot retrieve metalink for repository: fedora/19/x86_64. Please verify its path and try again

Al no tener ni idea de donde podia venir, he lanzado el comando con la utilidad urlgrabber

# URLGRABBER_DEBUG=1 yum check-update
[...]
}
2011-08-11 00:24:25,270 attempt 1/10: https://mirrors.fedoraproject.org/metalink?repo=fedora-19&arch=x86_64
2011-08-11 00:24:25,271 opening local file "/var/cache/yum/x86_64/19/fedora/metalink.xml.tmp" with mode wb
* About to connect() to mirrors.fedoraproject.org port 443 (#7)
* Trying 140.211.169.197...
* Connected to mirrors.fedoraproject.org (140.211.169.197) port 443 (#7)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Server certificate:
* subject: CN=*.fedoraproject.org,OU=Fedora Infrastructure,O=Red Hat Inc,L=Raleigh,ST=North Carolina,C=US,serialNumber=GFaoFyCf99PHtAPDHLEBYfFi/1hePcED
* start date: Aug 03 14:43:29 2013 GMT
* expire date: Nov 06 01:35:11 2015 GMT
* common name: *.fedoraproject.org
* issuer: CN=GeoTrust SSL CA,O="GeoTrust, Inc.",C=US
* NSS error -8181 (SEC_ERROR_EXPIRED_CERTIFICATE)
* Peer's Certificate has expired.
* Closing connection 7
2011-08-11 00:24:25,756 exception:
[Errno 14] curl#60 - "Peer's Certificate has expired."
2011-08-11 00:24:25,757 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
Error: Cannot retrieve metalink for repository: fedora/19/x86_64. Please verify its path and try again

Tenemos el error  SEC_ERROR_EXPIRED_CERTIFICATE  pero el certificado es válido desde Agosto de 2013 hasta Noviembre de 2015 … por lo que algo debe estar mal configurado

Revisamos la fecha :

# date
Thu 11 Aug 00:39:49 BST 2011

Oops, parece que hemos viajado atrás en el tiempo …  ajustamos a algo más real :

#  date -s  20130924

Y ahora yum update funciona correctamente

One thought on “yum update lanza “Error: Cannot retrieve metalink for repository”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current ye@r *