LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" (https://www.linuxquestions.org/questions/linux-newbie-8/pycurl-error-6-couldnt-resolve-host-mirrorlist-centos-org-4175457935/)

adumith 04-12-2013 02:16 PM

PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
 
Hello every one;

I just instaled Centos 6.4 at modal Minimal in VirtualBox, so when I try to run
yum update I get this error:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

Researching I've got some recommendations but none have solved the problem.
The steps I followed are:
1. - Edit / etc / resolv.conf
nameserver8.8.8.8
8.8.4.4 nameserver
nameserver 127.0.0.1
2. - Edit / etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO = dhcp
NM_CONTROLLED = no
ON_BOOT = yes
3. - Eth0 ifup and dhclient eth0

Anyone have any other ideas of how to solve the issue?

data:
OS: Centos 6.4 32bit
Installed on: VirtualBox
Network type: NAT
team:
HP Pavilion g Series
x64 CPU
3GB RAM

Thanks a lot it advance.

szboardstretcher 04-15-2013 02:10 PM

how about the output of:

Code:

ping mirrorlist.centos.org
ping 8.8.8.8
nslookup mirrorlist.centos.org
cat /etc/resolv.conf
cat /etc/hosts

at first glance, it seems like your resolv.conf file is incorrect. there is supposed to be a space between nameserver and the ip.

Code:

nameserver 8.8.8.8

adumith 04-18-2013 08:25 AM

Hello szboardstretcher;

Thanks a lot for your reply; I allready resolved the issue, it was at the network configuration.

I add an staticIP, gateway, dns and ready...

Thanks again...

vBalaji 01-16-2014 10:09 PM

Need help | Facing the same problem
 
Hi Adumith,

When I try to run an installation on redhat which tries to download files by itself, i am getting the below error

Quote:

[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'archive.cloudera.com'"
Trying other mirror.
Hope you have tried a lot of ways and finally found the solution. It would be of great help, if you could share and guide me.

Thanks in advance.

John VV 01-17-2014 02:20 AM

vBalaji
if this is RHEL 6.5 then call redhat tech support
it is one of the benefits of that REQUIRED support contract
or
install CentOS 6.5

vBalaji 01-19-2014 10:22 PM

Thanks for the response
 
Dear John,

I am yet to get subscription &
Can you kindly guide me, in case you know how to fix the above issue.

Thanks


All times are GMT -5. The time now is 03:33 PM.