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;
}
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
add a comment |
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
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
add a comment |
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
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
centos terminal yum
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
add a comment |
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
add a comment |
5 Answers
5
active
oldest
votes
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.
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
add a comment |
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.
add a comment |
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.
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
add a comment |
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!
New contributor
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Oct 22 '14 at 23:45
KenleyKenley
112
112
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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!
New contributor
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
add a comment |
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!
New contributor
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
add a comment |
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!
New contributor
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!
New contributor
New contributor
answered 54 mins ago
user354173user354173
1
1
New contributor
New contributor
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Feb 13 '17 at 12:13
SITARAMIREDDY SIMHADRISITARAMIREDDY SIMHADRI
9
9
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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