CentOS 7: Could not retrieve mirrorlist

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

You are my savior!!! I spent 3 F##king hours trying to fix these love u man

MRHARSH
Автор

My onboot is already yes what do i do still not working

luvk
Автор

I tried so many solutions, but doesn’t works..
But you are great 👍 and your solution is works very good

naharmaayta
Автор

stupid question but after I have changed it from No to Yes how do I go back the the terminal

welshvillain
Автор

But I dont use DHCP in my work. Here use static IP and dhclient dont work for my. For static IP what I to do?

kiaraa.
Автор

Amazing!!! Saved my day...Thanks from Brazil

super-super
Автор

Had to find a similar file on my system but worked in the end. Thanks!

Ceoxx
Автор

thank you very much
I checked several manuals on the internet and it went wrong, but this video worked ... I do not know how to thank ...
Hello from Brasil !!!

Elias
Автор

First of all, you're amazing and this is a terrific fix to my problem. Thank you!!! However, I'm not quite certain as to how this remedied my situation. You see, I'm running CentOS 7 on a VM and the NAT adapter had an IP of 10.something (private range ofc). When I ran "sudo ifup enp0s3", I was able to access the internet. But only when I further ran "dhclient" was I able to retrieve the mirror list. What do you think changed here?

TheBleyach
Автор

This was perfect. Thank you for such a thorough and concise video!

ohyouwouldntbelieve
Автор

Hi, but in my CentOS7, there is no such a file "ifcfg-ens33" in folder. Instead, there is a "ifcfg-lo" file, is this the right one?

大千世界雅俗共赏
Автор

You just made my day. I love you mate.

pranayadahal
Автор

Thanks but when I vimed into the my ONBOOT was already = yes hence didn't change anything and still have the same problem.

Pyxelles
Автор

Thank you very much! Easy to follow, and work perfectly fine.

nicoleyizhenke
Автор

Thanks so much I wanted to test something on centos for work and ran into this issue.

superlogicalman
Автор

I have another problem. you could have fixed your problem typing dhclient. If would have sufficed but editing the file to make it persistent is of course more convenient.

EminoMeneko
Автор

Thanks a lot! It works. Greeting from Poland.

maccumx
Автор

Thank you brother. Help at the appropriate time.

ericnkana
Автор

mille merciiii depuis ce maitin que je cherche une solution et la god bless you

sophiesall
Автор

you are the fucking master... 300 Thanks!!

andriuxonetube