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

Notices


Reply
  Search this Thread
Old 05-19-2018, 11:04 PM   #1
bulgin
LQ Newbie
 
Registered: Mar 2010
Posts: 26

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:

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


Code:
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)
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, 03:57 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 5,371
Blog Entries: 2

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

Code:
dpkg -l | grep -v "^ii"
 
Old 05-21-2018, 08:18 PM   #3
bulgin
LQ Newbie
 
Registered: Mar 2010
Posts: 26

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

libmysqlclient20:amd64
libmysqlclient20:i386

Removing the i386 one was the key.

Now it's all good.

Thanks for the help.
 
  


Reply

Tags
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 03:47 AM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 7 09-04-2010 10:16 AM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 1 09-04-2010 06:33 AM
Konqueror history impossible to remove. pujolasdf Linux - Software 5 02-16-2005 04:05 PM
constant reboots after apt-get upgrade adrian5800 Debian 18 05-12-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:45 PM.

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