I can not install MySQL using yum on Centos7 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionHow to create Local Repositories in RHELUnable to install yum and mysql,sshyum remove is not idempotentyum repository install issue with cent os 7Unable to install packages from local repo - RHEL 7.3CentOS 7 Cannot Install MySQL 5.7 nothing I have done works still trys to instll mariadbMysql yum install how to get right dependencies Centos 6.9kernel headers and kernel develIssue with elrepo-kernel: packages are not availableface error in installing mysql on AMI linux centos 2017-09

Identify plant with long narrow paired leaves and reddish stems

Fundamental Solution of the Pell Equation

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Seeking colloquialism for “just because”

In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?

How to answer "Have you ever been terminated?"

What does "fit" mean in this sentence?

String `!23` is replaced with `docker` in command line

Single word antonym of "flightless"

prime numbers and expressing non-prime numbers

What to do with chalk when deepwater soloing?

Can a USB port passively 'listen only'?

List *all* the tuples!

The logistics of corpse disposal

Why do we bend a book to keep it straight?

If a contract sometimes uses the wrong name, is it still valid?

List of Python versions

Do I really need recursive chmod to restrict access to a folder?

What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?

What would be the ideal power source for a cybernetic eye?

How come Sam didn't become Lord of Horn Hill?

How to react to hostile behavior from a senior developer?

How to run gsettings for another user Ubuntu 18.04.2 LTS

Book where humans were engineered with genes from animal species to survive hostile planets



I can not install MySQL using yum on Centos7



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionHow to create Local Repositories in RHELUnable to install yum and mysql,sshyum remove is not idempotentyum repository install issue with cent os 7Unable to install packages from local repo - RHEL 7.3CentOS 7 Cannot Install MySQL 5.7 nothing I have done works still trys to instll mariadbMysql yum install how to get right dependencies Centos 6.9kernel headers and kernel develIssue with elrepo-kernel: packages are not availableface error in installing mysql on AMI linux centos 2017-09



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








2















I've installed centos7 recently, but, when I am trying to install MySQL using the command:



yum install mysql-community-server


I keep getting Exiting on user cancel while I am not hitting any keyboard button. Here is the output:



install 2 Packages (+9 Dependent packages)
Total size: 80 M Total download size: 79 M Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base No Presto metadata available for mysql56-community mysql-community-client-5.6.24-3.el7.x86_64.rpm |7.6 MB 00:32 ... mysql-community-server-5.6.24-3.el7.x86_64.rpm | 46MB 00:41 ... mysql-community-libs-5.6.24-3.el7.x86_64.rpm | 0 B 00:30 ... (1/9): mysql-community-cli 0% [ ] 4.7 kB/s | 159 kB 283:33 ETA

Exiting on user cancel


What is the problem? Why I can not install it? What is the solution?



Note: My yum has the following plugins: fastmirror, axelget, langpacks.










share|improve this question
























  • Are you using VirtualBox?

    – serenesat
    May 25 '15 at 13:27











  • no, I am not using Virtualbox, I have centos7 installed beside windows7 on my laptop

    – Бассел Жаббор
    May 25 '15 at 13:44











  • Did you try that command I have written in answer?

    – serenesat
    May 26 '15 at 5:12











  • You need to use MariaDB as MySql is not used any more by redhat-like distros. See one of the answers bellow

    – Spirit
    Sep 17 '16 at 16:58

















2















I've installed centos7 recently, but, when I am trying to install MySQL using the command:



yum install mysql-community-server


I keep getting Exiting on user cancel while I am not hitting any keyboard button. Here is the output:



install 2 Packages (+9 Dependent packages)
Total size: 80 M Total download size: 79 M Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base No Presto metadata available for mysql56-community mysql-community-client-5.6.24-3.el7.x86_64.rpm |7.6 MB 00:32 ... mysql-community-server-5.6.24-3.el7.x86_64.rpm | 46MB 00:41 ... mysql-community-libs-5.6.24-3.el7.x86_64.rpm | 0 B 00:30 ... (1/9): mysql-community-cli 0% [ ] 4.7 kB/s | 159 kB 283:33 ETA

Exiting on user cancel


What is the problem? Why I can not install it? What is the solution?



Note: My yum has the following plugins: fastmirror, axelget, langpacks.










share|improve this question
























  • Are you using VirtualBox?

    – serenesat
    May 25 '15 at 13:27











  • no, I am not using Virtualbox, I have centos7 installed beside windows7 on my laptop

    – Бассел Жаббор
    May 25 '15 at 13:44











  • Did you try that command I have written in answer?

    – serenesat
    May 26 '15 at 5:12











  • You need to use MariaDB as MySql is not used any more by redhat-like distros. See one of the answers bellow

    – Spirit
    Sep 17 '16 at 16:58













