Yum Error - Could not retrieve mirror list [RESOLVED]

Issues related to configuring your network
Post Reply
nemo487
Posts: 6
Joined: 2017/10/28 12:48:43

Yum Error - Could not retrieve mirror list [RESOLVED]

Post by nemo487 » 2017/10/28 13:47:55

Hi All,

I know this has been covered somewhere before, but I cannot seem to get it to work following previous advice.

I am trying to run a virtual CentOS 7 server using VMWare Workstation 12 on a Windows 10 machine. The connection is bridged, and has it's own IP address on the network. It has internet connectivity, and can ping websites.

Please see the attached image for the full error. I cannot copy and paste due to it being command line only, on VMWare, so cannot copy and paste.

Thank you.
yum-update-error.PNG
yum-update-error.PNG (31.56 KiB) Viewed 15147 times
Last edited by nemo487 on 2017/10/28 15:17:26, edited 1 time in total.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Yum Error - Could not retrieve mirror list

Post by avij » 2017/10/28 14:06:54

nemo487 wrote:It has internet connectivity, and can ping websites.
Are you sure? What happens when you run curl www.centos.org ?

nemo487
Posts: 6
Joined: 2017/10/28 12:48:43

Re: Yum Error - Could not retrieve mirror list

Post by nemo487 » 2017/10/28 14:11:55

avij wrote:
nemo487 wrote:It has internet connectivity, and can ping websites.
Are you sure? What happens when you run curl www.centos.org ?
Hmm, nothing appears to happen with Curl, but it still pings..

Could it possibly be pinging successfully due to the host having internet connectivity?
yum ping.PNG
yum ping.PNG (22.17 KiB) Viewed 15140 times

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Yum Error - Could not retrieve mirror list

Post by avij » 2017/10/28 14:16:10

Well, you would need to get curl (outgoing connections to TCP port 80) working. When that works, yum will also likely start working.

Is there a proxy involved? If yes, you will need to configure it in /etc/yum.conf.

nemo487
Posts: 6
Joined: 2017/10/28 12:48:43

Re: Yum Error - Could not retrieve mirror list

Post by nemo487 » 2017/10/28 14:19:01

On a previous installation I had the same issue. I read somewhere it was due to the IPv6,so I disabled that in the Grub, and I received the same problem, but slightly different error. Operation already in progress, I think it was.

I tried following other advice where it says to stop the Network Manager inputting its own DNS etc., and to manually try a DNS such as 8.8.8.8 or 8.8.8.4.

I have tried that, and did not work. I did a full clean re-install, and still same problem. The /etc/resolv.conf has 192.168.1.1, 8.8.8.8, 8.8.8.4 as listed DNS.

nemo487
Posts: 6
Joined: 2017/10/28 12:48:43

Re: Yum Error - Could not retrieve mirror list

Post by nemo487 » 2017/10/28 14:20:24

avij wrote:Well, you would need to get curl (outgoing connections to TCP port 80) working. When that works, yum will also likely start working.

Is there a proxy involved? If yes, you will need to configure it in /etc/yum.conf.
Hi Avij,

Thanks again for support.

I have not set up any proxy, or seen any configurations for one. Is there a way to find out if the box is trying to use one?

Thanks.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Yum Error - Could not retrieve mirror list

Post by avij » 2017/10/28 14:46:15

Disabling IPv6 will not help in this case (in fact it will rarely help, but still some people have a bad habit of disabling it anyway -- don't do it).

Perhaps it's your host's firewall? You may get some more verbose error messages if you try curl -v -4 www.centos.org

nemo487
Posts: 6
Joined: 2017/10/28 12:48:43

Re: Yum Error - Could not retrieve mirror list

Post by nemo487 » 2017/10/28 14:49:29

avij wrote:Disabling IPv6 will not help in this case (in fact it will rarely help, but still some people have a bad habit of disabling it anyway -- don't do it).

Perhaps it's your host's firewall? You may get some more verbose error messages if you try curl -v -4 www.centos.org
That was it! This time..

I tried disabling my host firewall last time, and still received the error.

It is working now, so I will just add an exception.

Thank you!

nemo487
Posts: 6
Joined: 2017/10/28 12:48:43

Re: Yum Error - Could not retrieve mirror list

Post by nemo487 » 2017/10/28 15:16:33

My Firewall has a deep "hidden" advanced option which blocks traffic to virtual machines.

When I turned my firewall off last time, before I fresh installed, I must have messed something up when I disabled IPv6, which led to it still not working.

Thanks!

Post Reply