failed to install mysql5.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.6 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
package mysql-server-5.6 5.6.33-
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: mysql-server-5.6 5.6.33-
ProcVersionSign
Uname: Linux 3.13.0-93-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
Date: Fri Sep 23 12:25:57 2016
DuplicateSignature: package:
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-05-12 (134 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
RelatedPackageV
dpkg 1.17.5ubuntu5.7
apt 1.0.1ubuntu2.14
SourcePackage: mysql-5.6
Title: package mysql-server-5.6 5.6.33-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
In the terminal log it only appears to be starting to then being shut down.
But the dmesg holds more hints at the root cause.
There I wonder about:
[ 17.758717] init: Failed to spawn php7.0-fpm main process: unable to execute: No such file or directory
[ 17.988212] init: Failed to spawn mysql main process: unable to execute: No such file or directory
Then further I see several apparmor denies: 3.811:67) : apparmor="DENIED" operation="open" profile= "/usr/sbin/ mysqld" name="/ etc/mysql/ my.cnf. fallback" pid=29019 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 9.431:68) : apparmor="DENIED" operation="open" profile= "/usr/sbin/ mysqld" name="/ etc/mysql/ my.cnf. fallback" pid=29061 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 1.499:69) : apparmor="DENIED" operation="open" profile= "/usr/sbin/ mysqld" name="/ etc/mysql/ my.cnf. fallback" pid=29086 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 3.523:70) : apparmor="DENIED" operation="open" profile= "/usr/sbin/ mysqld" name="/ etc/mysql/ my.cnf. fallback" pid=29111 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 5.587:71) : apparmor="STATUS" operation= "profile_ replace" profile= "unconfined" name="/ usr/sbin/ mysqld" pid=29171 comm="apparmor_ parser" 5.591:72) : apparmor="DENIED" operation="open" profile= "/usr/sbin/ mysqld" name="/ etc/mysql/ my.cnf. fallback" pid=29173 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 5.595:73) : apparmor="DENIED" operation="open" profile= "/usr/sbin/ mysqld" name="/ etc/mysql/ my.cnf. fallback" pid=29182 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 7844.489836] type=1400 audit(147461374
[ 7850.111433] type=1400 audit(147461374
[ 7852.177221] type=1400 audit(147461375
[ 7854.201312] type=1400 audit(147461375
[ 7856.265292] type=1400 audit(147461375
[ 7856.268621] type=1400 audit(147461375
[ 7856.273266] type=1400 audit(147461375
[ 7856.449151] init: mysql main process (29182) terminated with status 1
[ 7856.449158] init: mysql main process ended, respawning
Only to further down giving up by:
[ 7858.506585] init: mysql respawning too fast, stopped
I wonder if your installation has any custom apparmor or other configuration changes to mysql that could affect this?
I have seen reports that this issue could be avoided by: -client
apt-get install mysql-community
before upgrading the server. I'd wonder but if you could try and verify/falsify that for your case that would be great.
For the sake of checking if that is bug 1421303 showing up again in some way please also share the output of "sudo aa-status"