I installed MySQL server and client and WordPress on my Ubuntu and now when I wanted to remove this packages I got this:
sudo apt-get remove mysql-client-5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
mysql-client-core-5.6 mysql-server-core-5.6
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mysql-client-5.6 mysql-server-5.6
0 upgraded, 0 newly installed, 2 to remove and 30 not upgraded.
2 not fully installed or removed.
After this operation, 99.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 266816 files and directories currently installed.)
Removing mysql-server-5.6 (5.6.28-0ubuntu0.15.10.1) ...
dpkg: error processing package mysql-client-5.6 (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Processing triggers for man-db (2.7.4-1) ...
Errors were encountered while processing:
mysql-client-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)
and same for the other and now I can't install or remove anything. What should I do?
sudo apt-get install --reinstall mysql-client-5.6
– fkraiem Apr 06 '16 at 05:14