Yum update error: Could not retrieve mirrorlistdisable YUM mirrorlist checkingUnable to update CentOS6.6 due...

Of strange atmospheres - the survivable but unbreathable

Why is the Eisenstein ideal paper so great?

Can we show a sum of symmetrical cosine values is zero by using roots of unity?

Shorten or merge multiple lines of `&> /dev/null &`

Can a character with the War Caster feat call a bolt with Call Lightning instead of making an opportunity attack?

The Maltese Falcon

Finding all files with a given extension whose base name is the name of the parent directory

Apart from the sine wave, are there any other waveshapes that could be thought of as commonly appearing "in nature"?

Why is unzipped directory exactly 4.0k (much smaller than zipped file)?

Why isn't 'chemically-strengthened glass' made with potassium carbonate? To begin with?

Using too much dialogue?

Time complexity of an algorithm: Is it important to state the base of the logarithm?

If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?

Heat lost in ideal capacitor charging

Why did Jon Snow do this immoral act if he is so honorable?

Creating second map without labels using QGIS?

How did NASA Langley end up with the first 737?

What weight should be given to writers groups critiques?

Expected maximum number of unpaired socks

The disk image is 497GB smaller than the target device

Are runways booked by airlines to land their planes?

Variable declaraton with extra in C

Can a ring of spell storing and access to Find spells produce an endless menagerie?

Navigating a quick return to previous employer



Yum update error: Could not retrieve mirrorlist


disable YUM mirrorlist checkingUnable to update CentOS6.6 due to 404yum remove is not idempotentRepository error with yumUnable to yum install package with repo configuredCannot find a valid baseurl for repo : base problemYum fails because http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os is not reachable?yum install and update fail - GPG keys listed for the “CentOS-7 - Updates” repository are already installed but they are not correctcannot offline install vnc server on CentOS 7How to resolve Transaction check error while installing xrdp?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















I'm trying to do yum update. This is the error I'm getting.



sudo 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
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28,'connect() timed out!')
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


I did wget http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os. It never goes through. So I know I've to change this somehow.
Can anyone tell suggest me how to fix this. I found many posts related to this problem over here; but couldn't find a proper solution for this.



My /etc/resolve.conf is:



nameserver 130.102.115.238
nameserver 130.102.128.53
nameserver 130.102.2.53


I tried adding nameserver 8.8.8.8. It didn't work.



My /etc/yum.repos.d/Centos-Base.repo is:



[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


I tried commenting the mirrorlists and uncommenting the baseurls. Didn't work.
I really need some help with this. Stuck on this for sometime now.



PS I am trying to set a Hadoop node using Cloudera. That's when I encountered this problem. So I tried doing a yum update individually to figure out what's wrong.










share|improve this question

























  • did you try to access the url by browser? are you behind a proxy? what happen when you nslookup the urls?

    – BitsOfNix
    Sep 23 '13 at 6:54











  • Yea when I access that link through a browser I get this mirror.colocity.com/centos/6.4/os/x86_64 mirror.ventraip.net.au/CentOS/6.4/os/x86_64 mirror.primusdatacentre.com.au/centos/6.4/os/x86_64 mirror.optus.net/centos/6.4/os/x86_64 mirror.overthewire.com.au/pub/centos/6.4/os/x86_64 mirror.internode.on.net/pub/centos/6.4/os/x86_64 centos.mirror.uber.com.au/6.4/os/x86_64 ftp.swin.edu.au/centos/6.4/os/x86_64 centos.mirror.serversaustralia.com.au/6.4/os/x86_64 mirror.mel.bkb.net.au/pub/centos/6.4/os/x86_64

    – Ashwin
    Sep 23 '13 at 6:58











  • Yes i am behind a proxy. In order to get my firefox running through this remote server I have to export http_proxy. I did nslookup, it says server can't find it.

    – Ashwin
    Sep 23 '13 at 7:00











  • Do you have the proxy information configured in yum.conf?

    – John
    Sep 23 '13 at 11:38


















4















I'm trying to do yum update. This is the error I'm getting.



sudo 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
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28,'connect() timed out!')
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


I did wget http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os. It never goes through. So I know I've to change this somehow.
Can anyone tell suggest me how to fix this. I found many posts related to this problem over here; but couldn't find a proper solution for this.



My /etc/resolve.conf is:



nameserver 130.102.115.238
nameserver 130.102.128.53
nameserver 130.102.2.53


I tried adding nameserver 8.8.8.8. It didn't work.



