fedora 19: unable to update or install – “Could not resolve host…”


I cannot update as no mirror is found:

[root@localhost ~]# yum update
Loaded plugins: langpacks, refresh-packagekit
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-19&arch=i386 error was
14: curl#6 - "Could not resolve host: mirrors.fedoraproject.org; Name or service not known"
http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/19/Everything/i386/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: www.mirrorservice.org; Name or service not known"
Trying other mirror.
ftp://ftp.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/19/Everything/i386/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: ftp.mirrorservice.org; Name or service not known"
Trying other mirror.

I can ping this and every other address that fails:

[root@localhost ~]# ping www.mirrorservice.org
PING www.mirrorservice.org (212.219.56.184) 56(84) bytes of data.
64 bytes from www.mirrorservice.org (212.219.56.184): icmp_seq=1 ttl=50 time=19.6 ms
64 bytes from www.mirrorservice.org (212.219.56.184): icmp_seq=2 ttl=50 time=19.6 ms
64 bytes from www.mirrorservice.org (212.219.56.184): icmp_seq=3 ttl=50 time=19.7 ms
64 bytes from www.mirrorservice.org (212.219.56.184): icmp_seq=4 ttl=50 time=20.1 ms
^C
--- www.mirrorservice.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 19.607/19.788/20.104/0.189 ms

UPDATE #1

Here’s the output from the following command:

$ URLGRABBER_DEBUG=1,debug.log yum update

2 Responses to “fedora 19: unable to update or install – “Could not resolve host…””


  1. Stramash says:

    Resolved this by adding nameserver 8.8.8.8 above my router’s address in resolv.conf that was obtained by DHCP.

    Not quite sure why it will not work with the automagic DHCP settings.

    Thanks.

Leave a Reply

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam