Yum Error - Could not retrieve mirror list [RESOLVED]
Yum Error - Could not retrieve mirror list [RESOLVED]
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.
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.
Last edited by nemo487 on 2017/10/28 15:17:26, edited 1 time in total.
Re: Yum Error - Could not retrieve mirror list
Are you sure? What happens when you run curl www.centos.org ?nemo487 wrote:It has internet connectivity, and can ping websites.
Re: Yum Error - Could not retrieve mirror list
Hmm, nothing appears to happen with Curl, but it still pings..avij wrote:Are you sure? What happens when you run curl www.centos.org ?nemo487 wrote:It has internet connectivity, and can ping websites.
Could it possibly be pinging successfully due to the host having internet connectivity?
Re: Yum Error - Could not retrieve mirror list
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.
Is there a proxy involved? If yes, you will need to configure it in /etc/yum.conf.
Re: Yum Error - Could not retrieve mirror list
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.
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.
Re: Yum Error - Could not retrieve mirror list
Hi Avij,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.
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.
Re: Yum Error - Could not retrieve mirror list
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
Perhaps it's your host's firewall? You may get some more verbose error messages if you try curl -v -4 www.centos.org
Re: Yum Error - Could not retrieve mirror list
That was it! This time..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
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!
Re: Yum Error - Could not retrieve mirror list
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!
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!