2












2








2


2






I've installed centos7 recently, but, when I am trying to install MySQL using the command:



yum install mysql-community-server


I keep getting Exiting on user cancel while I am not hitting any keyboard button. Here is the output:



install 2 Packages (+9 Dependent packages)
Total size: 80 M Total download size: 79 M Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base No Presto metadata available for mysql56-community mysql-community-client-5.6.24-3.el7.x86_64.rpm |7.6 MB 00:32 ... mysql-community-server-5.6.24-3.el7.x86_64.rpm | 46MB 00:41 ... mysql-community-libs-5.6.24-3.el7.x86_64.rpm | 0 B 00:30 ... (1/9): mysql-community-cli 0% [ ] 4.7 kB/s | 159 kB 283:33 ETA

Exiting on user cancel


What is the problem? Why I can not install it? What is the solution?



Note: My yum has the following plugins: fastmirror, axelget, langpacks.










share|improve this question
















I've installed centos7 recently, but, when I am trying to install MySQL using the command:



yum install mysql-community-server


I keep getting Exiting on user cancel while I am not hitting any keyboard button. Here is the output:



install 2 Packages (+9 Dependent packages)
Total size: 80 M Total download size: 79 M Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base No Presto metadata available for mysql56-community mysql-community-client-5.6.24-3.el7.x86_64.rpm |7.6 MB 00:32 ... mysql-community-server-5.6.24-3.el7.x86_64.rpm | 46MB 00:41 ... mysql-community-libs-5.6.24-3.el7.x86_64.rpm | 0 B 00:30 ... (1/9): mysql-community-cli 0% [ ] 4.7 kB/s | 159 kB 283:33 ETA

Exiting on user cancel


What is the problem? Why I can not install it? What is the solution?



Note: My yum has the following plugins: fastmirror, axelget, langpacks.







linux centos yum mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 25 '15 at 13:42









serenesat

9391820




9391820










asked May 25 '15 at 12:18









Бассел ЖабборБассел Жаббор

1113




1113












  • Are you using VirtualBox?

    – serenesat
    May 25 '15 at 13:27











  • no, I am not using Virtualbox, I have centos7 installed beside windows7 on my laptop

    – Бассел Жаббор
    May 25 '15 at 13:44











  • Did you try that command I have written in answer?

    – serenesat
    May 26 '15 at 5:12











  • You need to use MariaDB as MySql is not used any more by redhat-like distros. See one of the answers bellow

    – Spirit
    Sep 17 '16 at 16:58

















  • Are you using VirtualBox?

    – serenesat
    May 25 '15 at 13:27











  • no, I am not using Virtualbox, I have centos7 installed beside windows7 on my laptop

    – Бассел Жаббор
    May 25 '15 at 13:44











  • Did you try that command I have written in answer?

    – serenesat
    May 26 '15 at 5:12











  • You need to use MariaDB as MySql is not used any more by redhat-like distros. See one of the answers bellow

    – Spirit
    Sep 17 '16 at 16:58
















Are you using VirtualBox?

– serenesat
May 25 '15 at 13:27





Are you using VirtualBox?

– serenesat
May 25 '15 at 13:27













no, I am not using Virtualbox, I have centos7 installed beside windows7 on my laptop

– Бассел Жаббор
May 25 '15 at 13:44





no, I am not using Virtualbox, I have centos7 installed beside windows7 on my laptop

– Бассел Жаббор
May 25 '15 at 13:44













Did you try that command I have written in answer?

– serenesat
May 26 '15 at 5:12





Did you try that command I have written in answer?

– serenesat
May 26 '15 at 5:12













You need to use MariaDB as MySql is not used any more by redhat-like distros. See one of the answers bellow

– Spirit
Sep 17 '16 at 16:58





You need to use MariaDB as MySql is not used any more by redhat-like distros. See one of the answers bellow

– Spirit
Sep 17 '16 at 16:58










6 Answers
6






active

oldest

votes


















2














MariaDB is a fork of MySQL. RedHat Enterprise Linux and its derivatives have shifted to MariaDB from MySQL. So you can install mariadb-server on CentOS7 using this command yum install mariadb-server mariadb. Here is a good step by step tutorial how you can do this in p.8 Install MariaDB Database or you can use this source for that Mariadb step by step






