“URL not found” on “yum update”












0















I am working on CentOS 6.7. When I install the command "yum update all", I get the following error.



http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404
Not Found"


It goes on trying with other mirrors also, but fails after trying all mirrors. What I have observed is that, I can browse to the URL "http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/". in my internet explorer, but I do not find the file ""fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2". I also tried to execute the following command just so that I am sure I get the lastest CentOS repo file.



 yum reinstall
http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-7.el6.centos.12.3.x86_64.rpm


But after executing the above command, I see the same URI being mentioned in the CentOS-Base.repo file. Can anyone help me understand what am I doing wrong. I am not an expert in CentOS. Thanks.










share|improve this question





























    0















    I am working on CentOS 6.7. When I install the command "yum update all", I get the following error.



    http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2:
    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404
    Not Found"


    It goes on trying with other mirrors also, but fails after trying all mirrors. What I have observed is that, I can browse to the URL "http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/". in my internet explorer, but I do not find the file ""fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2". I also tried to execute the following command just so that I am sure I get the lastest CentOS repo file.



     yum reinstall
    http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-7.el6.centos.12.3.x86_64.rpm


    But after executing the above command, I see the same URI being mentioned in the CentOS-Base.repo file. Can anyone help me understand what am I doing wrong. I am not an expert in CentOS. Thanks.










    share|improve this question



























      0












      0








      0








      I am working on CentOS 6.7. When I install the command "yum update all", I get the following error.



      http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2:
      [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404
      Not Found"


      It goes on trying with other mirrors also, but fails after trying all mirrors. What I have observed is that, I can browse to the URL "http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/". in my internet explorer, but I do not find the file ""fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2". I also tried to execute the following command just so that I am sure I get the lastest CentOS repo file.



       yum reinstall
      http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-7.el6.centos.12.3.x86_64.rpm


      But after executing the above command, I see the same URI being mentioned in the CentOS-Base.repo file. Can anyone help me understand what am I doing wrong. I am not an expert in CentOS. Thanks.










      share|improve this question
















      I am working on CentOS 6.7. When I install the command "yum update all", I get the following error.



      http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2:
      [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404
      Not Found"


      It goes on trying with other mirrors also, but fails after trying all mirrors. What I have observed is that, I can browse to the URL "http://centos-hn.viettelidc.com.vn/6.7/updates/x86_64/repodata/". in my internet explorer, but I do not find the file ""fd8c1fcb64e32ff588e93a20dfda7f205841bc090e3c8da42c0b2c2a9cf01938-primary.sqlite.bz2". I also tried to execute the following command just so that I am sure I get the lastest CentOS repo file.



       yum reinstall
      http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-7.el6.centos.12.3.x86_64.rpm


      But after executing the above command, I see the same URI being mentioned in the CentOS-Base.repo file. Can anyone help me understand what am I doing wrong. I am not an expert in CentOS. Thanks.







      centos






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 12 '16 at 11:13









      Mongrel

      2,09631747




      2,09631747










      asked Dec 15 '15 at 9:05









      KurioZ7KurioZ7

      2584816




      2584816






















          4 Answers
          4






          active

          oldest

          votes


















          0














          What I remember is that http should be replace by https. You should do this in the repository configuration file. If you fix that, it will probably run.



          I can't find the location and name of this file on my system, which is not Centos so you have to look for that yourself. (Well it might be /etc/yum.repos.d/)






          share|improve this answer
























          • If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

            – KurioZ7
            Dec 16 '15 at 3:15



















          0














          I found the solution from the CentOS forum, which I am putting here.



          The problem was with the cached meta data. I executed "yum clean" command first to remove all the cached metadata. I then executed "yum update" which correctly downloaded all the packages.






          share|improve this answer































            0














            There are several causes of this i am listing which i faced in my experience.
            1 - Client is not able to communicate with internet
            2 - repos are not enabled.
            3 - in repofile baseurl or mirrorlist is not properly set.



            Solution for Problem # 1
            Make sure internet communication on client by pinging to any internet resource.



            root@localhost # ping 4.2.2.2     ==> If ping reply not receiving then check internet connection  


            check name resolution



            root@localhost # curl ident.me    ==> This should return your public IP if nothing returns then check your dns configuration in /etc/resolv.conf


            Solution For problem # 2
            Goto your repo files and check repositories are enabled atleast one should be enabled



            Solution For problem # 3
            Change base url from mirror list vise versa for resolution.






            share|improve this answer































              0














              The real answer to the ops question is that createrepo has to be run on the repo on the server to create the missing file. Apparently there was some change made to the repo that wasn't reflected (created by createrepo) in the repodata directory. All






              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%2f249451%2furl-not-found-on-yum-update%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                What I remember is that http should be replace by https. You should do this in the repository configuration file. If you fix that, it will probably run.



                I can't find the location and name of this file on my system, which is not Centos so you have to look for that yourself. (Well it might be /etc/yum.repos.d/)






                share|improve this answer
























                • If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

                  – KurioZ7
                  Dec 16 '15 at 3:15
















                0














                What I remember is that http should be replace by https. You should do this in the repository configuration file. If you fix that, it will probably run.



                I can't find the location and name of this file on my system, which is not Centos so you have to look for that yourself. (Well it might be /etc/yum.repos.d/)






                share|improve this answer
























                • If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

                  – KurioZ7
                  Dec 16 '15 at 3:15














                0












                0








                0







                What I remember is that http should be replace by https. You should do this in the repository configuration file. If you fix that, it will probably run.



                I can't find the location and name of this file on my system, which is not Centos so you have to look for that yourself. (Well it might be /etc/yum.repos.d/)






                share|improve this answer













                What I remember is that http should be replace by https. You should do this in the repository configuration file. If you fix that, it will probably run.



                I can't find the location and name of this file on my system, which is not Centos so you have to look for that yourself. (Well it might be /etc/yum.repos.d/)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 15 '15 at 11:53









                SPRBRNSPRBRN

                68411230




                68411230













                • If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

                  – KurioZ7
                  Dec 16 '15 at 3:15



















                • If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

                  – KurioZ7
                  Dec 16 '15 at 3:15

















                If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

                – KurioZ7
                Dec 16 '15 at 3:15





                If I replace "http" with "https" and try the URL in browser, I get "website not available", so I do not think this is a protocol issue, but rather the case of missing file. There are many CentOS-*.repo file. I do not want to manually update these repo files, unless someone suggests that there is something wrong with the URIs in these repo files

                – KurioZ7
                Dec 16 '15 at 3:15













                0














                I found the solution from the CentOS forum, which I am putting here.



                The problem was with the cached meta data. I executed "yum clean" command first to remove all the cached metadata. I then executed "yum update" which correctly downloaded all the packages.






                share|improve this answer




























                  0














                  I found the solution from the CentOS forum, which I am putting here.



                  The problem was with the cached meta data. I executed "yum clean" command first to remove all the cached metadata. I then executed "yum update" which correctly downloaded all the packages.






                  share|improve this answer


























                    0












                    0








                    0







                    I found the solution from the CentOS forum, which I am putting here.



                    The problem was with the cached meta data. I executed "yum clean" command first to remove all the cached metadata. I then executed "yum update" which correctly downloaded all the packages.






                    share|improve this answer













                    I found the solution from the CentOS forum, which I am putting here.



                    The problem was with the cached meta data. I executed "yum clean" command first to remove all the cached metadata. I then executed "yum update" which correctly downloaded all the packages.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 16 '15 at 3:54









                    KurioZ7KurioZ7

                    2584816




                    2584816























                        0














                        There are several causes of this i am listing which i faced in my experience.
                        1 - Client is not able to communicate with internet
                        2 - repos are not enabled.
                        3 - in repofile baseurl or mirrorlist is not properly set.



                        Solution for Problem # 1
                        Make sure internet communication on client by pinging to any internet resource.



                        root@localhost # ping 4.2.2.2     ==> If ping reply not receiving then check internet connection  


                        check name resolution



                        root@localhost # curl ident.me    ==> This should return your public IP if nothing returns then check your dns configuration in /etc/resolv.conf


                        Solution For problem # 2
                        Goto your repo files and check repositories are enabled atleast one should be enabled



                        Solution For problem # 3
                        Change base url from mirror list vise versa for resolution.






                        share|improve this answer




























                          0














                          There are several causes of this i am listing which i faced in my experience.
                          1 - Client is not able to communicate with internet
                          2 - repos are not enabled.
                          3 - in repofile baseurl or mirrorlist is not properly set.



                          Solution for Problem # 1
                          Make sure internet communication on client by pinging to any internet resource.



                          root@localhost # ping 4.2.2.2     ==> If ping reply not receiving then check internet connection  


                          check name resolution



                          root@localhost # curl ident.me    ==> This should return your public IP if nothing returns then check your dns configuration in /etc/resolv.conf


                          Solution For problem # 2
                          Goto your repo files and check repositories are enabled atleast one should be enabled



                          Solution For problem # 3
                          Change base url from mirror list vise versa for resolution.






                          share|improve this answer


























                            0












                            0








                            0







                            There are several causes of this i am listing which i faced in my experience.
                            1 - Client is not able to communicate with internet
                            2 - repos are not enabled.
                            3 - in repofile baseurl or mirrorlist is not properly set.



                            Solution for Problem # 1
                            Make sure internet communication on client by pinging to any internet resource.



                            root@localhost # ping 4.2.2.2     ==> If ping reply not receiving then check internet connection  


                            check name resolution



                            root@localhost # curl ident.me    ==> This should return your public IP if nothing returns then check your dns configuration in /etc/resolv.conf


                            Solution For problem # 2
                            Goto your repo files and check repositories are enabled atleast one should be enabled



                            Solution For problem # 3
                            Change base url from mirror list vise versa for resolution.






                            share|improve this answer













                            There are several causes of this i am listing which i faced in my experience.
                            1 - Client is not able to communicate with internet
                            2 - repos are not enabled.
                            3 - in repofile baseurl or mirrorlist is not properly set.



                            Solution for Problem # 1
                            Make sure internet communication on client by pinging to any internet resource.



                            root@localhost # ping 4.2.2.2     ==> If ping reply not receiving then check internet connection  


                            check name resolution



                            root@localhost # curl ident.me    ==> This should return your public IP if nothing returns then check your dns configuration in /etc/resolv.conf


                            Solution For problem # 2
                            Goto your repo files and check repositories are enabled atleast one should be enabled



                            Solution For problem # 3
                            Change base url from mirror list vise versa for resolution.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 27 '18 at 7:53









                            Mansur AliMansur Ali

                            1853




                            1853























                                0














                                The real answer to the ops question is that createrepo has to be run on the repo on the server to create the missing file. Apparently there was some change made to the repo that wasn't reflected (created by createrepo) in the repodata directory. All






                                share|improve this answer




























                                  0














                                  The real answer to the ops question is that createrepo has to be run on the repo on the server to create the missing file. Apparently there was some change made to the repo that wasn't reflected (created by createrepo) in the repodata directory. All






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    The real answer to the ops question is that createrepo has to be run on the repo on the server to create the missing file. Apparently there was some change made to the repo that wasn't reflected (created by createrepo) in the repodata directory. All






                                    share|improve this answer













                                    The real answer to the ops question is that createrepo has to be run on the repo on the server to create the missing file. Apparently there was some change made to the repo that wasn't reflected (created by createrepo) in the repodata directory. All







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Feb 12 at 20:39









                                    LarryLarry

                                    194




                                    194






























                                        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%2f249451%2furl-not-found-on-yum-update%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

                                        How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                                        is 'sed' thread safe

                                        How to make a Squid Proxy server?