package mysql-server-5.6 5.6.19-0ubuntu0.14.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1400592 reported by Terry Moore
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mysql-5.6 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I did some work for a guy, building a DB up on the cloud. The work was successful and after he didn't need the service any more, he asked me if he could get a copy of the data. I looked and about all I could do was create a 5.6 server locally and then push the data to it from the cloud server. I've never been able to get the MySQL 5.6 server to load properly. The guy has been very patient for the last six months. And my cloud contract will be running out in March 2015. I thought for sure Ubuntu would be able to get it loaded before now. Obviously, I'm wrong and I should have been taking a closer look all this time.
  Here is a screen capture of when I tried loading it just now. Can you advise me where I might look to find what I'm doing wrong?
Thank You!

$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

$ apt-cache policy mysql-server-5.6
mysql-server-5.6:
  Installed: 5.6.19-0ubuntu0.14.04.1
  Candidate: 5.6.19-0ubuntu0.14.04.1
  Version table:
 *** 5.6.19-0ubuntu0.14.04.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     5.6.16-1~exp1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Could this be a 64 bit vs 32 bit issue?
I saw an error go by about a script that did not have a variable set before it was used.

$ sudo apt-get upgrade mysql-server-5.6
[sudo] password for tlm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
mysql-server-5.6 is already the newest version.
The following packages have been kept back:
  gnuplot-nox gnuplot-x11
The following packages will be upgraded:
  compiz compiz-core compiz-gnome compiz-plugins compiz-plugins-default
  compiz-plugins-main-default compizconfig-backend-gconf
  compizconfig-settings-manager libcompizconfig0 libdecoration0
  libunity-2d-private0 libunity-core-6.0-9 python-compizconfig unity unity-2d
  unity-2d-common unity-2d-panel unity-2d-shell unity-2d-spread unity-services
