Page 1 of 1

Yum could not retrieve mirrorlist [SOLVED]

Posted: 2020/01/09 21:17:01
by AlexCam
Hi, I'm trying to update my CentOS 7, but when I run the command yum update this is what I get:

Code: Select all

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: HTTP Error 503 - Service Unavailable
Internet it's ok, when I run: curl 'http://mirrorlist.centos.org/?release=7 ... nfra=stock', I'm getting this:

Code: Select all

http://mirror.netdepot.com/centos/7.7.1908/os/x86_64/
http://reflector.westga.edu/repos/CentOS/7.7.1908/os/x86_64/
http://mirror.san.fastserv.com/pub/linux/centos/7.7.1908/os/x86_64/
http://repo.ialab.dsu.edu/centos/7.7.1908/os/x86_64/
http://mirror.twinlakes.net/centos/7.7.1908/os/x86_64/
http://mirror.wdc1.us.leaseweb.net/centos/7.7.1908/os/x86_64/
http://repo1.ash.innoscale.net/centos/7.7.1908/os/x86_64/
http://linux.cc.lehigh.edu/centos/7.7.1908/os/x86_64/
http://mirror.facebook.net/centos/7.7.1908/os/x86_64/
http://centos.vwtonline.net/centos/7.7.1908/os/x86_64/
So, I don't know what else should I check. Previously, cleaned cache with: yum clean all

The weird thing is that it worked fine until two weeks ago and no package were updated or anything. yum may be using another port than 80? or how is that I'm getting response using curl but yum seems not to be reaching the mirrorlist.

Re: Yum could not retrieve mirrorlist

Posted: 2020/01/10 01:13:38
by desertcat
AlexCam wrote:
2020/01/09 21:17:01
Hi, I'm trying to update my CentOS 7, but when I run the command yum update this is what I get:

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
14: HTTP Error 503 - Service Unavailable


Internet it's ok, when I run: curl 'http://mirrorlist.centos.org/?release=7 ... nfra=stock', I'm getting this:

Code: Select all

http://mirror.netdepot.com/centos/7.7.1908/os/x86_64/
http://reflector.westga.edu/repos/CentOS/7.7.1908/os/x86_64/
http://mirror.san.fastserv.com/pub/linux/centos/7.7.1908/os/x86_64/
http://repo.ialab.dsu.edu/centos/7.7.1908/os/x86_64/
http://mirror.twinlakes.net/centos/7.7.1908/os/x86_64/
http://mirror.wdc1.us.leaseweb.net/centos/7.7.1908/os/x86_64/
http://repo1.ash.innoscale.net/centos/7.7.1908/os/x86_64/
http://linux.cc.lehigh.edu/centos/7.7.1908/os/x86_64/
http://mirror.facebook.net/centos/7.7.1908/os/x86_64/
http://centos.vwtonline.net/centos/7.7.1908/os/x86_64/
So, I don't know what else should I check. Previously, cleaned cache with: yum clean all

The weird thing is that it worked fine until two weeks ago and no package were updated or anything. yum may be using another port than 80? or how is that I'm getting response using curl but yum seems not to be reaching the mirrorlist.
Hummmmm this *may* be a TEMPORARY problem. I run yum update and a whole lot of mirror sites will be down. 24 hours later they are back. In other words they are in the process of updating their mirrors when you tried to update your machine. The key thing that jumps out at me in your post is the phrase, "SERVICE UNAVAILABLE". Try again in a day or two and still see if you have the problem. Just a guess. [Shrug]

Re: Yum could not retrieve mirrorlist

Posted: 2020/01/10 22:11:37
by AlexCam
It turns out that the problem was with the network. The firewall configuration was checked again and apparently "yum" was being blocked due to excessive traffic. Finally I am already making updates without any problem. Thank you anyway.