My /etc/yum.repos.d/Centos-Base.repo is:



[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


I tried commenting the mirrorlists and uncommenting the baseurls. Didn't work.
I really need some help with this. Stuck on this for sometime now.



PS I am trying to set a Hadoop node using Cloudera. That's when I encountered this problem. So I tried doing a yum update individually to figure out what's wrong.










share|improve this question

























  • did you try to access the url by browser? are you behind a proxy? what happen when you nslookup the urls?

    – BitsOfNix
    Sep 23 '13 at 6:54











  • Yea when I access that link through a browser I get this mirror.colocity.com/centos/6.4/os/x86_64 mirror.ventraip.net.au/CentOS/6.4/os/x86_64 mirror.primusdatacentre.com.au/centos/6.4/os/x86_64 mirror.optus.net/centos/6.4/os/x86_64 mirror.overthewire.com.au/pub/centos/6.4/os/x86_64 mirror.internode.on.net/pub/centos/6.4/os/x86_64 centos.mirror.uber.com.au/6.4/os/x86_64 ftp.swin.edu.au/centos/6.4/os/x86_64 centos.mirror.serversaustralia.com.au/6.4/os/x86_64 mirror.mel.bkb.net.au/pub/centos/6.4/os/x86_64

    – Ashwin
    Sep 23 '13 at 6:58











  • Yes i am behind a proxy. In order to get my firefox running through this remote server I have to export http_proxy. I did nslookup, it says server can't find it.

    – Ashwin
    Sep 23 '13 at 7:00











  • Do you have the proxy information configured in yum.conf?

    – John
    Sep 23 '13 at 11:38














4












4








4








I'm trying to do yum update. This is the error I'm getting.



sudo 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
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28,'connect() timed out!')
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


I did wget http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os. It never goes through. So I know I've to change this somehow.
Can anyone tell suggest me how to fix this. I found many posts related to this problem over here; but couldn't find a proper solution for this.



My /etc/resolve.conf is:



nameserver 130.102.115.238
nameserver 130.102.128.53
nameserver 130.102.2.53


I tried adding nameserver 8.8.8.8. It didn't work.



My /etc/yum.repos.d/Centos-Base.repo is:



[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


I tried commenting the mirrorlists and uncommenting the baseurls. Didn't work.
I really need some help with this. Stuck on this for sometime now.



PS I am trying to set a Hadoop node using Cloudera. That's when I encountered this problem. So I tried doing a yum update individually to figure out what's wrong.










share|improve this question
















I'm trying to do yum update. This is the error I'm getting.



sudo 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
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28,'connect() timed out!')
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


I did wget http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os. It never goes through. So I know I've to change this somehow.
Can anyone tell suggest me how to fix this. I found many posts related to this problem over here; but couldn't find a proper solution for this.



My /etc/resolve.conf is:



nameserver 130.102.115.238
nameserver 130.102.128.53
nameserver 130.102.2.53


I tried adding nameserver 8.8.8.8. It didn't work.



My /etc/yum.repos.d/Centos-Base.repo is:



