This helped me to solve the issue:

https://ubuntuforums.org/showthread.php?t=2321413&p=13475037#post13475037

In /etc/mysql/my.cnf comment the entries so as to have them like:

#key_buffer = 16M
#myisam-recover = BACKUP

sudo apt-get update
sudo apt-get upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  apt-xapian-index aptitude-common fontconfig-config fonts-dejavu-core 
heirloom-mailx libboost-iostreams1.54.0 libboost-iostreams1.58.0 
libck-connector0 libclass-accessor-perl libcwidget3 libept1.4.12
  libfontconfig1 libio-string-perl libjbig0 libjpeg-turbo8 libjpeg8 liblinear1 
liblua5.1-0 libmcrypt4 libonig2 libopts25 libparse-debianchangelog-perl 
libqdbm14 libsensors4 libsigc++-2.0-0c2a libsnmp-base
  libsnmp30 libsub-name-perl libterm-readkey-perl libtiff5 libvpx1 
libxapian-1.3-5 libxapian22v5 libxpm4 linux-image-generic-lts-vivid 
python-ndg-httpsclient python-requests python-urllib3 python-xapian
  python3-xapian1.3 watershed
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.7 (5.7.16-0ubuntu0.16.04.1) ...
update-alternatives: warning: forcing reinstallation of alternative 
/etc/mysql/mysql.cnf because link group my.cnf is broken
update-alternatives: warning: not replacing /etc/mysql/my.cnf with a link
Renaming removed key_buffer and myisam-recover options (if present)
mysql start/running, process 8816
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
...
ETC
...
Checking if update is needed.
mysql stop/waiting
mysql start/running, process 8901
Setting up mysql-server (5.7.16-0ubuntu0.16.04.1) ...

Then I ran:

service mysql status
mysql start/running, process 8901

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1624476

Title:
  package mysql-server-5.7 5.7.15-0ubuntu0.16.04.1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1624476/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to