20 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 5,863 kB of archives.
After this operation, 102 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libcompizconfig0 amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [117 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main compiz-gnome amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [155 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe compiz-plugins amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [1,878 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main compiz-plugins-default amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [766 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libdecoration0 amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [49.2 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main compiz-core amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [296 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main compiz all 1:0.9.11.3+14.04.20141104-0ubuntu1 [4,048 B]
Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main unity amd64 7.2.3+14.04.20140826-0ubuntu1 [1,479 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libunity-core-6.0-9 amd64 7.2.3+14.04.20140826-0ubuntu1 [432 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main unity-services amd64 7.2.3+14.04.20140826-0ubuntu1 [31.0 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe libunity-2d-private0 all 7.2.3+14.04.20140826-0ubuntu1 [6,206 B]
Get:12 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe unity-2d all 7.2.3+14.04.20140826-0ubuntu1 [6,184 B]
Get:13 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe unity-2d-common all 7.2.3+14.04.20140826-0ubuntu1 [6,192 B]
Get:14 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe unity-2d-panel all 7.2.3+14.04.20140826-0ubuntu1 [6,194 B]
Get:15 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe unity-2d-shell all 7.2.3+14.04.20140826-0ubuntu1 [6,194 B]
Get:16 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe unity-2d-spread all 7.2.3+14.04.20140826-0ubuntu1 [6,198 B]
Get:17 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe compiz-plugins-main-default all 1:0.9.11.3+14.04.20141104-0ubuntu1 [3,436 B]
Get:18 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe compizconfig-backend-gconf all 1:0.9.11.3+14.04.20141104-0ubuntu1 [6,010 B]
Get:19 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe python-compizconfig amd64 1:0.9.11.3+14.04.20141104-0ubuntu1 [36.9 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe compizconfig-settings-manager all 1:0.9.11.3+14.04.20141104-0ubuntu1 [574 kB]
Fetched 5,863 kB in 38s (152 kB/s)
(Reading database ... 1376556 files and directories currently installed.)
Preparing to unpack .../libcompizconfig0_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking libcompizconfig0 (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compiz-gnome_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking compiz-gnome (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compiz-plugins_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking compiz-plugins (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compiz-plugins-default_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking compiz-plugins-default (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../libdecoration0_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking libdecoration0 (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compiz-core_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking compiz-core (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compiz_1%3a0.9.11.3+14.04.20141104-0ubuntu1_all.deb ...
Unpacking compiz (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../unity_7.2.3+14.04.20140826-0ubuntu1_amd64.deb ...
Unpacking unity (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../libunity-core-6.0-9_7.2.3+14.04.20140826-0ubuntu1_amd64.deb ...
Unpacking libunity-core-6.0-9 (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../unity-services_7.2.3+14.04.20140826-0ubuntu1_amd64.deb ...
Unpacking unity-services (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../libunity-2d-private0_7.2.3+14.04.20140826-0ubuntu1_all.deb ...
Unpacking libunity-2d-private0 (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../unity-2d_7.2.3+14.04.20140826-0ubuntu1_all.deb ...
Unpacking unity-2d (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../unity-2d-common_7.2.3+14.04.20140826-0ubuntu1_all.deb ...
Unpacking unity-2d-common (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../unity-2d-panel_7.2.3+14.04.20140826-0ubuntu1_all.deb ...
Unpacking unity-2d-panel (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../unity-2d-shell_7.2.3+14.04.20140826-0ubuntu1_all.deb ...
Unpacking unity-2d-shell (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../unity-2d-spread_7.2.3+14.04.20140826-0ubuntu1_all.deb ...
Unpacking unity-2d-spread (7.2.3+14.04.20140826-0ubuntu1) over (7.2.2+14.04.20140714-0ubuntu1.1) ...
Preparing to unpack .../compiz-plugins-main-default_1%3a0.9.11.3+14.04.20141104-0ubuntu1_all.deb ...
Unpacking compiz-plugins-main-default (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compizconfig-backend-gconf_1%3a0.9.11.3+14.04.20141104-0ubuntu1_all.deb ...
Unpacking compizconfig-backend-gconf (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../python-compizconfig_1%3a0.9.11.3+14.04.20141104-0ubuntu1_amd64.deb ...
Unpacking python-compizconfig (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Preparing to unpack .../compizconfig-settings-manager_1%3a0.9.11.3+14.04.20141104-0ubuntu1_all.deb ...
Unpacking compizconfig-settings-manager (1:0.9.11.3+14.04.20141104-0ubuntu1) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
2014-12-08 22:18:33 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-12-08 22:18:33 11690 [Note] Plugin 'FEDERATED' is disabled.
2014-12-08 22:18:33 11690 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-12-08 22:18:33 11690 [Note] InnoDB: The InnoDB memory heap is disabled
2014-12-08 22:18:33 11690 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-12-08 22:18:33 11690 [Note] InnoDB: Compressed tables use zlib 1.2.8
2014-12-08 22:18:33 11690 [Note] InnoDB: Using Linux native AIO
2014-12-08 22:18:33 11690 [Note] InnoDB: Using CPU crc32 instructions
2014-12-08 22:18:33 11690 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-12-08 22:18:33 11690 [Note] InnoDB: Completed initialization of buffer pool
2014-12-08 22:18:33 11690 [Note] InnoDB: Highest supported file format is Barracuda.
2014-12-08 22:18:33 11690 [Note] InnoDB: 128 rollback segment(s) are active.
2014-12-08 22:18:33 11690 [Note] InnoDB: Waiting for purge to start
2014-12-08 22:18:33 11690 [Note] InnoDB: 5.6.19 started; log sequence number 1628771
2014-12-08 22:18:33 11690 [Note] Binlog end
2014-12-08 22:18:33 11690 [Note] InnoDB: FTS optimize thread exiting.
2014-12-08 22:18:33 11690 [Note] InnoDB: Starting shutdown...
2014-12-08 22:18:35 11690 [Note] InnoDB: Shutdown completed; log sequence number 1628781
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up compiz-core (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up libcompizconfig0 (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up libdecoration0 (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up compiz-plugins-default (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up compiz-gnome (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up compiz-plugins (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up compiz (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up unity-services (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up libunity-core-6.0-9 (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up unity (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up libunity-2d-private0 (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up unity-2d (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up unity-2d-common (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up unity-2d-panel (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up unity-2d-shell (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up unity-2d-spread (7.2.3+14.04.20140826-0ubuntu1) ...
Setting up compiz-plugins-main-default (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up compizconfig-backend-gconf (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up python-compizconfig (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Setting up compizconfig-settings-manager (1:0.9.11.3+14.04.20141104-0ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Errors were encountered while processing:
 mysql-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)
$

$ grep audit /var/log/kern.log |more
Dec 7 20:29:51 sariah kernel: [46567.454139] type=1400 audit(1418009391.731:74): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/tmp/gl3upQQ3" pid=12140 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 20:29:51 sariah kernel: [46567.454147] type=1400 audit(1418009391.731:75): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/tmp/gl3upQQ3" pid=12140 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 20:29:51 sariah kernel: [46567.454191] type=1400 audit(1418009391.731:76): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/home/terry/.nv/glDjLlc6" pid=12140 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 20:29:51 sariah kernel: [46567.454196] type=1400 audit(1418009391.731:77): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/home/terry/.nv/glDjLlc6" pid=12140 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:14:54 sariah kernel: [49269.266304] type=1400 audit(1418012094.454:78): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/tmp/glnAkTQV" pid=12639 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:14:54 sariah kernel: [49269.266312] type=1400 audit(1418012094.454:79): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/tmp/glnAkTQV" pid=12639 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:14:54 sariah kernel: [49269.266354] type=1400 audit(1418012094.454:80): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/home/terry/.nv/glQhO678" pid=12639 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:14:54 sariah kernel: [49269.266358] type=1400 audit(1418012094.454:81): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/home/terry/.nv/glQhO678" pid=12639 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:24:36 sariah kernel: [49850.667606] type=1400 audit(1418012676.050:82): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/tmp/gloMBsuN" pid=12730 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:24:36 sariah kernel: [49850.667615] type=1400 audit(1418012676.050:83): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/tmp/gloMBsuN" pid=12730 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:24:36 sariah kernel: [49850.667675] type=1400 audit(1418012676.050:84): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/home/terry/.nv/glRgpown" pid=12730 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 7 21:24:36 sariah kernel: [49850.667683] type=1400 audit(1418012676.050:85): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/evince//sanitized_helper" name="/home/terry/.nv/glRgpown" pid=12730 comm="firefox" requested_mask="m" denied_mask="m" fsuid=1000 ouid=1000
Dec 8 09:01:16 sariah kernel: [ 0.685898] audit: initializing netlink socket (disabled)
Dec 8 09:01:16 sariah kernel: [ 0.685907] type=2000 audit(1418054453.576:1): initialized
Dec 8 09:01:16 sariah kernel: [ 22.445036] type=1400 audit(1418054476.190:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=689 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.445042] type=1400 audit(1418054476.190:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=689 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.445416] type=1400 audit(1418054476.190:4): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=689 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.616858] type=1400 audit(1418054476.362:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=868 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.616866] type=1400 audit(1418054476.362:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=868 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.616871] type=1400 audit(1418054476.362:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=868 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.617406] type=1400 audit(1418054476.362:8): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=868 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.617412] type=1400 audit(1418054476.362:9): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=868 comm="apparmor_parser"
Dec 8 09:01:16 sariah kernel: [ 22.617715] type=1400 audit(1418054476.366:10): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=868 comm="apparmor_parser"
Dec 8 09:01:17 sariah kernel: [ 23.586896] type=1400 audit(1418054477.334:11): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/sbin/dhclient" pid=1197 comm="apparmor_parser"
Dec 8 09:01:35 sariah kernel: [ 40.288479] audit_printk_skb: 162 callbacks suppressed
Dec 8 09:01:35 sariah kernel: [ 40.288482] type=1400 audit(1418054495.405:66): apparmor="DENIED" operation="mkdir" profile="/usr/lib/telepathy/mission-control-5" name="/var/lib/gdm/.config/libaccounts-glib/" pid=2656 comm="mission-control" requested_mask="c" denied_mask="c" fsuid=115 ouid
=115
Dec 8 09:01:35 sariah kernel: [ 40.289602] type=1400 audit(1418054495.405:67): apparmor="DENIED" operation="open" profile="/usr/lib/telepathy/mission-control-5" name="/etc/dconf/profile/gdm" pid=2656 comm="mission-control" requested_mask="r" denied_mask="r" fsuid=115 ouid=0
Dec 8 09:01:47 sariah kernel: [ 52.497890] type=1400 audit(1418054507.617:68): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2782 comm="apparmor_parser"
Dec 8 09:01:47 sariah kernel: [ 52.497897] type=1400 audit(1418054507.617:69): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2782 comm="apparmor_parser"
Dec 8 09:01:47 sariah kernel: [ 52.498284] type=1400 audit(1418054507.617:70): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2782 comm="apparmor_parser"
Dec 8 09:16:32 sariah kernel: [ 937.520905] type=1400 audit(1418055392.941:71): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=4098 comm="apparmor_parser"
Dec 8 09:16:32 sariah kernel: [ 937.520912] type=1400 audit(1418055392.941:72): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=4098 comm="apparmor_parser"
Dec 8 09:16:32 sariah kernel: [ 937.521411] type=1400 audit(1418055392.941:73): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=4098 comm="apparmor_parser"
$

$ ls -l /etc/apparmor.d/usr.sbin.mysqld
-rw-r--r-- 1 root root 1048 Jul 23 2013 /etc/apparmor.d/usr.sbin.mysqld
$ cat /etc/apparmor.d/usr.sbin.mysqld
# vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include <tunables/global>

/usr/sbin/mysqld {
  #include <abstractions/base>
  #include <abstractions/nameservice>
  #include <abstractions/user-tmp>
  #include <abstractions/mysql>
  #include <abstractions/winbind>

  capability dac_override,
  capability sys_resource,
  capability setgid,
  capability setuid,

  network tcp,

  /etc/hosts.allow r,
  /etc/hosts.deny r,

  /etc/mysql/*.pem r,
  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/* r,
  /etc/mysql/*.cnf r,
  /usr/lib/mysql/plugin/ r,
  /usr/lib/mysql/plugin/*.so* mr,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /var/log/mysql.log rw,
  /var/log/mysql.err rw,
  /var/lib/mysql/ r,
  /var/lib/mysql/** rwk,
  /var/log/mysql/ r,
  /var/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid rw,
  /var/run/mysqld/mysqld.sock w,
  /run/mysqld/mysqld.pid rw,
  /run/mysqld/mysqld.sock w,

  /sys/devices/system/cpu/ r,

  # Site-specific additions and overrides. See local/README for details.
  #include <local/usr.sbin.mysqld>
}
$

$ ls -l /etc/apparmor.d/abstractions/mysqld
ls: cannot access /etc/apparmor.d/abstractions/mysqld: No such file or directory
$

$ ls -l /etc/apparmor.d/usr.sbin.mysqld*
-rw-r--r-- 1 root root 1048 Jul 23 2013 /etc/apparmor.d/usr.sbin.mysqld
-rw-r--r-- 1 root root 684 Jan 24 2012 /etc/apparmor.d/usr.sbin.mysqld-akonadi
$

$ cat /etc/mysql/my.cnf
cat: /etc/mysql/my.cnf: No such file or directory
$ ls -l /etc/mysql/conf.d
total 4
-rw-r--r-- 1 root root 375 Jul 21 04:55 my5.6.cnf
$ cat /etc/mysql/conf.d/my5.6.cnf
#
# The MySQL 5.6 database server configuration file.
#
# This custom MySQL 5.6 specific configuration file
# adds on top of the existing default my.cnf file at
# - /etc/mysql/my.cnf.
#
# Please add any extra MySQL 5.6 options in this file
# for sake of clarity.
#
# You may uncomment any existing option to enable it
#
# sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
$

$ sudo ls -l /var/lib/mysql
[sudo] password for tlm:
total 116768
-rw-rw---- 1 mysql mysql 56 Sep 30 22:16 auto.cnf
-rw-r--r-- 1 mysql mysql 0 Sep 30 21:57 debian-5.5.flag
-rw-r--r-- 1 mysql root 0 Dec 8 22:18 debian-5.6.flag
-rw-rw---- 1 mysql mysql 18874368 Dec 8 22:18 ibdata1
-rw-rw---- 1 mysql mysql 50331648 Dec 8 22:18 ib_logfile0
-rw-rw---- 1 mysql mysql 50331648 Sep 30 22:12 ib_logfile1
drwx------ 2 mysql mysql 4096 Sep 30 22:12 mysql
drwx------ 2 mysql mysql 4096 Dec 8 22:18 performance_schema
-rw-r----- 1 mysql mysql 9129 Sep 30 23:13 sariah.err
$

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: mysql-server-5.6 5.6.19-0ubuntu0.14.04.1
ProcVersionSignature: Ubuntu 3.13.0-40.69-generic 3.13.11.10
Uname: Linux 3.13.0-40-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.6
AptOrdering:
 libjasper1: Install
 libjasper1: Install
 mysql-server-5.6: Configure
 libjasper1: Configure
 libjasper1: Configure
Architecture: amd64
Date: Mon Dec 8 22:06:07 2014
DuplicateSignature: package:mysql-server-5.6:5.6.19-0ubuntu0.14.04.1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2012-06-22 (899 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: mysql-5.6
Title: package mysql-server-5.6 5.6.19-0ubuntu0.14.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to trusty on 2014-08-19 (111 days ago)
modified.conffile..etc.mysql.conf.d.mysqld.safe.syslog.cnf: [deleted]
modified.conffile..etc.mysql.debian.start: [deleted]

Revision history for this message
Terry Moore (tlmoore) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Terry Moore (tlmoore) wrote :
Download full text (3.4 KiB)

update. Tried again. This time it suggested that I run apt-get install -f. If it had done that before, I missed it. Sorry. Here is the entire output.
$ sudo apt-get install -f
[sudo] password for tlm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libssl0.9.8
The following NEW packages will be installed:
  libssl0.9.8
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 692 kB of archives.
After this operation, 2,445 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe libssl0.9.8 amd64 0.9.8o-7ubuntu3.2.14.04.1 [692 kB]
Fetched 692 kB in 4s (146 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libssl0.9.8:amd64.
(Reading database ... 1430593 files and directories currently installed.)
Preparing to unpack .../libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb ...
Unpacking libssl0.9.8:amd64 (0.9.8o-7ubuntu3.2.14.04.1) ...
Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
2014-12-23 21:35:18 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-12-23 21:35:18 12168 [Note] Plugin 'FEDERATED' is disabled.
2014-12-23 21:35:18 12168 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-12-23 21:35:18 12168 [Note] InnoDB: The InnoDB memory heap is disabled
2014-12-23 21:35:18 12168 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-12-23 21:35:18 12168 [Note] InnoDB: Compressed tables use zlib 1.2.8
2014-12-23 21:35:18 12168 [Note] InnoDB: Using Linux native AIO
2014-12-23 21:35:18 12168 [Note] InnoDB: Using CPU crc32 instructions
2014-12-23 21:35:18 12168 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-12-23 21:35:18 12168 [Note] InnoDB: Completed initialization of buffer pool
2014-12-23 21:35:18 12168 [Note] InnoDB: Highest supported file format is Barracuda.
2014-12-23 21:35:18 12168 [Note] InnoDB: 128 rollback segment(s) are active.
2014-12-23 21:35:18 12168 [Note] InnoDB: Waiting for purge to start
2014-12-23 21:35:18 12168 [Note] InnoDB: 5.6.19 started; log sequence number 1629743
2014-12-23 21:35:18 12168 [Note] Binlog end
2014-12-23 21:35:18 12168 [Note] InnoDB: FTS optimize thread exiting.
2014-12-23 21:35:18 12168 [Note] InnoDB: Starting shutdown...
2014-12-23 21:35:20 12168 [Note] InnoDB: Shutdown completed; log sequence number 1629753
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libssl0.9.8:amd64 (0.9.8o-7ubuntu3.2.14.04.1) ...
Setting up cav-linux (1.1.268025-1) ...
$Starting cmdagent: The cmdagent started successfully!
$Starting cmgdaemon: The cmgdaemon started successfully!

Installation succeed, but it must be properly configured before using.
Please run /opt/COMODO/post_setup.sh script ma...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mysql-5.6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Ladisch (julian-ladisch) wrote :

I had the same error when trying to switch mysql-client and mysql-server from 5.5 to 5.6 (to version 5.6.28-0ubuntu0.14.04.1) by doing aptitude install mysql-server-5.6.

I found this in /var/log/syslog:

Feb 22 10:47:53 esxh mysqld_safe[5421]: 2016-02-22 10:47:53 5420 [Note] InnoDB: 5.6.28 started; log sequence number 1626423
Feb 22 10:47:53 esxh mysqld_safe[5421]: ERROR: 1062 Duplicate entry 'innodb' for key 'PRIMARY'
Feb 22 10:47:53 esxh mysqld_safe[5421]: 2016-02-22 10:47:53 5420 [ERROR] Aborting

After purging mysql-client* and mysql-server* the installation of mysql 5.6 was successful.

Revision history for this message
Joshua Powers (powersj) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. In an effort to keep an up-to-date list of bugs to work I have reviewed this report to verify it still requires a fix and it occurs on a supported version of Ubuntu.

Julian above has presented a workaround for the issue.

It is unfortunate that we were unable to resolve this defect, however there appears to be no further action possible at this time. I am therefore moving the bug to 'Incomplete'. If you disagree or have additional details, please feel free to add a comment and then change the status of the bug to 'New'.

Changed in mysql-5.6 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mysql-5.6 (Ubuntu) because there has been no activity for 60 days.]

Changed in mysql-5.6 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.