Error: Cannot find a valid baseurl for repo: base











up vote
1
down vote

favorite












When I say



# yum update


This is output:



Loaded plugins: fastestmirror, replace, security
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. $releasever is not a valid and current release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base


update



This is my base repo:



# cat CentOS-Base.repo 
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6









share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Just another question. Do you need to configure a proxy? If so, did you configure it?
    – mnille
    Mar 14 '16 at 9:17










  • No I didn't need////
    – MLSC
    Mar 14 '16 at 9:26










  • Have you tried un-commenting baseurl, if not then, please try and show us the output. if you have elink or link then please try to open the link from command line change the line for example releasever10.
    – Mongrel
    Mar 14 '16 at 10:58










  • Yes I uncomment base url... the out put is: Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
    – MLSC
    Mar 14 '16 at 11:08










  • You have a working internet connection right. Check your iptables -L & show us the output. do yum clean all also
    – Mongrel
    Mar 14 '16 at 11:52

















up vote
1
down vote

favorite












When I say



# yum update


This is output:



Loaded plugins: fastestmirror, replace, security
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. $releasever is not a valid and current release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base


update



This is my base repo:



# cat CentOS-Base.repo 
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6









share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Just another question. Do you need to configure a proxy? If so, did you configure it?
    – mnille
    Mar 14 '16 at 9:17










  • No I didn't need////
    – MLSC
    Mar 14 '16 at 9:26










  • Have you tried un-commenting baseurl, if not then, please try and show us the output. if you have elink or link then please try to open the link from command line change the line for example releasever10.
    – Mongrel
    Mar 14 '16 at 10:58










  • Yes I uncomment base url... the out put is: Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
    – MLSC
    Mar 14 '16 at 11:08










  • You have a working internet connection right. Check your iptables -L & show us the output. do yum clean all also
    – Mongrel
    Mar 14 '16 at 11:52















up vote
1
down vote

favorite









up vote
1
down vote

favorite











When I say



# yum update


This is output:



Loaded plugins: fastestmirror, replace, security
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. $releasever is not a valid and current release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base


update



This is my base repo:



# cat CentOS-Base.repo 
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6









share|improve this question















When I say



# yum update


This is output:



Loaded plugins: fastestmirror, replace, security
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. $releasever is not a valid and current release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base


update



This is my base repo:



# cat CentOS-Base.repo 
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#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&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6






centos yum repository






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 14 '16 at 8:41

























asked Mar 14 '16 at 8:23









MLSC

48251726




48251726





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Just another question. Do you need to configure a proxy? If so, did you configure it?
    – mnille
    Mar 14 '16 at 9:17










  • No I didn't need////
    – MLSC
    Mar 14 '16 at 9:26










  • Have you tried un-commenting baseurl, if not then, please try and show us the output. if you have elink or link then please try to open the link from command line change the line for example releasever10.
    – Mongrel
    Mar 14 '16 at 10:58










  • Yes I uncomment base url... the out put is: Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
    – MLSC
    Mar 14 '16 at 11:08










  • You have a working internet connection right. Check your iptables -L & show us the output. do yum clean all also
    – Mongrel
    Mar 14 '16 at 11:52




















  • Just another question. Do you need to configure a proxy? If so, did you configure it?
    – mnille
    Mar 14 '16 at 9:17










  • No I didn't need////
    – MLSC
    Mar 14 '16 at 9:26










  • Have you tried un-commenting baseurl, if not then, please try and show us the output. if you have elink or link then please try to open the link from command line change the line for example releasever10.
    – Mongrel
    Mar 14 '16 at 10:58










  • Yes I uncomment base url... the out put is: Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
    – MLSC
    Mar 14 '16 at 11:08










  • You have a working internet connection right. Check your iptables -L & show us the output. do yum clean all also
    – Mongrel
    Mar 14 '16 at 11:52


















Just another question. Do you need to configure a proxy? If so, did you configure it?
– mnille
Mar 14 '16 at 9:17




Just another question. Do you need to configure a proxy? If so, did you configure it?
– mnille
Mar 14 '16 at 9:17












No I didn't need////
– MLSC
Mar 14 '16 at 9:26




No I didn't need////
– MLSC
Mar 14 '16 at 9:26












Have you tried un-commenting baseurl, if not then, please try and show us the output. if you have elink or link then please try to open the link from command line change the line for example releasever10.
– Mongrel
Mar 14 '16 at 10:58




Have you tried un-commenting baseurl, if not then, please try and show us the output. if you have elink or link then please try to open the link from command line change the line for example releasever10.
– Mongrel
Mar 14 '16 at 10:58












Yes I uncomment base url... the out put is: Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
– MLSC
Mar 14 '16 at 11:08




Yes I uncomment base url... the out put is: Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
– MLSC
Mar 14 '16 at 11:08












You have a working internet connection right. Check your iptables -L & show us the output. do yum clean all also
– Mongrel
Mar 14 '16 at 11:52






You have a working internet connection right. Check your iptables -L & show us the output. do yum clean all also
– Mongrel
Mar 14 '16 at 11:52












1 Answer
1






active

oldest

votes

















up vote
0
down vote













That's probably because the CentOS version you're using reached end-of-life, which means that no new updates will be released by Red Hat, so the tree has been moved to vault.centos.org, and the baseurl= links in the /etc/yum.repos.d/CentOS-Base.repo files should refer to that link.



Please see
https://unix.stackexchange.com/a/359927/112443






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',
    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%2f269618%2ferror-cannot-find-a-valid-baseurl-for-repo-base%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    That's probably because the CentOS version you're using reached end-of-life, which means that no new updates will be released by Red Hat, so the tree has been moved to vault.centos.org, and the baseurl= links in the /etc/yum.repos.d/CentOS-Base.repo files should refer to that link.



    Please see
    https://unix.stackexchange.com/a/359927/112443






    share|improve this answer

























      up vote
      0
      down vote













      That's probably because the CentOS version you're using reached end-of-life, which means that no new updates will be released by Red Hat, so the tree has been moved to vault.centos.org, and the baseurl= links in the /etc/yum.repos.d/CentOS-Base.repo files should refer to that link.



      Please see
      https://unix.stackexchange.com/a/359927/112443






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        That's probably because the CentOS version you're using reached end-of-life, which means that no new updates will be released by Red Hat, so the tree has been moved to vault.centos.org, and the baseurl= links in the /etc/yum.repos.d/CentOS-Base.repo files should refer to that link.



        Please see
        https://unix.stackexchange.com/a/359927/112443






        share|improve this answer












        That's probably because the CentOS version you're using reached end-of-life, which means that no new updates will be released by Red Hat, so the tree has been moved to vault.centos.org, and the baseurl= links in the /etc/yum.repos.d/CentOS-Base.repo files should refer to that link.



        Please see
        https://unix.stackexchange.com/a/359927/112443







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 6 at 15:01









        Oz Edri

        1012




        1012






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f269618%2ferror-cannot-find-a-valid-baseurl-for-repo-base%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

            Entries order in /etc/network/interfaces

            新発田市

            Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)