Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 05-20-2018, 12:04 AM   #1
Registered: Mar 2010
Posts: 33

Rep: Reputation: Disabled
Impossible to remove mysql on 16.04 - constant errors preventing system-wide upgrade

Whenever I attempt to do a distribution upgrade, it fails because Mysql throws errors which I believe makes it impossible to do a system-wide upgrade.

I am on Ubuntu 16.04.

Not matter what I do to remove, purge, delete, or otherwise get rid of a mysql system that is non-functioning and preventing me from upgrading the distribution, I constantly receive the following errors. The following commands which seems to work for other people with this problem does not work for me:

sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get dist-upgrade
sudo apt-get install mysql-server

apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is just insane as I cannot - under any circumstances or otherwise - get rid of this error. Followed and attempted to do all the different commands listed elsewhere to purge, remove, delete, etc. But I constantly receive this.

Should I just trash the system and start from scratch?
Old 05-20-2018, 04:57 PM   #2
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,435
Blog Entries: 2

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Can you please paste the output from the following command:

dpkg -l | grep -v "^ii"
Old 05-21-2018, 09:18 PM   #3
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: Disabled
there were two conflicting architectures installed:


Removing the i386 one was the key.

Now it's all good.

Thanks for the help.


mysql, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Constant errors with virtualbox Tech7 Linux - Virtualization and Cloud 14 09-16-2014 04:47 AM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 7 09-04-2010 11:16 AM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 1 09-04-2010 07:33 AM
Konqueror history impossible to remove. pujolasdf Linux - Software 5 02-16-2005 05:05 PM
constant reboots after apt-get upgrade adrian5800 Debian 18 05-12-2004 03:02 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration