Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

I have a problem with CentOS 6.4 on Hyper-V. I can't install using yum or ping any DNS address. There is a announcement: Couldn't resolve host 'mirrorlist.centos.org' etc. I've been trying to fix it according to this video: http://www.youtube.com/watch?v=2BZHvVpXsg4 but still nothing. What should I do? yum

ifconfig

ping

like image 515
pw94 Avatar asked Dec 28 '13 15:12

pw94


3 Answers

Check network ... I use vm-player and add custom-virtual-network ( vmnet bridget )

Type:

ifdown eth0
ifup eth0
yum update

for me works ....

like image 168
user3626608 Avatar answered Nov 02 '22 03:11

user3626608


Try to add this line into the /etc/hosts

64.235.47.134    mirrorlist.centos.org
like image 2
imos Avatar answered Nov 02 '22 04:11

imos


I had the same problem.

After logining my compony account, the networking can connect the Internet. But my vitrual manchine cound not login.

I change the network mode, use the "private network", then can connect the Internet.

Good luck.

like image 2
diguage Avatar answered Nov 02 '22 04:11

diguage