Workaround: sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
Add this line skip-grant-tables to the [mysqld] section sudo systemctl restart mysql.service sudo apt-get install mysql-server-5.7 # to fix the broken installation This will hang at Upgrade process completed successfully. Checking if update is needed. In another shell: sudo killall mysqld Or maybe I could have stopped mysql.service before installing mysql again sudo systemctl start mysql.service sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf Remove skip-grant-tables from the [mysqld] section sudo systemctl restart mysql.service I still can't connect as debian-sys-maint so apt-get upgrade will fail again but at least I managed to complete this one. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1623440 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/1623440/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs