We currently try to reinstall MySQL 5.7 on a Ubuntu 16.04.6 LTS Box
But the installation fails with this error:
#sudo apt-get install mysql-server mysql-client --fix-broken --fix-missing
[...]
dpkg: error processing package mysql-server (--configure):
dependency problems — leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.27) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
We have purged the previous installation.
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Seems to work just fine, no error Messages. Afterwards we check with:
#dpkg-query -l mysql-server
dpkg-query: no packages found matching mysql-server
In addition, we have manually removed remaining folders, to make sure there are no leftovers which could interfere with a new install.
rm -rf /etc/mysql /var/lib/mysql
But still, every new try of installing still fails with that error. Does someone know what we can do to fix this situation?