Linux serverNETWORK ADMINISTRATIONS

CentOS 7: Could not retrieve mirrorlist

Fix of the yum update error: could not retrieve mirrorlist.

The cause of the problem is that dhclient didn’t start at the boot, so you don’t have network.
To fix that, you need to edit /etc/sysconfig/network-scripts/ifcfg-ens33 (in my case). Can be also eth0.
Change ONBOOT=no to ONBOOT=yes. That will make dhclient start on boot.
Then run dhclient, so you have network in current session.

Music:
Clee Mashi – Help the Others

source

centos 7

Leave a Reply

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