Error when reinstalling mysql-server “postinst: line 102: mysqld: command not found”





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







1















I removed mysql-server because I set it up incorrectly. When I try to install it now I get this error:



matthew@matthewserver:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
[387 kB]
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 559 kB in 1s (862 kB/s)
Reading package lists... Done
matthew@matthewserver:~$ 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.23-0ubuntu0.18.04.1).
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.23-0ubuntu0.18.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 102: mysqld: command not found
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):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.

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
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have no idea what this means. How do I go about installing it?










share|improve this question

























  • when you make new installing mysql-server-5.7 make sure your configure it correctly, if it not correctly try sudo dpkg-configure mysql-server-5.7 and follow that instruction.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:27











  • the output said "Errors were encountered while processing: mysql-server-5.7 mysql-server" , 0ohh! you have two package of mysql, please choose one less.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:29











  • sorry sir, i do not understand what you want me to do

    – matthew tranmer
    Sep 30 '18 at 16:33











  • try to type sudo dpkg-configure mysql-server-5.7. you have two package of mysql, please choose one!.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:35








  • 1





    Possible duplicate of MySQL will not start

    – jknappen
    2 days ago


















1















I removed mysql-server because I set it up incorrectly. When I try to install it now I get this error:



matthew@matthewserver:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
[387 kB]
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 559 kB in 1s (862 kB/s)
Reading package lists... Done
matthew@matthewserver:~$ 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.23-0ubuntu0.18.04.1).
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.23-0ubuntu0.18.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 102: mysqld: command not found
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):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.

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
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have no idea what this means. How do I go about installing it?










share|improve this question

























  • when you make new installing mysql-server-5.7 make sure your configure it correctly, if it not correctly try sudo dpkg-configure mysql-server-5.7 and follow that instruction.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:27











  • the output said "Errors were encountered while processing: mysql-server-5.7 mysql-server" , 0ohh! you have two package of mysql, please choose one less.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:29











  • sorry sir, i do not understand what you want me to do

    – matthew tranmer
    Sep 30 '18 at 16:33











  • try to type sudo dpkg-configure mysql-server-5.7. you have two package of mysql, please choose one!.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:35








  • 1





    Possible duplicate of MySQL will not start

    – jknappen
    2 days ago














1












1








1








I removed mysql-server because I set it up incorrectly. When I try to install it now I get this error:



matthew@matthewserver:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
[387 kB]
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 559 kB in 1s (862 kB/s)
Reading package lists... Done
matthew@matthewserver:~$ 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.23-0ubuntu0.18.04.1).
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.23-0ubuntu0.18.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 102: mysqld: command not found
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):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.

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
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have no idea what this means. How do I go about installing it?










share|improve this question
















I removed mysql-server because I set it up incorrectly. When I try to install it now I get this error:



matthew@matthewserver:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
[387 kB]
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 559 kB in 1s (862 kB/s)
Reading package lists... Done
matthew@matthewserver:~$ 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.23-0ubuntu0.18.04.1).
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.23-0ubuntu0.18.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 102: mysqld: command not found
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):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.

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
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have no idea what this means. How do I go about installing it?







18.04 package-management mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 27 mins ago









Zanna

51.6k13141244




51.6k13141244










asked Sep 30 '18 at 14:47









matthew tranmermatthew tranmer

64




64













  • when you make new installing mysql-server-5.7 make sure your configure it correctly, if it not correctly try sudo dpkg-configure mysql-server-5.7 and follow that instruction.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:27











  • the output said "Errors were encountered while processing: mysql-server-5.7 mysql-server" , 0ohh! you have two package of mysql, please choose one less.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:29











  • sorry sir, i do not understand what you want me to do

    – matthew tranmer
    Sep 30 '18 at 16:33











  • try to type sudo dpkg-configure mysql-server-5.7. you have two package of mysql, please choose one!.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:35








  • 1





    Possible duplicate of MySQL will not start

    – jknappen
    2 days ago



















  • when you make new installing mysql-server-5.7 make sure your configure it correctly, if it not correctly try sudo dpkg-configure mysql-server-5.7 and follow that instruction.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:27











  • the output said "Errors were encountered while processing: mysql-server-5.7 mysql-server" , 0ohh! you have two package of mysql, please choose one less.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:29











  • sorry sir, i do not understand what you want me to do

    – matthew tranmer
    Sep 30 '18 at 16:33











  • try to type sudo dpkg-configure mysql-server-5.7. you have two package of mysql, please choose one!.

    – abu-ahmed al-khatiri
    Sep 30 '18 at 16:35








  • 1





    Possible duplicate of MySQL will not start

    – jknappen
    2 days ago

















when you make new installing mysql-server-5.7 make sure your configure it correctly, if it not correctly try sudo dpkg-configure mysql-server-5.7 and follow that instruction.

– abu-ahmed al-khatiri
Sep 30 '18 at 16:27





when you make new installing mysql-server-5.7 make sure your configure it correctly, if it not correctly try sudo dpkg-configure mysql-server-5.7 and follow that instruction.

– abu-ahmed al-khatiri
Sep 30 '18 at 16:27













the output said "Errors were encountered while processing: mysql-server-5.7 mysql-server" , 0ohh! you have two package of mysql, please choose one less.

– abu-ahmed al-khatiri
Sep 30 '18 at 16:29





the output said "Errors were encountered while processing: mysql-server-5.7 mysql-server" , 0ohh! you have two package of mysql, please choose one less.

– abu-ahmed al-khatiri
Sep 30 '18 at 16:29













sorry sir, i do not understand what you want me to do

– matthew tranmer
Sep 30 '18 at 16:33





sorry sir, i do not understand what you want me to do

– matthew tranmer
Sep 30 '18 at 16:33













try to type sudo dpkg-configure mysql-server-5.7. you have two package of mysql, please choose one!.

– abu-ahmed al-khatiri
Sep 30 '18 at 16:35







try to type sudo dpkg-configure mysql-server-5.7. you have two package of mysql, please choose one!.

– abu-ahmed al-khatiri
Sep 30 '18 at 16:35






1




1





Possible duplicate of MySQL will not start

– jknappen
2 days ago





Possible duplicate of MySQL will not start

– jknappen
2 days ago










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%2f1079745%2ferror-when-reinstalling-mysql-server-postinst-line-102-mysqld-command-not-fo%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%2f1079745%2ferror-when-reinstalling-mysql-server-postinst-line-102-mysqld-command-not-fo%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

GameSpot

connect to host localhost port 22: Connection refused

Getting a Wifi WPA2 wifi connection