Ask Your Question
1

Could not resolve host: mirrors.fedoraproject.org

asked 2013-09-14 23:25:32 -0500

Nayana Adassuriya gravatar image

updated 2013-09-15 01:49:08 -0500

FranciscoD_ gravatar image

I'm using fedora 19, here I'm trying to install 32-bit compatibility libraries using terminal. but it shows this error. Please someone help me. I added "h/ttps" for links because I don't have permission to post links.

[root@localhost yum.repos.d]# su -c 'yum install package.i?86'
Loaded plugins: langpacks, refresh-packagekit
Could not get metalink h/ttps://mirrors.fedoraproject.org/metalink?repo=fedora-19&arch=x86_64 error was
14: curl#6 - "Could not resolve host: mirrors.fedoraproject.org; Name or service not known"
h/ttp://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: dl.google.com; Name or service not known"
Trying other mirror.
Error: failure: repodata/repomd.xml from google-chrome: [Errno 256] No more mirrors to try.
h/ttp://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: dl.google.com; Name or service not known"
[root@localhost yum.repos.d]#
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-07-27 07:46:05 -0500

Nayana Adassuriya gravatar image

updated 2014-08-03 20:09:54 -0500

Disable the IPV6 then everything works.

To completely disable IPv6 in your system, all you have to do is save the following line in a file (anyname.conf) inside /etc/modprobe.d/.

install ipv6 /bin/true

And sometimes your dns server may not powerful enough so use google open dns. for that go to /etc/resolv.conf comment all the lines and add below two lines

nameserver 8.8.8.8
nameserver 8.8.4.4

Do not restart the system. if restart /etc/resolv.conf file will be replace.

Here is the blog post I wrote with step by step guide: http://codeketchup.blogspot.sg/2014/07/how-to-fix-curl-6-could-not-resolve.html

edit flag offensive delete link more

Comments

Thanks for the update. Appreciate it.

abadrinath gravatar imageabadrinath ( 2014-08-04 01:31:53 -0500 )edit

Very helpful for configuring in fedora 20

Anindya Das gravatar imageAnindya Das ( 2014-10-30 07:55:48 -0500 )edit
0

answered 2013-09-16 03:24:53 -0500

marcindulak gravatar image

Check why the fedora repo is not accessible with URLGRABBER_DEBUG=1,debug.log yum -y install package - look inside the generated debug.log for hints. Possibly the same problem as https://ask.fedoraproject.org/question/31043/yum-error/

edit flag offensive delete link more
0

answered 2013-09-15 01:52:21 -0500

FranciscoD_ gravatar image

Try

sudo yum clean all

and then re-run your yum commands.

Please confirm that you have network access, even the google-chrome repository is failing, so it isn't just a Fedora mirror issue.

edit flag offensive delete link more

Comments

I did then is shows this error. [root@localhost yum.repos.d]# su -c 'yum install package.i?86' Loaded plugins: langpacks, refresh-packagekit Error: Cannot retrieve metalink for repository: fedora/19/x86_64. Please verify its path and try again [root@localhost yum.repos.d]# I have internet access.I can browse using chrome browser

Nayana Adassuriya gravatar imageNayana Adassuriya ( 2013-09-15 02:36:20 -0500 )edit

Question Tools

Stats

Asked: 2013-09-14 23:25:32 -0500

Seen: 18,424 times

Last updated: Aug 03 '14