Configuration Error while installing mysql in ubutnu 16.04cannot upgrade kernel and mysql-server after dist upgradeMySQL Installation Issues on Ubuntu 15.04Nginx installation error in Ubuntu 16.04mysql doesn't ask for root password when installingDell XPS 13 DE won't restart after failed update to Ubuntu 16.04 from 14.04mysql-server-5.5 ErrorUnable to install MariaDB on circleCI ? Problems with dpkg.After upgrade to 16.04 - alternative link error setting up mysql-commonError While removing corrupted mysqlmysql-server-5.7 package post-installation script subprocess returned error exit status 127

How do I locate a classical quotation?

Why would one plane in this picture not have gear down yet?

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

Can someone explain what is being said here in color publishing in the American Mathematical Monthly?

What to do when during a meeting client people start to fight (even physically) with each others?

Examples of a statistic that is not independent of sample's distribution?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

They call me Inspector Morse

What is the likely impact of grounding an entire aircraft series?

"One can do his homework in the library"

How do I deal with a powergamer in a game full of beginners in a school club?

Unreachable code, but reachable with exception

Good allowance savings plan?

Look through the portal of every day

How to pass a string to a command that expects a file?

Low budget alien movie about the Earth being cooked

Norms on fields

Placing subfig vertically

If the Captain's screens are out, does he switch seats with the co-pilot?

Built-In Shelves/Bookcases - IKEA vs Built

Make a transparent 448*448 image

Set and print content of environment variable in cmd.exe subshell?

Aliens englobed the Solar System: will we notice?

Why the color red for the Republican Party



Configuration Error while installing mysql in ubutnu 16.04


cannot upgrade kernel and mysql-server after dist upgradeMySQL Installation Issues on Ubuntu 15.04Nginx installation error in Ubuntu 16.04mysql doesn't ask for root password when installingDell XPS 13 DE won't restart after failed update to Ubuntu 16.04 from 14.04mysql-server-5.5 ErrorUnable to install MariaDB on circleCI ? Problems with dpkg.After upgrade to 16.04 - alternative link error setting up mysql-commonError While removing corrupted mysqlmysql-server-5.7 package post-installation script subprocess returned error exit status 127













0















Unfortunately, I uninstalled MySQL. And later I am trying to install but I get this following error.



ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script 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
Processing triggers for libc-bin (2.23-0ubuntu11) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried the following steps



  1. Removed MySQL server completely and tried installing again.

  2. sudo dpkg --configure -a

  3. apt-get install -f

But no use.










share|improve this question
























  • Have you tried running apt-get --fix-broken install as it suggests in the error message?

    – Samuel P.
    Mar 7 at 5:58











  • @SamuelP. Yes, -f is short for --fix-broken.

    – fkraiem
    Mar 7 at 6:03











  • also tried it but not working

    – Ramesh KR
    Mar 7 at 6:13











  • Sorry didn't remember that

    – Samuel P.
    Mar 7 at 7:35











  • Try deleting the /etc/mysql* files and folders then try installing again

    – Parto
    Mar 7 at 13:46















0















Unfortunately, I uninstalled MySQL. And later I am trying to install but I get this following error.



ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script 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
Processing triggers for libc-bin (2.23-0ubuntu11) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried the following steps



  1. Removed MySQL server completely and tried installing again.

  2. sudo dpkg --configure -a

  3. apt-get install -f

But no use.










share|improve this question
























  • Have you tried running apt-get --fix-broken install as it suggests in the error message?

    – Samuel P.
    Mar 7 at 5:58











  • @SamuelP. Yes, -f is short for --fix-broken.

    – fkraiem
    Mar 7 at 6:03











  • also tried it but not working

    – Ramesh KR
    Mar 7 at 6:13











  • Sorry didn't remember that

    – Samuel P.
    Mar 7 at 7:35











  • Try deleting the /etc/mysql* files and folders then try installing again

    – Parto
    Mar 7 at 13:46













0












0








0


0






Unfortunately, I uninstalled MySQL. And later I am trying to install but I get this following error.



ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script 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
Processing triggers for libc-bin (2.23-0ubuntu11) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried the following steps



  1. Removed MySQL server completely and tried installing again.

  2. sudo dpkg --configure -a

  3. apt-get install -f

But no use.










share|improve this question
















Unfortunately, I uninstalled MySQL. And later I am trying to install but I get this following error.



ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script 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
Processing triggers for libc-bin (2.23-0ubuntu11) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried the following steps



  1. Removed MySQL server completely and tried installing again.

  2. sudo dpkg --configure -a

  3. apt-get install -f

