Why can't I install mysql-server in standard way?












0















I am trying to install mysql-server but I got this error:



$ sudo apt-get install mysql-server 
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.25-0ubuntu0.18.04.2).
The following package was automatically installed and is no longer required:
python-gi
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.7 (5.7.25-0ubuntu0.18.04.2) ...
Renaming removed key_buffer and myisam-recover options (if present)
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade
dpkg: error processing package mysql-server-5.7 (--configure):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


As I understand from the error I need to make some configurations on mine dependency of mysql-server-5.7. Is it?










share|improve this question





























    0















    I am trying to install mysql-server but I got this error:



    $ sudo apt-get install mysql-server 
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    mysql-server is already the newest version (5.7.25-0ubuntu0.18.04.2).
    The following package was automatically installed and is no longer required:
    python-gi
    Use 'sudo apt autoremove' to remove it.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up mysql-server-5.7 (5.7.25-0ubuntu0.18.04.2) ...
    Renaming removed key_buffer and myisam-recover options (if present)
    Checking if update is needed.
    This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade
    dpkg: error processing package mysql-server-5.7 (--configure):
    installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of mysql-server:
    mysql-server depends on mysql-server-5.7; however:
    Package mysql-server-5.7 is not configured yet.

    dpkg: error processing package mysql-server (--configure):
    dependency problems - leaving unconfigured
    No apport report written because the error message indicates its a followup error from a previous failure.
    Errors were encountered while processing:
    mysql-server-5.7
    mysql-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    As I understand from the error I need to make some configurations on mine dependency of mysql-server-5.7. Is it?










    share|improve this question



























      0












      0








      0








      I am trying to install mysql-server but I got this error:



      $ sudo apt-get install mysql-server 
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      mysql-server is already the newest version (5.7.25-0ubuntu0.18.04.2).
      The following package was automatically installed and is no longer required:
      python-gi
      Use 'sudo apt autoremove' to remove it.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      2 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Setting up mysql-server-5.7 (5.7.25-0ubuntu0.18.04.2) ...
      Renaming removed key_buffer and myisam-recover options (if present)
      Checking if update is needed.
      This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade
      dpkg: error processing package mysql-server-5.7 (--configure):
      installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
      dpkg: dependency problems prevent configuration of mysql-server:
      mysql-server depends on mysql-server-5.7; however:
      Package mysql-server-5.7 is not configured yet.

      dpkg: error processing package mysql-server (--configure):
      dependency problems - leaving unconfigured
      No apport report written because the error message indicates its a followup error from a previous failure.
      Errors were encountered while processing:
      mysql-server-5.7
      mysql-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      As I understand from the error I need to make some configurations on mine dependency of mysql-server-5.7. Is it?










      share|improve this question
















      I am trying to install mysql-server but I got this error:



      $ sudo apt-get install mysql-server 
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      mysql-server is already the newest version (5.7.25-0ubuntu0.18.04.2).
      The following package was automatically installed and is no longer required:
      python-gi
      Use 'sudo apt autoremove' to remove it.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      2 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Setting up mysql-server-5.7 (5.7.25-0ubuntu0.18.04.2) ...
      Renaming removed key_buffer and myisam-recover options (if present)
      Checking if update is needed.
      This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade
      dpkg: error processing package mysql-server-5.7 (--configure):
      installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
      dpkg: dependency problems prevent configuration of mysql-server:
      mysql-server depends on mysql-server-5.7; however:
      Package mysql-server-5.7 is not configured yet.

      dpkg: error processing package mysql-server (--configure):
      dependency problems - leaving unconfigured
      No apport report written because the error message indicates its a followup error from a previous failure.
      Errors were encountered while processing:
      mysql-server-5.7
      mysql-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      As I understand from the error I need to make some configurations on mine dependency of mysql-server-5.7. Is it?







      software-installation mysql






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday









      Kulfy

      4,44651542




      4,44651542










      asked yesterday









      Maks.BurkovMaks.Burkov

      12817




      12817






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Maybe a duplicate of this question:
          dpkg: error processing package mysql-server (--configure)




          You have subprocess installed post-installation script returned error exit status 1 , post-installation script is *.postinst file. In your case /var/lib/dpkg/info/mysql-server-5.5.postinst which run on configure step of the package installation. When it does fail, you are locked in, because even remove operation will try complete the stopped configure step tehn remove package. So open /var/lib/dpkg/info/mysql-server-5.5.postinst & manually edit it and add set -e on 2nd line to ignore any error (basically invoke-rc.d/init fails to restart the mysql service). restart it manually after. – user.dz Jul 1 '16 at 3:42







          share|improve this answer































            0














            It looks like installation was interrupted in an earlier attempt.
            You are facing the problem of broken dependencies. Since you already tried running with --force to no avail, start by purging the existing MySqL installation



            sudo apt-get purge mysql-server


            Then clean the leftovers. Update the system. Do a general upgrade.



            sudo apt-get autoclean && sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade


            Now re-install



            sudo apt-get install mysql-server





            share|improve this answer
























            • I am adding the additional errors after running you commands , in yellow above

              – Maks.Burkov
              yesterday













            • what was the output of 'sudo apt-get purge mysql-server'

              – schartz
              yesterday











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1115792%2fwhy-cant-i-install-mysql-server-in-standard-way%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Maybe a duplicate of this question:
            dpkg: error processing package mysql-server (--configure)




            You have subprocess installed post-installation script returned error exit status 1 , post-installation script is *.postinst file. In your case /var/lib/dpkg/info/mysql-server-5.5.postinst which run on configure step of the package installation. When it does fail, you are locked in, because even remove operation will try complete the stopped configure step tehn remove package. So open /var/lib/dpkg/info/mysql-server-5.5.postinst & manually edit it and add set -e on 2nd line to ignore any error (basically invoke-rc.d/init fails to restart the mysql service). restart it manually after. – user.dz Jul 1 '16 at 3:42







            share|improve this answer




























              1














              Maybe a duplicate of this question:
              dpkg: error processing package mysql-server (--configure)




              You have subprocess installed post-installation script returned error exit status 1 , post-installation script is *.postinst file. In your case /var/lib/dpkg/info/mysql-server-5.5.postinst which run on configure step of the package installation. When it does fail, you are locked in, because even remove operation will try complete the stopped configure step tehn remove package. So open /var/lib/dpkg/info/mysql-server-5.5.postinst & manually edit it and add set -e on 2nd line to ignore any error (basically invoke-rc.d/init fails to restart the mysql service). restart it manually after. – user.dz Jul 1 '16 at 3:42







              share|improve this answer


























                1












                1








                1







                Maybe a duplicate of this question:
                dpkg: error processing package mysql-server (--configure)




                You have subprocess installed post-installation script returned error exit status 1 , post-installation script is *.postinst file. In your case /var/lib/dpkg/info/mysql-server-5.5.postinst which run on configure step of the package installation. When it does fail, you are locked in, because even remove operation will try complete the stopped configure step tehn remove package. So open /var/lib/dpkg/info/mysql-server-5.5.postinst & manually edit it and add set -e on 2nd line to ignore any error (basically invoke-rc.d/init fails to restart the mysql service). restart it manually after. – user.dz Jul 1 '16 at 3:42







                share|improve this answer













                Maybe a duplicate of this question:
                dpkg: error processing package mysql-server (--configure)




                You have subprocess installed post-installation script returned error exit status 1 , post-installation script is *.postinst file. In your case /var/lib/dpkg/info/mysql-server-5.5.postinst which run on configure step of the package installation. When it does fail, you are locked in, because even remove operation will try complete the stopped configure step tehn remove package. So open /var/lib/dpkg/info/mysql-server-5.5.postinst & manually edit it and add set -e on 2nd line to ignore any error (basically invoke-rc.d/init fails to restart the mysql service). restart it manually after. – user.dz Jul 1 '16 at 3:42








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                BobBob

                31115




                31115

























                    0














                    It looks like installation was interrupted in an earlier attempt.
                    You are facing the problem of broken dependencies. Since you already tried running with --force to no avail, start by purging the existing MySqL installation



                    sudo apt-get purge mysql-server


                    Then clean the leftovers. Update the system. Do a general upgrade.



                    sudo apt-get autoclean && sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade


                    Now re-install



                    sudo apt-get install mysql-server





                    share|improve this answer
























                    • I am adding the additional errors after running you commands , in yellow above

                      – Maks.Burkov
                      yesterday













                    • what was the output of 'sudo apt-get purge mysql-server'

                      – schartz
                      yesterday
















                    0














                    It looks like installation was interrupted in an earlier attempt.
                    You are facing the problem of broken dependencies. Since you already tried running with --force to no avail, start by purging the existing MySqL installation



                    sudo apt-get purge mysql-server


                    Then clean the leftovers. Update the system. Do a general upgrade.



                    sudo apt-get autoclean && sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade


                    Now re-install



                    sudo apt-get install mysql-server





                    share|improve this answer
























                    • I am adding the additional errors after running you commands , in yellow above

                      – Maks.Burkov
                      yesterday













                    • what was the output of 'sudo apt-get purge mysql-server'

                      – schartz
                      yesterday














                    0












                    0








                    0







                    It looks like installation was interrupted in an earlier attempt.
                    You are facing the problem of broken dependencies. Since you already tried running with --force to no avail, start by purging the existing MySqL installation



                    sudo apt-get purge mysql-server


                    Then clean the leftovers. Update the system. Do a general upgrade.



                    sudo apt-get autoclean && sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade


                    Now re-install



                    sudo apt-get install mysql-server





                    share|improve this answer













                    It looks like installation was interrupted in an earlier attempt.
                    You are facing the problem of broken dependencies. Since you already tried running with --force to no avail, start by purging the existing MySqL installation



                    sudo apt-get purge mysql-server


                    Then clean the leftovers. Update the system. Do a general upgrade.



                    sudo apt-get autoclean && sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade


                    Now re-install



                    sudo apt-get install mysql-server






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered yesterday









                    schartzschartz

                    11613




                    11613













                    • I am adding the additional errors after running you commands , in yellow above

                      – Maks.Burkov
                      yesterday













                    • what was the output of 'sudo apt-get purge mysql-server'

                      – schartz
                      yesterday



















                    • I am adding the additional errors after running you commands , in yellow above

                      – Maks.Burkov
                      yesterday













                    • what was the output of 'sudo apt-get purge mysql-server'

                      – schartz
                      yesterday

















                    I am adding the additional errors after running you commands , in yellow above

                    – Maks.Burkov
                    yesterday







                    I am adding the additional errors after running you commands , in yellow above

                    – Maks.Burkov
                    yesterday















                    what was the output of 'sudo apt-get purge mysql-server'

                    – schartz
                    yesterday





                    what was the output of 'sudo apt-get purge mysql-server'

                    – schartz
                    yesterday


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1115792%2fwhy-cant-i-install-mysql-server-in-standard-way%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

                    數位音樂下載

                    When can things happen in Etherscan, such as the picture below?

                    格利澤436b