[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


I tried commenting the mirrorlists and uncommenting the baseurls. Didn't work.
I really need some help with this. Stuck on this for sometime now.



PS I am trying to set a Hadoop node using Cloudera. That's when I encountered this problem. So I tried doing a yum update individually to figure out what's wrong.







centos terminal yum






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 25 '17 at 21:40









Jeff Schaller

46k1165150




46k1165150










asked Sep 23 '13 at 6:53









Ashwin Ashwin

55224




55224













  • did you try to access the url by browser? are you behind a proxy? what happen when you nslookup the urls?

    – BitsOfNix
    Sep 23 '13 at 6:54











  • Yea when I access that link through a browser I get this mirror.colocity.com/centos/6.4/os/x86_64 mirror.ventraip.net.au/CentOS/6.4/os/x86_64 mirror.primusdatacentre.com.au/centos/6.4/os/x86_64 mirror.optus.net/centos/6.4/os/x86_64 mirror.overthewire.com.au/pub/centos/6.4/os/x86_64 mirror.internode.on.net/pub/centos/6.4/os/x86_64 centos.mirror.uber.com.au/6.4/os/x86_64 ftp.swin.edu.au/centos/6.4/os/x86_64 centos.mirror.serversaustralia.com.au/6.4/os/x86_64 mirror.mel.bkb.net.au/pub/centos/6.4/os/x86_64

    – Ashwin
    Sep 23 '13 at 6:58











  • Yes i am behind a proxy. In order to get my firefox running through this remote server I have to export http_proxy. I did nslookup, it says server can't find it.

    – Ashwin
    Sep 23 '13 at 7:00











  • Do you have the proxy information configured in yum.conf?

    – John
    Sep 23 '13 at 11:38



















  • did you try to access the url by browser? are you behind a proxy? what happen when you nslookup the urls?

    – BitsOfNix
    Sep 23 '13 at 6:54











  • Yea when I access that link through a browser I get this mirror.colocity.com/centos/6.4/os/x86_64 mirror.ventraip.net.au/CentOS/6.4/os/x86_64 mirror.primusdatacentre.com.au/centos/6.4/os/x86_64 mirror.optus.net/centos/6.4/os/x86_64 mirror.overthewire.com.au/pub/centos/6.4/os/x86_64 mirror.internode.on.net/pub/centos/6.4/os/x86_64 centos.mirror.uber.com.au/6.4/os/x86_64 ftp.swin.edu.au/centos/6.4/os/x86_64 centos.mirror.serversaustralia.com.au/6.4/os/x86_64 mirror.mel.bkb.net.au/pub/centos/6.4/os/x86_64

    – Ashwin
    Sep 23 '13 at 6:58











  • Yes i am behind a proxy. In order to get my firefox running through this remote server I have to export http_proxy. I did nslookup, it says server can't find it.

    – Ashwin
    Sep 23 '13 at 7:00











  • Do you have the proxy information configured in yum.conf?

    – John
    Sep 23 '13 at 11:38

















did you try to access the url by browser? are you behind a proxy? what happen when you nslookup the urls?

– BitsOfNix
Sep 23 '13 at 6:54





did you try to access the url by browser? are you behind a proxy? what happen when you nslookup the urls?

– BitsOfNix
Sep 23 '13 at 6:54













Yea when I access that link through a browser I get this mirror.colocity.com/centos/6.4/os/x86_64 mirror.ventraip.net.au/CentOS/6.4/os/x86_64 mirror.primusdatacentre.com.au/centos/6.4/os/x86_64 mirror.optus.net/centos/6.4/os/x86_64 mirror.overthewire.com.au/pub/centos/6.4/os/x86_64 mirror.internode.on.net/pub/centos/6.4/os/x86_64 centos.mirror.uber.com.au/6.4/os/x86_64 ftp.swin.edu.au/centos/6.4/os/x86_64 centos.mirror.serversaustralia.com.au/6.4/os/x86_64 mirror.mel.bkb.net.au/pub/centos/6.4/os/x86_64

– Ashwin
Sep 23 '13 at 6:58





Yea when I access that link through a browser I get this mirror.colocity.com/centos/6.4/os/x86_64 mirror.ventraip.net.au/CentOS/6.4/os/x86_64 mirror.primusdatacentre.com.au/centos/6.4/os/x86_64 mirror.optus.net/centos/6.4/os/x86_64 mirror.overthewire.com.au/pub/centos/6.4/os/x86_64 mirror.internode.on.net/pub/centos/6.4/os/x86_64 centos.mirror.uber.com.au/6.4/os/x86_64 ftp.swin.edu.au/centos/6.4/os/x86_64 centos.mirror.serversaustralia.com.au/6.4/os/x86_64 mirror.mel.bkb.net.au/pub/centos/6.4/os/x86_64

– Ashwin
Sep 23 '13 at 6:58













Yes i am behind a proxy. In order to get my firefox running through this remote server I have to export http_proxy. I did nslookup, it says server can't find it.

– Ashwin
Sep 23 '13 at 7:00





Yes i am behind a proxy. In order to get my firefox running through this remote server I have to export http_proxy. I did nslookup, it says server can't find it.

– Ashwin
Sep 23 '13 at 7:00













Do you have the proxy information configured in yum.conf?

– John
Sep 23 '13 at 11:38





Do you have the proxy information configured in yum.conf?

– John
Sep 23 '13 at 11:38










5 Answers
5






active

oldest

votes


















5














It looks like you don't have the proxy information configured in your repo file. According to http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html, you have to specify your proxy, proxy_username, and proxy_password in yum.conf. This doc is for CentOS 5, but it should hold for CentOS 6 as well.






share|improve this answer
























  • As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

    – Ashwin
    Sep 23 '13 at 23:31











  • Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

    – Ashwin
    Sep 23 '13 at 23:43



















1














In my case, I have a proxy:port settings. I edited the /etc/yum.conf file, but forgot the port number after the proxy= entry.



proxy=http://your.proxyhost.org:8080



I was seeing this exact error as stated above, so I rechecked the yum.conf file and added the correct port and it works.






share|improve this answer































    1














    I had the same issue regarding this error: Cannot find a valid baseurl for repo: base and
    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock



    As root (su - root) and provide your username password, you should be in the sudoers file.



    Then:



    vim /etc/yum.repos.d/CentOS-Base.repo


    Modify all only these three sections (base, update and extra) by adding the correct baseurl depending on your centos versions. Keep uncommented the previous baseurl.



    Just add this line in all 3 sections:



    baseurl=http://mirror.centos.org/centos/6.6/os/i386/


    The issue is that yum doesn't find the correct url (obsolete).



    I did it and yum just started uploading the packages. No Proxy needed (use proxy if your connection need it), other direct internet connection in you centos settings. Good Luck.






    share|improve this answer


























    • Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

      – John
      Sep 30 '16 at 20:31



















    0














    it cause of nameserver



    solution is



    nano /etc/resolv.conf



    and insert



    nameserver 8.8.8.8
    nameserver 8.8.4.4



    it all work!






    share|improve this answer








    New contributor



    user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















    • The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

      – Scott
      15 mins ago



















    -1














    I have come across to the same problem and got the solution after doing some network configurations changes to the file presented at /etc/sysconfig/network-scripts/your etherenet file.



    DEVICE=eth1
    BOOTPROTO=static
    ONBOOT=yes
    TYPE=Ethernet
    IPV6INIT=yes
    IPV6_AUTOCONF=no
    NETWORK=X.X.X.X
    NETMASK=X.X.X.X
    IPADDR=X.X.X.X
    GATEWAY=X.X.X.X
    DNS1=X.X.X.X
    DNS2=X.X.X.X
    USERCTL=no





    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91970%2fyum-update-error-could-not-retrieve-mirrorlist%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      It looks like you don't have the proxy information configured in your repo file. According to http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html, you have to specify your proxy, proxy_username, and proxy_password in yum.conf. This doc is for CentOS 5, but it should hold for CentOS 6 as well.






      share|improve this answer
























      • As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

        – Ashwin
        Sep 23 '13 at 23:31











      • Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

        – Ashwin
        Sep 23 '13 at 23:43
















      5














      It looks like you don't have the proxy information configured in your repo file. According to http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html, you have to specify your proxy, proxy_username, and proxy_password in yum.conf. This doc is for CentOS 5, but it should hold for CentOS 6 as well.






      share|improve this answer
























      • As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

        – Ashwin
        Sep 23 '13 at 23:31











      • Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

        – Ashwin
        Sep 23 '13 at 23:43














      5












      5








      5







      It looks like you don't have the proxy information configured in your repo file. According to http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html, you have to specify your proxy, proxy_username, and proxy_password in yum.conf. This doc is for CentOS 5, but it should hold for CentOS 6 as well.






      share|improve this answer













      It looks like you don't have the proxy information configured in your repo file. According to http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html, you have to specify your proxy, proxy_username, and proxy_password in yum.conf. This doc is for CentOS 5, but it should hold for CentOS 6 as well.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Sep 23 '13 at 11:40









      JohnJohn

      11.9k12031




      11.9k12031













      • As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

        – Ashwin
        Sep 23 '13 at 23:31











      • Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

        – Ashwin
        Sep 23 '13 at 23:43



















      • As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

        – Ashwin
        Sep 23 '13 at 23:31











      • Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

        – Ashwin
        Sep 23 '13 at 23:43

















      As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

      – Ashwin
      Sep 23 '13 at 23:31





      As you suggested I edited my yum.conf referring the link. I used export http_proxy. But now I get CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing erro: file:///etc/yum.conf [line 15]: export http_proxy I dont want to include my credentials in the file. SO I have set up proxy through the command line before editing this. What am I doing wrong?

      – Ashwin
      Sep 23 '13 at 23:31













      Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

      – Ashwin
      Sep 23 '13 at 23:43





      Awesome. As a temporary fix I included my credentials in yum.conf and it worked. Still I would love to know how to make it secure. Now any user will be able to use proxy server using my credentials.

      – Ashwin
      Sep 23 '13 at 23:43













      1














      In my case, I have a proxy:port settings. I edited the /etc/yum.conf file, but forgot the port number after the proxy= entry.



      proxy=http://your.proxyhost.org:8080



      I was seeing this exact error as stated above, so I rechecked the yum.conf file and added the correct port and it works.






      share|improve this answer




























        1














        In my case, I have a proxy:port settings. I edited the /etc/yum.conf file, but forgot the port number after the proxy= entry.



        proxy=http://your.proxyhost.org:8080



        I was seeing this exact error as stated above, so I rechecked the yum.conf file and added the correct port and it works.






        share|improve this answer


























          1












          1








          1







          In my case, I have a proxy:port settings. I edited the /etc/yum.conf file, but forgot the port number after the proxy= entry.



          proxy=http://your.proxyhost.org:8080



          I was seeing this exact error as stated above, so I rechecked the yum.conf file and added the correct port and it works.






          share|improve this answer













          In my case, I have a proxy:port settings. I edited the /etc/yum.conf file, but forgot the port number after the proxy= entry.



          proxy=http://your.proxyhost.org:8080



          I was seeing this exact error as stated above, so I rechecked the yum.conf file and added the correct port and it works.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 22 '14 at 23:45









          KenleyKenley

          112




          112























              1














              I had the same issue regarding this error: Cannot find a valid baseurl for repo: base and
              Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock



              As root (su - root) and provide your username password, you should be in the sudoers file.



              Then:



              vim /etc/yum.repos.d/CentOS-Base.repo


              Modify all only these three sections (base, update and extra) by adding the correct baseurl depending on your centos versions. Keep uncommented the previous baseurl.



              Just add this line in all 3 sections:



              baseurl=http://mirror.centos.org/centos/6.6/os/i386/


              The issue is that yum doesn't find the correct url (obsolete).



              I did it and yum just started uploading the packages. No Proxy needed (use proxy if your connection need it), other direct internet connection in you centos settings. Good Luck.






              share|improve this answer


























              • Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

                – John
                Sep 30 '16 at 20:31
















              1














              I had the same issue regarding this error: Cannot find a valid baseurl for repo: base and
              Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock



              As root (su - root) and provide your username password, you should be in the sudoers file.



              Then:



              vim /etc/yum.repos.d/CentOS-Base.repo


              Modify all only these three sections (base, update and extra) by adding the correct baseurl depending on your centos versions. Keep uncommented the previous baseurl.



              Just add this line in all 3 sections:



              baseurl=http://mirror.centos.org/centos/6.6/os/i386/


              The issue is that yum doesn't find the correct url (obsolete).



              I did it and yum just started uploading the packages. No Proxy needed (use proxy if your connection need it), other direct internet connection in you centos settings. Good Luck.






              share|improve this answer


























              • Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

                – John
                Sep 30 '16 at 20:31














              1












              1








              1







              I had the same issue regarding this error: Cannot find a valid baseurl for repo: base and
              Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock



              As root (su - root) and provide your username password, you should be in the sudoers file.



              Then:



              vim /etc/yum.repos.d/CentOS-Base.repo


              Modify all only these three sections (base, update and extra) by adding the correct baseurl depending on your centos versions. Keep uncommented the previous baseurl.



              Just add this line in all 3 sections:



              baseurl=http://mirror.centos.org/centos/6.6/os/i386/


              The issue is that yum doesn't find the correct url (obsolete).



              I did it and yum just started uploading the packages. No Proxy needed (use proxy if your connection need it), other direct internet connection in you centos settings. Good Luck.






              share|improve this answer















              I had the same issue regarding this error: Cannot find a valid baseurl for repo: base and
              Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock



              As root (su - root) and provide your username password, you should be in the sudoers file.



              Then:



              vim /etc/yum.repos.d/CentOS-Base.repo


              Modify all only these three sections (base, update and extra) by adding the correct baseurl depending on your centos versions. Keep uncommented the previous baseurl.



              Just add this line in all 3 sections:



              baseurl=http://mirror.centos.org/centos/6.6/os/i386/


              The issue is that yum doesn't find the correct url (obsolete).



              I did it and yum just started uploading the packages. No Proxy needed (use proxy if your connection need it), other direct internet connection in you centos settings. Good Luck.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Sep 30 '16 at 20:37









              John

              17313




              17313










              answered Jul 16 '15 at 15:24









              Mohamed MohamedMohamed Mohamed

              111




              111













              • Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

                – John
                Sep 30 '16 at 20:31



















              • Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

                – John
                Sep 30 '16 at 20:31

















              Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

              – John
              Sep 30 '16 at 20:31





              Could you please add all three lines that are necessary besides just baseurl? Add four space characters before code to properly format it.

              – John
              Sep 30 '16 at 20:31











              0














              it cause of nameserver



              solution is



              nano /etc/resolv.conf



              and insert



              nameserver 8.8.8.8
              nameserver 8.8.4.4



              it all work!






              share|improve this answer








              New contributor



              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















              • The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

                – Scott
                15 mins ago
















              0














              it cause of nameserver



              solution is



              nano /etc/resolv.conf



              and insert



              nameserver 8.8.8.8
              nameserver 8.8.4.4



              it all work!






              share|improve this answer








              New contributor



              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















              • The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

                – Scott
                15 mins ago














              0












              0








              0







              it cause of nameserver



              solution is



              nano /etc/resolv.conf



              and insert



              nameserver 8.8.8.8
              nameserver 8.8.4.4



              it all work!






              share|improve this answer








              New contributor



              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.









              it cause of nameserver



              solution is



              nano /etc/resolv.conf



              and insert



              nameserver 8.8.8.8
              nameserver 8.8.4.4



              it all work!







              share|improve this answer








              New contributor



              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.








              share|improve this answer



              share|improve this answer






              New contributor



              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.








              answered 54 mins ago









              user354173user354173

              1




              1




              New contributor



              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




              New contributor




              user354173 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.















              • The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

                – Scott
                15 mins ago



















              • The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

                – Scott
                15 mins ago

















              The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

              – Scott
              15 mins ago





              The OP says “I tried adding nameserver 8.8.8.8 [to my /etc/resolve.conf]. It didn't work.” Do you believe that 8.8.8.8+8.8.4.4 will be better?

              – Scott
              15 mins ago











              -1














              I have come across to the same problem and got the solution after doing some network configurations changes to the file presented at /etc/sysconfig/network-scripts/your etherenet file.



              DEVICE=eth1
              BOOTPROTO=static
              ONBOOT=yes
              TYPE=Ethernet
              IPV6INIT=yes
              IPV6_AUTOCONF=no
              NETWORK=X.X.X.X
              NETMASK=X.X.X.X
              IPADDR=X.X.X.X
              GATEWAY=X.X.X.X
              DNS1=X.X.X.X
              DNS2=X.X.X.X
              USERCTL=no





              share|improve this answer




























                -1














                I have come across to the same problem and got the solution after doing some network configurations changes to the file presented at /etc/sysconfig/network-scripts/your etherenet file.



                DEVICE=eth1
                BOOTPROTO=static
                ONBOOT=yes
                TYPE=Ethernet
                IPV6INIT=yes
                IPV6_AUTOCONF=no
                NETWORK=X.X.X.X
                NETMASK=X.X.X.X
                IPADDR=X.X.X.X
                GATEWAY=X.X.X.X
                DNS1=X.X.X.X
                DNS2=X.X.X.X
                USERCTL=no





                share|improve this answer


























                  -1












                  -1








                  -1







                  I have come across to the same problem and got the solution after doing some network configurations changes to the file presented at /etc/sysconfig/network-scripts/your etherenet file.



                  DEVICE=eth1
                  BOOTPROTO=static
                  ONBOOT=yes
                  TYPE=Ethernet
                  IPV6INIT=yes
                  IPV6_AUTOCONF=no
                  NETWORK=X.X.X.X
                  NETMASK=X.X.X.X
                  IPADDR=X.X.X.X
                  GATEWAY=X.X.X.X
                  DNS1=X.X.X.X
                  DNS2=X.X.X.X
                  USERCTL=no





                  share|improve this answer













                  I have come across to the same problem and got the solution after doing some network configurations changes to the file presented at /etc/sysconfig/network-scripts/your etherenet file.



                  DEVICE=eth1
                  BOOTPROTO=static
                  ONBOOT=yes
                  TYPE=Ethernet
                  IPV6INIT=yes
                  IPV6_AUTOCONF=no
                  NETWORK=X.X.X.X
                  NETMASK=X.X.X.X
                  IPADDR=X.X.X.X
                  GATEWAY=X.X.X.X
                  DNS1=X.X.X.X
                  DNS2=X.X.X.X
                  USERCTL=no






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 13 '17 at 12:13









                  SITARAMIREDDY SIMHADRISITARAMIREDDY SIMHADRI

                  9




                  9






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91970%2fyum-update-error-could-not-retrieve-mirrorlist%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...