But no use.







16.04 apache2 mysql sql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 6:13









Samuel P.

208110




208110










asked Mar 7 at 5:13









Ramesh KRRamesh KR

1063




1063












  • Have you tried running apt-get --fix-broken install as it suggests in the error message?

    – Samuel P.
    Mar 7 at 5:58











  • @SamuelP. Yes, -f is short for --fix-broken.

    – fkraiem
    Mar 7 at 6:03











  • also tried it but not working

    – Ramesh KR
    Mar 7 at 6:13











  • Sorry didn't remember that

    – Samuel P.
    Mar 7 at 7:35











  • Try deleting the /etc/mysql* files and folders then try installing again

    – Parto
    Mar 7 at 13:46

















  • Have you tried running apt-get --fix-broken install as it suggests in the error message?

    – Samuel P.
    Mar 7 at 5:58











  • @SamuelP. Yes, -f is short for --fix-broken.

    – fkraiem
    Mar 7 at 6:03











  • also tried it but not working

    – Ramesh KR
    Mar 7 at 6:13











  • Sorry didn't remember that

    – Samuel P.
    Mar 7 at 7:35











  • Try deleting the /etc/mysql* files and folders then try installing again

    – Parto
    Mar 7 at 13:46
















Have you tried running apt-get --fix-broken install as it suggests in the error message?

– Samuel P.
Mar 7 at 5:58





Have you tried running apt-get --fix-broken install as it suggests in the error message?

– Samuel P.
Mar 7 at 5:58













@SamuelP. Yes, -f is short for --fix-broken.

– fkraiem
Mar 7 at 6:03





@SamuelP. Yes, -f is short for --fix-broken.

– fkraiem
Mar 7 at 6:03













also tried it but not working

– Ramesh KR
Mar 7 at 6:13





also tried it but not working

– Ramesh KR
Mar 7 at 6:13













Sorry didn't remember that

– Samuel P.
Mar 7 at 7:35





Sorry didn't remember that

– Samuel P.
Mar 7 at 7:35













Try deleting the /etc/mysql* files and folders then try installing again

– Parto
Mar 7 at 13:46





Try deleting the /etc/mysql* files and folders then try installing again

– Parto
Mar 7 at 13:46










1 Answer
1






active

oldest

votes


















0














Probably your some congif files are missing on your system. Run the following command to restore them:



apt-get -o Dpkg::Options::="--force-confmiss" install mysql-server


It is possible, that you get an error at the end of this command, but the folder /etc/mysql/conf.d/ should be there now. If the command fails, you have to start mysql manually:



service mysql start


Then run the following, to finish installation:



apt-get install -f mysql-server





share|improve this answer






















    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%2f1123671%2fconfiguration-error-while-installing-mysql-in-ubutnu-16-04%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Probably your some congif files are missing on your system. Run the following command to restore them:



    apt-get -o Dpkg::Options::="--force-confmiss" install mysql-server


    It is possible, that you get an error at the end of this command, but the folder /etc/mysql/conf.d/ should be there now. If the command fails, you have to start mysql manually:



    service mysql start


    Then run the following, to finish installation:



    apt-get install -f mysql-server





    share|improve this answer



























      0














      Probably your some congif files are missing on your system. Run the following command to restore them:



      apt-get -o Dpkg::Options::="--force-confmiss" install mysql-server


      It is possible, that you get an error at the end of this command, but the folder /etc/mysql/conf.d/ should be there now. If the command fails, you have to start mysql manually:



      service mysql start


      Then run the following, to finish installation:



      apt-get install -f mysql-server





      share|improve this answer

























        0












        0








        0







        Probably your some congif files are missing on your system. Run the following command to restore them:



        apt-get -o Dpkg::Options::="--force-confmiss" install mysql-server


        It is possible, that you get an error at the end of this command, but the folder /etc/mysql/conf.d/ should be there now. If the command fails, you have to start mysql manually:



        service mysql start


        Then run the following, to finish installation:



        apt-get install -f mysql-server





        share|improve this answer













        Probably your some congif files are missing on your system. Run the following command to restore them:



        apt-get -o Dpkg::Options::="--force-confmiss" install mysql-server


        It is possible, that you get an error at the end of this command, but the folder /etc/mysql/conf.d/ should be there now. If the command fails, you have to start mysql manually:



        service mysql start


        Then run the following, to finish installation:



        apt-get install -f mysql-server






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        Samuel P.Samuel P.

        208110




        208110



























            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%2f1123671%2fconfiguration-error-while-installing-mysql-in-ubutnu-16-04%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

            Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

            Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch

            fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap