Centos Yum Could Not Retrieve Mirrorlist Pycurl Error 6
Contents |
is not running General support questions Post Reply Print view Search Advanced search pycurl error 6 couldn t resolve host mirrorlist centos org 11 posts 1 2 Next mouli345 Posts: 3 Joined: 2011/07/14
14 Pycurl Error 6 Couldn T Resolve Host Mirrorlist Centos Org
14:43:29 [SOLVED] "yum update" is not running Quote Postby mouli345 » 2011/07/14 14:49:02 Hi,Today only, could not retrieve mirrorlist http //mirrorlist.centos.org/ release=7&arch=x86_64&repo=os I installed CentOS 6.0 base (Minimal) installation. I configured the network and able to ping the domains. That means, my internet connection is working error cannot find a valid baseurl for repo base centos 6 fine.When I am trying to do yum update, i am getting this error and pasting below:[root@test ~]# yum updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386& repo=os error was14: PYCURL ERROR 6 - ""Error: Cannot find a valid baseurl for repo: baseI tried a lot
Cannot Find A Valid Baseurl For Repo Centos 7
in internet to resolve the above issue. But, didn't find any correct solutions. Thanks in advance.Regards,Chandra Top RAGOpoR Posts: 2 Joined: 2011/07/14 15:04:50 Re: "yum update" is not running Quote Postby RAGOpoR » 2011/07/14 15:11:01 same issues , running on VMany solution ?Code: Select all[root@xserve ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - ""
Error: Cannot find a valid baseurl for repo: base
Top TrevorH Forum Moderator Posts: 16694 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: "yum update" is not running Quote Postby TrevorH » 2011/07/14 15:18:21 What do you get if you runCode: Select allwget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os"
Top RAGOpoR Posts: 2 Joined: 2011/07/14 15:04:50 Re: "yum update" is not running Quote Postby RAGOpoR » 2011/07/14 15:33:51 thank you TrevorH, it cause of nameserversolution is nano /etc/resolv.confand insertnameserver 8
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About could not retrieve mirrorlist centos 7 Us Learn more about Stack Overflow the company Business Learn more about hiring cannot find a valid baseurl for repo base centos 7 developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack
Yum Update Not Working Centos 7
Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask http://www.centos.org/forums/viewtopic.php?t=947 a question Anybody can answer The best answers are voted up and rise to the top How can I fix “cannot find a valid baseurl for repo” errors on CentOS? up vote 48 down vote favorite 14 I finished installing CentOS 6, but when I tried running yum update I got: [root@centos6test ~]# yum update Loaded plugins: fastestmirror, refresh-packagekit Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error http://unix.stackexchange.com/questions/22924/how-can-i-fix-cannot-find-a-valid-baseurl-for-repo-errors-on-centos was 14: PYCURL ERROR 6 - "" Error: Cannot find a valid baseurl for repo: base Why is that happening? How can I fix it? centos share|improve this question edited Nov 8 '11 at 14:06 Michael Mrozek♦ 44.9k19144179 asked Oct 19 '11 at 9:14 user1002795 migrated from stackoverflow.com Oct 19 '11 at 11:11 This question came from our site for professional and enthusiast programmers. 3 Are you connected to the network? Can you ping mirrorlist.centos.org? –Nikhil Mulley Dec 4 '11 at 8:51 2 What happens if you run curl 'http://mirrorlist.centos.org/?release=6&arch=i386&repo=os' ? –rvs Jan 3 '12 at 9:09 add a comment| 7 Answers 7 active oldest votes up vote 51 down vote First you need to get connected, AFAIK CentOS 6 minimal set your network device to ONBOOT=No, just do a dhclient to your network interface and you should be up and running. share|improve this answer edited Feb 2 '12 at 23:20 Kevin 18.6k54286 answered Oct 23 '11 at 20:01 Jorge 51132 2 Perfect. sudo dhclient fixed it ! Thanks. –xbsd Nov 24 '15 at 21:16 add a comment| up vote 11 down vote I had been struggling with the same problem on Centos6.4 x86_64. I got the following error
VMs for simulating a multi-node environment. Most of my VMs are CentOS. After installing CentOS 6.4 I got the following error http://www.rohitmenon.com/index.php/how-to-fix-pycurl-error-6-couldnt-resolve-host-mirrorlist-centos-org-2/ when I tried "yum update": Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was http://utdream.org/post.cfm/yum-couldn-t-resolve-host-mirrorlist-centos-org-for-centos-6 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: Cannot find a valid baseurl for repo: base To fix this error I updated NM_CONTROLLED to "no" in the file /etc/sysconfig/network-scripts/ifcfg-eth0 After this I restarted the network interface using the following commands: ifdown eth0 ifup eth0 After centos 7 doing the above the yum update started working. Hope this helps. ABOUT THE AUTHOR Rohit Menon I am an author and software developer who loves to learn and build new things. To share my learning I blog here and have also built Hadoop Screencasts (www.hadoopscreencasts.com), that hosts screencasts on Apache Hadoop and its components. PREVIOUS POST← Apache Hive could not retrieve - Getting Started NEXT POSTApache Hadoop Streaming → 53 Comments → [HOW TO] Fix PYCURL ERROR 6 - "Couldn't resolve host ‘mirrorlist.centos.org'" andrew January 19, 2014 at 9:30 am thanks, this worked for me. Reply ↓ Mamun January 21, 2014 at 1:33 am Thanks man, worked perfectly! Reply ↓ cay January 27, 2014 at 9:54 am Worked! But I would like to know why. What was the problem and why does this solution work? Reply ↓ joeljohn February 6, 2014 at 1:33 am Thanks, that worked. Another post mentioned setting search domains in /etc/resolv.conf but that did not work. So this was a good fix! Reply ↓ JJ February 12, 2014 at 10:51 am Thanks! Reply ↓ ferran February 13, 2014 at 1:36 am thank you very much !! Reply ↓ Anil February 16, 2014 at 8:13 am Thanks a lot man, it worked for me. Reply ↓ אלי February 16, 2014 at 2:59 pm תודה רבה גבר זה עבד גם אצלי Reply ↓ dude February 27, 2014 at 4:12 pm after on an
could not resolve anything. I would get error messages like the following: [root@viviotech ~]# yum -y update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: Cannot find a valid baseurl for repo: base After a bit of digging, and absolutely no help from my friend Google, I asked one of the Vivio technicians about it and he said he'd seen it on other servers - specifically servers with VirtualMin. Take a look at the resolve.conf file: nameserver 127.0.0.1 nameserver 8.8.8.8 nameserver 8.8.4.4 See how VirtualMin adds the 127.0.0.1 address first? Apparently YUM will ONLY check the very first entry in the /etc/resolve.conf file when it looks for the server to resolve IP Addresses. In this case, the local DNS resolver was not configured to use forwarders, so the YUM process would ask the local DNS server where to find "mirrorlist.centos.org", and when the local resolver didn't know, YUM would simply report an error instead of looking at the other resolvers in the /etc/resolve.conf list. This is why I could ping URL's just fine, but YUM could not find them. The solution to this was to simply place the 127.0.0.1 entry at the botton of the /etc/resolv.conf file, like so: nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 127.0.0.1 After that, eveything worked great. IMPORTANT: The above examples of the /etc/resolv.conf file use the IP Addresses of the Google Public DNS. Posted on: Jul 16, 2012 | 40 Comments | Categories: bash , Linux , Technology Comments 1 :-) wrote on 08/05/12 6:00 PM Thank You !! 2 vilager wrote on 09/03/12 5:28 PM thanks 3 Robert wrote on 09/03/12 9:36 PM Thank you! I did a minimal Centos 6.3 install that left the resolv.conf file blank and I was scratching my head over this one. Cheers! 4 Maz wrote on 09/22/12 3:45 AM Indeed that was the problem. Such a stupid error. 5 bev wrote on 10/17/12 3:38 AM thanks a lot, perfecto!! 6 D H wrote on 10/25/12 9:18 PM THANKS!!!!! After looking and looking... 7 sagar wrote on 11/05/12 8:40 PM how can i sovle following problem i am working with CentOs [root@sagar ~]# yum install upgrade Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: Cannot find a valid baseurl for