Ubuntu 12.04 Errors were encountered while processing: mysql-server-5.5.32 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)

Bug #1205096 reported by Alex Burdu
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
mysql-5.5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

This evening I made an update I sincerely regret... I updated mysql to 5.5.32 which turned out awful.
At the end of the update it popped a window telling me that it will do some changes to apparmor. I don't know how to configure it so i let it do it's job. It seems like it failed because it gave Sub-process /usr/bin/dpkg returned an error code (1)

Ubuntu 12.04

I tried reinstalling but it gives:

+++++++++++++++++++++++++++++++++++++++++++++++++++++
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mysql-server-5.5
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/8,830 kB of archives.
After this operation, 32.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 852313 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.32-0ubuntu0.12.04.1_amd64.deb) ...
egrep: /etc/mysql/: No such file or directory
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.32-0ubuntu0.12.04.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-5.5 (5.5.32-0ubuntu0.12.04.1) ...
130725 23:05:22 [Note] Plugin 'FEDERATED' is disabled.
130725 23:05:22 InnoDB: The InnoDB memory heap is disabled
130725 23:05:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130725 23:05:22 InnoDB: Compressed tables use zlib 1.2.3.4
130725 23:05:22 InnoDB: Initializing buffer pool, size = 128.0M
130725 23:05:22 InnoDB: Completed initialization of buffer pool
130725 23:05:22 InnoDB: highest supported file format is Barracuda.
130725 23:05:22 InnoDB: Waiting for the background threads to start
130725 23:05:23 InnoDB: 5.5.32 started; log sequence number 1595675
130725 23:05:23 [ERROR] /usr/sbin/mysqld: Can't find file: './mysql/user.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/user.frm' (errno: 13)
130725 23:05:23 [ERROR] Aborting

130725 23:05:23 InnoDB: Starting shutdown...
130725 23:05:24 InnoDB: Shutdown completed; log sequence number 1595675
130725 23:05:24 [Note] /usr/sbin/mysqld: Shutdown complete

start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--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.5; however:
  Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
           Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

How can i get this working? Read lots of threads regarding this subject, but nothing works.

Alex Burdu (alex.burdu)
description: updated
summary: - Errors were encountered while processing: mysql-server-5.5.32 mysql-
- server E: Sub-process /usr/bin/dpkg returned an error code (1)
+ Ubuntu 12.04 Errors were encountered while processing: mysql-
+ server-5.5.32 mysql-server E: Sub-process /usr/bin/dpkg returned an
+ error code (1)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mysql-5.5 (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Burdu (alex.burdu) wrote :

managed to install it using this work-around http://askubuntu.com/questions/175820/mysql-doesnt-update-due-to-error-in-apparmor-profile

i think i will never update it again

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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