I've tried all options mentioned above and still facing the problem.
This happened after upgrade from 14.04 to 16.04.

Tried: Remove all .cnf files from /etc/mysql and then did "apt purge
mysql*" and then "apt install mysql-server".

Getting following error: 
Setting up mysql-server-5.7 (5.7.13-0ubuntu0.16.04.2) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf 
(my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Job for mysql.service failed because the control process exited with error 
code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
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.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


root@foss:/# systemctl status mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: 
enabled)
   Active: activating (start-post) (Result: exit-code) since Tue 2016-09-13 
17:06:16 IST; 22s ago
  Process: 6850 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 6847 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre 
(code=exited, status=0/SUCCESS)
 Main PID: 6850 (code=exited, status=1/FAILURE);         : 6851 
(mysql-systemd-s)
   CGroup: /system.slice/mysql.service
           └─control
             ├─6851 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─6925 sleep 1

Sep 13 17:06:16 foss.coep.org.in systemd[1]: Starting MySQL Community Server...
Sep 13 17:06:18 foss.coep.org.in systemd[1]: mysql.service: Main process 
exited, code=exited, status=1/FAILURE

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

Title:
  package mysql-server-5.7 5.7.11-0ubuntu6 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1 during release upgrade

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

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

Reply via email to