14: PYCURL ERROR 6 - Couldn't resolve host
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
I restarted the system after editing the following file as you said.
/etc/sysconfig/network-scripts/ifcfg-eth0 content is:
[root@192 nico]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=none
NM_CONTROLLED="yes"
ONBOOT=yes TYPE="Ethernet"
UUID="e371111c-34b9-411d-b7f1-0c575cc1e250"
IPADDR=192.168.11.218
PREFIX=24
GATEWAY=192.168.11.1
DNS1= ................................
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="System eth0"
HWADDR=6C:3B:E5:0D:95:F9
DNS2= .............................
LAST_CONNECT=1359387159
/etc/sysconfig/network-scripts/ifcfg-eth0 content is:
[root@192 nico]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=none
NM_CONTROLLED="yes"
ONBOOT=yes TYPE="Ethernet"
UUID="e371111c-34b9-411d-b7f1-0c575cc1e250"
IPADDR=192.168.11.218
PREFIX=24
GATEWAY=192.168.11.1
DNS1= ................................
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="System eth0"
HWADDR=6C:3B:E5:0D:95:F9
DNS2= .............................
LAST_CONNECT=1359387159
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
I have the same issue - today. After a "yum clean" - I couldn't resolve any repos:TrevorH wrote:yum is not the problem.
Edit /etc/resolv.conf and add the line `nameserver 8.8.8.8` to use Google's nameserver. Now try again.
Code: Select all
[root@lakebox dginther]# yum update
Loaded plugins: dellsysid, fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el6&basearch=x86_64&native=1&dellsysidpluginver=unreleased_version error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'linux.dell.com'"
Error: Cannot find a valid baseurl for repo: dell-omsa-indep
I added 8.8.8.8 to /etc/resolve.conf as the top entry and things worked fine.
I believe Google (8.8.8.8) supports IPV6 and my local router does not, I wonder if that's the cause of some of this trouble.
-
- Posts: 1
- Joined: 2014/01/03 05:09:23
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
I got the same error... I tried disabling ipv6, and yum update started working for me... try it
http://www.hosting.com/support/linux/ho ... nd-centos/
This link has the details of how to uninstall IPV6...
http://www.hosting.com/support/linux/ho ... nd-centos/
This link has the details of how to uninstall IPV6...
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
Hello,
My problem is still there and I don't see any solution...
Recently, we have been instructred to use a proxy. I modify the yum.conf file adding the proxy adress.
Unfortunately, that didn't solve anything, but at least I get a new message when I try to use yum!
I think it confirms the name resolution is broken... Help me please!!!
My problem is still there and I don't see any solution...
Recently, we have been instructred to use a proxy. I modify the yum.conf file adding the proxy adress.
Unfortunately, that didn't solve anything, but at least I get a new message when I try to use yum!
So now, that is the proxy that can't be resolved!!!Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 5 - "Couldn't resolve proxy 'cachenonauth.univ-orleans.fr'"
Error: Cannot find a valid baseurl for repo: base
I think it confirms the name resolution is broken... Help me please!!!
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
Please look at this solutiondespe wrote:Hello,
My problem is still there and I don't see any solution...
Recently, we have been instructred to use a proxy. I modify the yum.conf file adding the proxy adress.
Unfortunately, that didn't solve anything, but at least I get a new message when I try to use yum!
So now, that is the proxy that can't be resolved!!!Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 5 - "Couldn't resolve proxy 'cachenonauth.univ-orleans.fr'"
Error: Cannot find a valid baseurl for repo: base
I think it confirms the name resolution is broken... Help me please!!!
http://www.rohitmenon.com/index.php/how ... tos-org-2/
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
Unfortunately it only disabled "network manager". So I am disconnected me from Internet, but the error message when I try yum has not changed...Please look at this solution
http://www.rohitmenon.com/index.php/how ... tos-org-2/
Thank you.
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
I ran into this problem and discovered that it was due to the fact that I had commented out "dns" on the line for hosts in /etc/nsswitch.conf.
/etc/nsswitch.conf defines methods for resolving numerous things, one of them is hosts. The default setting for hosts is "files dns", the line looks like so...
hosts: files dns
and I commented dns out to speed up the login process when I ssh to the box. (uncommented causes a several second delay between UID and password prompt)
hosts: files #dns
After this change yum could not resolve any host and Firefox could not resolve any URLs. When I uncommented it everything started working again.
Hope this helps someone.
/etc/nsswitch.conf defines methods for resolving numerous things, one of them is hosts. The default setting for hosts is "files dns", the line looks like so...
hosts: files dns
and I commented dns out to speed up the login process when I ssh to the box. (uncommented causes a several second delay between UID and password prompt)
hosts: files #dns
After this change yum could not resolve any host and Firefox could not resolve any URLs. When I uncommented it everything started working again.
Hope this helps someone.
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
As an off topic aside, the correct way to stop a delay with ssh trying to reverse lookup is to use the UseDNS parameter in sshd_config... or fix your DNS so it resolves correctly.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
When following this PSQL Install approach (x64_64) -
http://www.if-not-true-then-false.com/2 ... -hat-rhel/
Adding the entries to /etc/resolv.conf worked for me (CentOS 6.3) - I added both:
nameserver 8.8.8.8
nameserver 8.8.4.4
Fixed this error -
# yum install postgresql92 postgresql92-server postgresql92-contrib
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... epo=extras error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... po=updates error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
http://www.if-not-true-then-false.com/2 ... -hat-rhel/
Adding the entries to /etc/resolv.conf worked for me (CentOS 6.3) - I added both:
nameserver 8.8.8.8
nameserver 8.8.4.4
Fixed this error -
# yum install postgresql92 postgresql92-server postgresql92-contrib
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... epo=extras error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... po=updates error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Re: 14: PYCURL ERROR 6 - Couldn't resolve host
It seems to me that the "search 168.11.218" is spureous or wrong. Try deleting it.
I have noticed that sometimes it appears without reason in DNS search erroneous data. If this is the case:
run the command
system-config-network
go to DNS configuration, check that at least one of the DNS's is correct and delete (leave it blank) or repair (put a valid address) in the field "DNS search path".
After that restart the network and let us know.
I have noticed that sometimes it appears without reason in DNS search erroneous data. If this is the case:
run the command
system-config-network
go to DNS configuration, check that at least one of the DNS's is correct and delete (leave it blank) or repair (put a valid address) in the field "DNS search path".
After that restart the network and let us know.