Remove MySQL Ubuntu 16.04 all solutions have failed
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
All solutions listed here for removing MySQL fails:
Uninstall MySQL from Ubuntu 16.04
and
Removing MariaDB Installs MySQL and vice-versa
These are my errors:
$ sudo apt-get purge mysql*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get dist-upgrade
$ sudo apt-get install mysql
$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server-core-5.7
0 upgraded, 0 newly installed, 1 to remove and 131 not upgraded.
2 not fully installed or removed.
After this operation, 46.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 287191 files and directories currently installed.)
Removing mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
dpkg: error processing package mysql-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-client-5.7:
mysql-client-5.7 depends on mysql-common (>= 5.5); however:
Package mysql-common is not configured yet.
dpkg: error processing package mysql-client-5.7 (--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-common
mysql-client-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
upgrade mysql
add a comment |Â
up vote
0
down vote
favorite
All solutions listed here for removing MySQL fails:
Uninstall MySQL from Ubuntu 16.04
and
Removing MariaDB Installs MySQL and vice-versa
These are my errors:
$ sudo apt-get purge mysql*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get dist-upgrade
$ sudo apt-get install mysql
$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server-core-5.7
0 upgraded, 0 newly installed, 1 to remove and 131 not upgraded.
2 not fully installed or removed.
After this operation, 46.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 287191 files and directories currently installed.)
Removing mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
dpkg: error processing package mysql-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-client-5.7:
mysql-client-5.7 depends on mysql-common (>= 5.5); however:
Package mysql-common is not configured yet.
dpkg: error processing package mysql-client-5.7 (--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-common
mysql-client-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
upgrade mysql
This isn't a BBCODE forum. Use StackExchange code formatting, select the text you want to code-format, then click the button that looks like this in your editing window:
â Thomas Wardâ¦
May 20 at 3:17
did you do this with mysql still running? If so...
â Rinzwind
May 20 at 7:47
mysql not running. Doesn't start on startup I always start with sudo systemctl start mysql
â jeffschips
May 20 at 12:55
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
All solutions listed here for removing MySQL fails:
Uninstall MySQL from Ubuntu 16.04
and
Removing MariaDB Installs MySQL and vice-versa
These are my errors:
$ sudo apt-get purge mysql*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get dist-upgrade
$ sudo apt-get install mysql
$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server-core-5.7
0 upgraded, 0 newly installed, 1 to remove and 131 not upgraded.
2 not fully installed or removed.
After this operation, 46.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 287191 files and directories currently installed.)
Removing mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
dpkg: error processing package mysql-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-client-5.7:
mysql-client-5.7 depends on mysql-common (>= 5.5); however:
Package mysql-common is not configured yet.
dpkg: error processing package mysql-client-5.7 (--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-common
mysql-client-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
upgrade mysql
All solutions listed here for removing MySQL fails:
Uninstall MySQL from Ubuntu 16.04
and
Removing MariaDB Installs MySQL and vice-versa
These are my errors:
$ sudo apt-get purge mysql*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get dist-upgrade
$ sudo apt-get install mysql
$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server-core-5.7
0 upgraded, 0 newly installed, 1 to remove and 131 not upgraded.
2 not fully installed or removed.
After this operation, 46.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 287191 files and directories currently installed.)
Removing mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
dpkg: error processing package mysql-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-client-5.7:
mysql-client-5.7 depends on mysql-common (>= 5.5); however:
Package mysql-common is not configured yet.
dpkg: error processing package mysql-client-5.7 (--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-common
mysql-client-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
upgrade mysql
edited May 20 at 3:26
![](https://i.stack.imgur.com/jLgkr.jpg?s=32&g=1)
![](https://i.stack.imgur.com/jLgkr.jpg?s=32&g=1)
Thomas Wardâ¦
41k23112166
41k23112166
asked May 20 at 3:16
jeffschips
113
113
This isn't a BBCODE forum. Use StackExchange code formatting, select the text you want to code-format, then click the button that looks like this in your editing window:
â Thomas Wardâ¦
May 20 at 3:17
did you do this with mysql still running? If so...
â Rinzwind
May 20 at 7:47
mysql not running. Doesn't start on startup I always start with sudo systemctl start mysql
â jeffschips
May 20 at 12:55
add a comment |Â
This isn't a BBCODE forum. Use StackExchange code formatting, select the text you want to code-format, then click the button that looks like this in your editing window:
â Thomas Wardâ¦
May 20 at 3:17
did you do this with mysql still running? If so...
â Rinzwind
May 20 at 7:47
mysql not running. Doesn't start on startup I always start with sudo systemctl start mysql
â jeffschips
May 20 at 12:55
This isn't a BBCODE forum. Use StackExchange code formatting, select the text you want to code-format, then click the button that looks like this in your editing window:
â Thomas Wardâ¦
May 20 at 3:17
This isn't a BBCODE forum. Use StackExchange code formatting, select the text you want to code-format, then click the button that looks like this in your editing window:
â Thomas Wardâ¦
May 20 at 3:17
did you do this with mysql still running? If so...
â Rinzwind
May 20 at 7:47
did you do this with mysql still running? If so...
â Rinzwind
May 20 at 7:47
mysql not running. Doesn't start on startup I always start with sudo systemctl start mysql
â jeffschips
May 20 at 12:55
mysql not running. Doesn't start on startup I always start with sudo systemctl start mysql
â jeffschips
May 20 at 12:55
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
It looks like there is an error while configuring mysql-common
, and that causes a dependency problem that results in mysql-client-5.7
failing to be removed.
The configuration error is error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
, so naturally i'd try to create that path by running sudo touch /etc/mysql/my.cnf.fallback
After that running sudo dpkg-reconfigure mysql-common
will reveal if the error is resolved, if it is, you can likely remove mysql now using sudo apt-get purge mysql*
If this did not help, please provide the output/errors of these commands so that me and others can determine the problem further.
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
add a comment |Â
up vote
0
down vote
Solved:
There were two architecture libraries on my system for mysql.
libmysqlclient20:amd64
libmysqlclient20:i386
I removed the i386 and all is solved.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It looks like there is an error while configuring mysql-common
, and that causes a dependency problem that results in mysql-client-5.7
failing to be removed.
The configuration error is error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
, so naturally i'd try to create that path by running sudo touch /etc/mysql/my.cnf.fallback
After that running sudo dpkg-reconfigure mysql-common
will reveal if the error is resolved, if it is, you can likely remove mysql now using sudo apt-get purge mysql*
If this did not help, please provide the output/errors of these commands so that me and others can determine the problem further.
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
add a comment |Â
up vote
0
down vote
It looks like there is an error while configuring mysql-common
, and that causes a dependency problem that results in mysql-client-5.7
failing to be removed.
The configuration error is error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
, so naturally i'd try to create that path by running sudo touch /etc/mysql/my.cnf.fallback
After that running sudo dpkg-reconfigure mysql-common
will reveal if the error is resolved, if it is, you can likely remove mysql now using sudo apt-get purge mysql*
If this did not help, please provide the output/errors of these commands so that me and others can determine the problem further.
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
add a comment |Â
up vote
0
down vote
up vote
0
down vote
It looks like there is an error while configuring mysql-common
, and that causes a dependency problem that results in mysql-client-5.7
failing to be removed.
The configuration error is error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
, so naturally i'd try to create that path by running sudo touch /etc/mysql/my.cnf.fallback
After that running sudo dpkg-reconfigure mysql-common
will reveal if the error is resolved, if it is, you can likely remove mysql now using sudo apt-get purge mysql*
If this did not help, please provide the output/errors of these commands so that me and others can determine the problem further.
It looks like there is an error while configuring mysql-common
, and that causes a dependency problem that results in mysql-client-5.7
failing to be removed.
The configuration error is error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
, so naturally i'd try to create that path by running sudo touch /etc/mysql/my.cnf.fallback
After that running sudo dpkg-reconfigure mysql-common
will reveal if the error is resolved, if it is, you can likely remove mysql now using sudo apt-get purge mysql*
If this did not help, please provide the output/errors of these commands so that me and others can determine the problem further.
answered May 20 at 6:51
x13
1567
1567
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
add a comment |Â
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
Thanks for your assistance. Here is the result of your suggestion, after touching /etc/mysql/my.cnf.fallback sudo dpkg-reconfigure mysql-common /usr/sbin/dpkg-reconfigure: mysql-common is broken or not fully installed
â jeffschips
May 20 at 12:48
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
This page askubuntu.com/editing-help#comment-formatting explains how to format comments, however, the suggestion to add to two spaces for a line break does not work. Are linebreaks not allowed in comments despite the advise from stackexchange stating in the markdown editing help age to add 2 spaces for a line break?
â jeffschips
May 20 at 13:32
add a comment |Â
up vote
0
down vote
Solved:
There were two architecture libraries on my system for mysql.
libmysqlclient20:amd64
libmysqlclient20:i386
I removed the i386 and all is solved.
add a comment |Â
up vote
0
down vote
Solved:
There were two architecture libraries on my system for mysql.
libmysqlclient20:amd64
libmysqlclient20:i386
I removed the i386 and all is solved.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Solved:
There were two architecture libraries on my system for mysql.
libmysqlclient20:amd64
libmysqlclient20:i386
I removed the i386 and all is solved.
Solved:
There were two architecture libraries on my system for mysql.
libmysqlclient20:amd64
libmysqlclient20:i386
I removed the i386 and all is solved.
answered May 22 at 1:22
jeffschips
113
113
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038254%2fremove-mysql-ubuntu-16-04-all-solutions-have-failed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
This isn't a BBCODE forum. Use StackExchange code formatting, select the text you want to code-format, then click the button that looks like this in your editing window:
â Thomas Wardâ¦
May 20 at 3:17
did you do this with mysql still running? If so...
â Rinzwind
May 20 at 7:47
mysql not running. Doesn't start on startup I always start with sudo systemctl start mysql
â jeffschips
May 20 at 12:55