For me, in addition to the Package Manager messages mentioned by the OP, 
there's a message from AppArmor:
Profile: /usr/sbin/mysqld
Operation: open
Name: /etc/mysql/mysql.conf.d/
Denied: r
Logfile: /var/log/kern.log

Digging into the kernel log reveals these messages:
Nov 12 13:12:33 brian-ubuntu-1 kernel: [854708.438037] type=1400 
audit(1447294353.963:138): apparmor="DENIED" operation="open" 
profile="/usr/sbin/mysqld" name="/etc/mysql/mysql.conf.d/" pid=12892 
comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Nov 12 13:12:33 brian-ubuntu-1 kernel: [854708.465075] type=1400 
audit(1447294353.987:139): apparmor="DENIED" operation="open" 
profile="/usr/sbin/mysqld" name="/etc/mysql/mysql.conf.d/" pid=12909 
comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Nov 12 13:12:34 brian-ubuntu-1 kernel: [854708.471298] type=1400 
audit(1447294353.995:140): apparmor="DENIED" operation="open" 
profile="/usr/sbin/mysqld" name="/etc/mysql/mysql.conf.d/" pid=12912 
comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Nov 12 13:12:34 brian-ubuntu-1 kernel: [854708.544657] type=1400 
audit(1447294354.067:141): apparmor="STATUS" operation="profile_replace" 
profile="unconfined" name="/usr/sbin/mysqld" pid=12950 comm="apparmor_parser"

These are repeated a number of times, with different PIDs (and
timestamps).

Workaround:
-------------------
Changing the apparmor level from "enforce" to "complain" for that profile 
allows the update to proceed without error:
  $ sudo aa-complain /usr/sbin/mysqld
   [sudo] password for username: 
   Setting /usr/sbin/mysqld to complain mode.
  $

The same log entries occur, but this time they say: ' apparmor="ALLOWED"
' instead of DENIED.

Obviously, you should change the apparmor level back again following the update:
  $ sudo aa-enforce /usr/sbin/mysqld
   [sudo] password for username: 
   Setting /usr/sbin/mysqld to enforce mode.
  $

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1512961

Title:
  package mysql-server-5.6 5.6.27-0ubuntu0.14.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.6/+bug/1512961/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to