Affected me on Ubuntu for Windows. Reproduction steps: - Start on Trusty LTS - Install mysql-server - Log in, create a database, but no tables - Attempt to do an upgrade to Xenial LTS
Attempting to apt-get install mysql-server gives the following logs: Unpacking mysql-server (5.7.20-0ubuntu0.16.04.1) ... Setting up mysql-server-5.7 (5.7.20-0ubuntu0.16.04.1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. Renaming removed key_buffer and myisam-recover options (if present) invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server Upgrade process encountered error and will not continue. mysql_upgrade failed with exit status 11 dpkg: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.7; however: Package mysql-server-5.7 is not configured yet. Attempting to apt-get remove mysql-server gives the following logs: Setting up mysql-server-5.7 (5.7.20-0ubuntu0.16.04.1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. Renaming removed key_buffer and myisam-recover options (if present) invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of stop. invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server Upgrade process encountered error and will not continue. mysql_upgrade failed with exit status 11 dpkg: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: mysql-server-5.7 -- 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