Configuration Error while installing mysql in ubutnu 16.04












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.
    yesterday











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

    – fkraiem
    yesterday











  • also tried it but not working

    – Ramesh KR
    yesterday











  • Sorry didn't remember that

    – Samuel P.
    yesterday











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

    – Parto
    yesterday
















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.
    yesterday











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

    – fkraiem
    yesterday











  • also tried it but not working

    – Ramesh KR
    yesterday











  • Sorry didn't remember that

    – Samuel P.
    yesterday











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

    – Parto
    yesterday














0












0








0


1






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 yesterday









Samuel P.

19810




19810










asked yesterday









Ramesh KRRamesh KR

1063




1063













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

    – Samuel P.
    yesterday











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

    – fkraiem
    yesterday











  • also tried it but not working

    – Ramesh KR
    yesterday











  • Sorry didn't remember that

    – Samuel P.
    yesterday











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

    – Parto
    yesterday



















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

    – Samuel P.
    yesterday











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

    – fkraiem
    yesterday











  • also tried it but not working

    – Ramesh KR
    yesterday











  • Sorry didn't remember that

    – Samuel P.
    yesterday











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

    – Parto
    yesterday

















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

– Samuel P.
yesterday





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

– Samuel P.
yesterday













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

– fkraiem
yesterday





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

– fkraiem
yesterday













also tried it but not working

– Ramesh KR
yesterday





also tried it but not working

– Ramesh KR
yesterday













Sorry didn't remember that

– Samuel P.
yesterday





Sorry didn't remember that

– Samuel P.
yesterday













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

– Parto
yesterday





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

– Parto
yesterday










0






active

oldest

votes











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

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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

數位音樂下載

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

格利澤436b