share|improve this answer






























    2














    Try cleaning yum:



    yum clean all


    Hope you have done this:



    Create a new file /etc/yum.repos.d/mysql-community.repo with the desired version.



    For 5.7, add the lines below:



    [mysql57-community]
    name=MySQL 5.7 Community Server
    baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


    For 5.6, add the lines below:



    [mysql56-community]
    name=MySQL 5.6 Community Server
    baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


    (use .../el/6/... for CentOS 6)



    Then try the below command:



    yum install mysql-community-server





    share|improve this answer

























    • Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

      – Mongrel
      Jan 15 '16 at 14:13


















    0














    try $sudo yum update



    then if you correctly configure mirrors it will update packege db.



    try install mysql once more using $sudo yum install mysql-community-server



    if you don't have sudo installed then $su



    and install sudo #yum install sudo






    share|improve this answer






























      0














      Do you have the relevant repo file in /etc/yum.repos.d/? It is not by default on my CentOS7 system. They've made it easy for you to install this first: Go to http://dev.mysql.com/downloads/repo/yum/ and download the file and install it "manually" with rpm. Then your yum command should work.






      share|improve this answer






























        0














        The problem is that yum gives you the wrong error because of one bug. To solve it and see the real error, you need to apply this fix I found here.




        There is a bug in python-urlgrabber that is used by yum that results
        in the wrong error being generated. It was noticed during the el7 beta
        and reported but it appears not to have been fixed. The problem is
        that the mirror that you are connecting to is interrupting the
        connection and yum currently sees that as an error and terminates
        rather than just trying another mirror.



        If you don't mind editing files that are meant to be owned by the rpm
        then you can fix this or at least mitigate its effects. Edit
        /usr/lib/python2.7/site-packages/urlgrabber/grabber.py and find line
        1510 where it currently says:



        python CODE: SELECT ALL
        elif errcode in (42, 55, 56):



        and change that back to what it was before



        python CODE: SELECT ALL
        elif errcode == 42:







        share|improve this answer
































          0














          Try this command:



          sudo bash -c 'yum clean metadata && yum upgrade'


          After that install.






          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%2f205500%2fi-can-not-install-mysql-using-yum-on-centos7%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            6 Answers
            6






            active

            oldest

            votes








            6 Answers
            6






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            MariaDB is a fork of MySQL. RedHat Enterprise Linux and its derivatives have shifted to MariaDB from MySQL. So you can install mariadb-server on CentOS7 using this command yum install mariadb-server mariadb. Here is a good step by step tutorial how you can do this in p.8 Install MariaDB Database or you can use this source for that Mariadb step by step






            share|improve this answer



























              2














              MariaDB is a fork of MySQL. RedHat Enterprise Linux and its derivatives have shifted to MariaDB from MySQL. So you can install mariadb-server on CentOS7 using this command yum install mariadb-server mariadb. Here is a good step by step tutorial how you can do this in p.8 Install MariaDB Database or you can use this source for that Mariadb step by step






              share|improve this answer

























                2












                2








                2







                MariaDB is a fork of MySQL. RedHat Enterprise Linux and its derivatives have shifted to MariaDB from MySQL. So you can install mariadb-server on CentOS7 using this command yum install mariadb-server mariadb. Here is a good step by step tutorial how you can do this in p.8 Install MariaDB Database or you can use this source for that Mariadb step by step






                share|improve this answer













                MariaDB is a fork of MySQL. RedHat Enterprise Linux and its derivatives have shifted to MariaDB from MySQL. So you can install mariadb-server on CentOS7 using this command yum install mariadb-server mariadb. Here is a good step by step tutorial how you can do this in p.8 Install MariaDB Database or you can use this source for that Mariadb step by step







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 19 '16 at 11:44









                fuserfuser

                34611020




                34611020























                    2














                    Try cleaning yum:



                    yum clean all


                    Hope you have done this:



                    Create a new file /etc/yum.repos.d/mysql-community.repo with the desired version.



                    For 5.7, add the lines below:



                    [mysql57-community]
                    name=MySQL 5.7 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    For 5.6, add the lines below:



                    [mysql56-community]
                    name=MySQL 5.6 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    (use .../el/6/... for CentOS 6)



                    Then try the below command:



                    yum install mysql-community-server





                    share|improve this answer

























                    • Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

                      – Mongrel
                      Jan 15 '16 at 14:13















                    2














                    Try cleaning yum:



                    yum clean all


                    Hope you have done this:



                    Create a new file /etc/yum.repos.d/mysql-community.repo with the desired version.



                    For 5.7, add the lines below:



                    [mysql57-community]
                    name=MySQL 5.7 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    For 5.6, add the lines below:



                    [mysql56-community]
                    name=MySQL 5.6 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    (use .../el/6/... for CentOS 6)



                    Then try the below command:



                    yum install mysql-community-server





                    share|improve this answer

























                    • Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

                      – Mongrel
                      Jan 15 '16 at 14:13













                    2












                    2








                    2







                    Try cleaning yum:



                    yum clean all


                    Hope you have done this:



                    Create a new file /etc/yum.repos.d/mysql-community.repo with the desired version.



                    For 5.7, add the lines below:



                    [mysql57-community]
                    name=MySQL 5.7 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    For 5.6, add the lines below:



                    [mysql56-community]
                    name=MySQL 5.6 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    (use .../el/6/... for CentOS 6)



                    Then try the below command:



                    yum install mysql-community-server





                    share|improve this answer















                    Try cleaning yum:



                    yum clean all


                    Hope you have done this:



                    Create a new file /etc/yum.repos.d/mysql-community.repo with the desired version.



                    For 5.7, add the lines below:



                    [mysql57-community]
                    name=MySQL 5.7 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    For 5.6, add the lines below:



                    [mysql56-community]
                    name=MySQL 5.6 Community Server
                    baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
                    enabled=1
                    gpgcheck=1
                    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


                    (use .../el/6/... for CentOS 6)



                    Then try the below command:



                    yum install mysql-community-server






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 17 '16 at 17:58









                    Ned64

                    2,64911338




                    2,64911338










                    answered Jan 15 '16 at 14:11









                    MongrelMongrel

                    2,12331849




                    2,12331849












                    • Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

                      – Mongrel
                      Jan 15 '16 at 14:13

















                    • Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

                      – Mongrel
                      Jan 15 '16 at 14:13
















                    Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

                    – Mongrel
                    Jan 15 '16 at 14:13





                    Are you behind a web proxy? Try adding http_caching=packages to your /etc/yum.conf and see if that helps.

                    – Mongrel
                    Jan 15 '16 at 14:13











                    0














                    try $sudo yum update



                    then if you correctly configure mirrors it will update packege db.



                    try install mysql once more using $sudo yum install mysql-community-server



                    if you don't have sudo installed then $su



                    and install sudo #yum install sudo






                    share|improve this answer



























                      0














                      try $sudo yum update



                      then if you correctly configure mirrors it will update packege db.



                      try install mysql once more using $sudo yum install mysql-community-server



                      if you don't have sudo installed then $su



                      and install sudo #yum install sudo






                      share|improve this answer

























                        0












                        0








                        0







                        try $sudo yum update



                        then if you correctly configure mirrors it will update packege db.



                        try install mysql once more using $sudo yum install mysql-community-server



                        if you don't have sudo installed then $su



                        and install sudo #yum install sudo






                        share|improve this answer













                        try $sudo yum update



                        then if you correctly configure mirrors it will update packege db.



                        try install mysql once more using $sudo yum install mysql-community-server



                        if you don't have sudo installed then $su



                        and install sudo #yum install sudo







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered May 25 '15 at 12:40









                        uchenicuchenic

                        62




                        62





















                            0














                            Do you have the relevant repo file in /etc/yum.repos.d/? It is not by default on my CentOS7 system. They've made it easy for you to install this first: Go to http://dev.mysql.com/downloads/repo/yum/ and download the file and install it "manually" with rpm. Then your yum command should work.






                            share|improve this answer



























                              0














                              Do you have the relevant repo file in /etc/yum.repos.d/? It is not by default on my CentOS7 system. They've made it easy for you to install this first: Go to http://dev.mysql.com/downloads/repo/yum/ and download the file and install it "manually" with rpm. Then your yum command should work.






                              share|improve this answer

























                                0












                                0








                                0







                                Do you have the relevant repo file in /etc/yum.repos.d/? It is not by default on my CentOS7 system. They've made it easy for you to install this first: Go to http://dev.mysql.com/downloads/repo/yum/ and download the file and install it "manually" with rpm. Then your yum command should work.






                                share|improve this answer













                                Do you have the relevant repo file in /etc/yum.repos.d/? It is not by default on my CentOS7 system. They've made it easy for you to install this first: Go to http://dev.mysql.com/downloads/repo/yum/ and download the file and install it "manually" with rpm. Then your yum command should work.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered May 26 '15 at 16:58









                                OtheusOtheus

                                3,5041134




                                3,5041134





















                                    0














                                    The problem is that yum gives you the wrong error because of one bug. To solve it and see the real error, you need to apply this fix I found here.




                                    There is a bug in python-urlgrabber that is used by yum that results
                                    in the wrong error being generated. It was noticed during the el7 beta
                                    and reported but it appears not to have been fixed. The problem is
                                    that the mirror that you are connecting to is interrupting the
                                    connection and yum currently sees that as an error and terminates
                                    rather than just trying another mirror.



                                    If you don't mind editing files that are meant to be owned by the rpm
                                    then you can fix this or at least mitigate its effects. Edit
                                    /usr/lib/python2.7/site-packages/urlgrabber/grabber.py and find line
                                    1510 where it currently says:



                                    python CODE: SELECT ALL
                                    elif errcode in (42, 55, 56):



                                    and change that back to what it was before



                                    python CODE: SELECT ALL
                                    elif errcode == 42:







                                    share|improve this answer





























                                      0














                                      The problem is that yum gives you the wrong error because of one bug. To solve it and see the real error, you need to apply this fix I found here.




                                      There is a bug in python-urlgrabber that is used by yum that results
                                      in the wrong error being generated. It was noticed during the el7 beta
                                      and reported but it appears not to have been fixed. The problem is
                                      that the mirror that you are connecting to is interrupting the
                                      connection and yum currently sees that as an error and terminates
                                      rather than just trying another mirror.



                                      If you don't mind editing files that are meant to be owned by the rpm
                                      then you can fix this or at least mitigate its effects. Edit
                                      /usr/lib/python2.7/site-packages/urlgrabber/grabber.py and find line
                                      1510 where it currently says:



                                      python CODE: SELECT ALL
                                      elif errcode in (42, 55, 56):



                                      and change that back to what it was before



                                      python CODE: SELECT ALL
                                      elif errcode == 42:







                                      share|improve this answer



























                                        0












                                        0








                                        0







                                        The problem is that yum gives you the wrong error because of one bug. To solve it and see the real error, you need to apply this fix I found here.




                                        There is a bug in python-urlgrabber that is used by yum that results
                                        in the wrong error being generated. It was noticed during the el7 beta
                                        and reported but it appears not to have been fixed. The problem is
                                        that the mirror that you are connecting to is interrupting the
                                        connection and yum currently sees that as an error and terminates
                                        rather than just trying another mirror.



                                        If you don't mind editing files that are meant to be owned by the rpm
                                        then you can fix this or at least mitigate its effects. Edit
                                        /usr/lib/python2.7/site-packages/urlgrabber/grabber.py and find line
                                        1510 where it currently says:



                                        python CODE: SELECT ALL
                                        elif errcode in (42, 55, 56):



                                        and change that back to what it was before



                                        python CODE: SELECT ALL
                                        elif errcode == 42:







                                        share|improve this answer















                                        The problem is that yum gives you the wrong error because of one bug. To solve it and see the real error, you need to apply this fix I found here.




                                        There is a bug in python-urlgrabber that is used by yum that results
                                        in the wrong error being generated. It was noticed during the el7 beta
                                        and reported but it appears not to have been fixed. The problem is
                                        that the mirror that you are connecting to is interrupting the
                                        connection and yum currently sees that as an error and terminates
                                        rather than just trying another mirror.



                                        If you don't mind editing files that are meant to be owned by the rpm
                                        then you can fix this or at least mitigate its effects. Edit
                                        /usr/lib/python2.7/site-packages/urlgrabber/grabber.py and find line
                                        1510 where it currently says:



                                        python CODE: SELECT ALL
                                        elif errcode in (42, 55, 56):



                                        and change that back to what it was before



                                        python CODE: SELECT ALL
                                        elif errcode == 42:








                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Jan 15 '16 at 14:00









                                        Kevdog777

                                        2,116123460




                                        2,116123460










                                        answered Jan 15 '16 at 13:49









                                        pleerockpleerock

                                        1011




                                        1011





















                                            0














                                            Try this command:



                                            sudo bash -c 'yum clean metadata && yum upgrade'


                                            After that install.






                                            share|improve this answer





























                                              0














                                              Try this command:



                                              sudo bash -c 'yum clean metadata && yum upgrade'


                                              After that install.






                                              share|improve this answer



























                                                0












                                                0








                                                0







                                                Try this command:



                                                sudo bash -c 'yum clean metadata && yum upgrade'


                                                After that install.






                                                share|improve this answer















                                                Try this command:



                                                sudo bash -c 'yum clean metadata && yum upgrade'


                                                After that install.







                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited 9 hours ago









                                                Rui F Ribeiro

                                                42.1k1484142




                                                42.1k1484142










                                                answered May 25 '15 at 13:32









                                                serenesatserenesat

                                                9391820




                                                9391820



























                                                    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%2f205500%2fi-can-not-install-mysql-using-yum-on-centos7%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







                                                    -centos, linux, mysql, yum

                                                    Popular posts from this blog

                                                    Frič See also Navigation menuinternal link

                                                    Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

                                                    fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox