package mysql-server-5.1 5.1.31-1ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Did the latest upgrade for Ubuntu 9, the ran the apt-get install mysql-server-5.1, went through install and failed to start server.
tsteele@lserver:~$ sudo apt-get install mysql-server-4.1
[sudo] password for tsteele:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server-4.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mysql-server-5.1
E: Package mysql-server-4.1 has no installation candidate
tsteele@lserver:~$ sudo apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bsd-mailx libdbd-mysql-perl libdbi-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl mailx
mysql-client-5.1 postfix
Suggested packages:
dbishell tinyca procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf
postfix-cdb
The following NEW packages will be installed:
bsd-mailx libdbd-mysql-perl libdbi-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl mailx
mysql-client-5.1 mysql-server-5.1 postfix
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.4MB of archives.
After this operation, 55.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Fetched 23.4MB in 2min 38s (148kB/s)
Preconfiguring packages ...
Selecting previously deselected package libnet-daemon-perl.
(Reading database ... 103530 files and directories currently installed.)
Unpacking libnet-daemon-perl (from .../libnet-
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlcli
Selecting previously deselected package mysql-client-5.1.
Unpacking mysql-client-5.1 (from .../mysql-
Selecting previously deselected package mysql-server-5.1.
Unpacking mysql-server-5.1 (from .../mysql-
Selecting previously deselected package postfix.
Unpacking postfix (from .../postfix_
Selecting previously deselected package bsd-mailx.
Unpacking bsd-mailx (from .../bsd-
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_
Processing triggers for man-db ...
Processing triggers for ufw ...
Setting up libnet-daemon-perl (0.43-1) ...
Setting up libplrpc-perl (0.2020-1) ...
Setting up libdbi-perl (1.607-1) ...
Setting up libdbd-mysql-perl (4.008-1) ...
Setting up libmysqlclient16 (5.1.31-1ubuntu2) ...
Setting up mysql-client-5.1 (5.1.31-1ubuntu2) ...
Setting up mysql-server-5.1 (5.1.31-1ubuntu2) ...
* Stopping MySQL database server mysqld [ OK ]
090709 12:51:02 InnoDB: Started; log sequence number 0 46409
090709 12:51:02 InnoDB: Starting shutdown...
090709 12:51:03 InnoDB: Shutdown completed; log sequence number 0 46409
090709 12:51:03 [Warning] Forcing shutdown of 1 plugins
* Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess post-installation script returned error exit status 1
Setting up postfix (2.5.5-1.1) ...
Adding group `postfix' (GID 126) ...
Done.
Adding system user `postfix' (UID 122) ...
Adding new user `postfix' (UID 122) with group `postfix' ...
Not creating home directory `/var/spool/
Creating /etc/postfix/
Adding tcp map entry to /etc/postfix/
Adding group `postdrop' (GID 127) ...
Done.
/etc/aliases does not exist, creating it.
Postfix was not set up. Start with
cp /usr/share/
. If you need to make changes, edit
/etc/postfix/
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.
Setting up bsd-mailx (8.1.2-
Setting up mailx (1:20081101-
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
mysql-server-5.1
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: mysql-server-5.1 5.1.31-1ubuntu2
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.31-1ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-13-server i686
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Could you please provide the following information:
* content of /var/log/daemon.log related to mysql processes:
/var/ log/daemon. log
* apparmor audit messages related to mysqld:
/var/ log/kern. log
* mysqld apparmor profile:
/etc/ apparmor. d/usr.sbin. mysqld
* list of mysqld apparmor profiles:
ls -l /etc/apparmor. d/usr.sbin. mysqld*
* mysql configuration stripped of private information (such as password):
/etc/ mysql/my. cnf
* extra mysql configuration from the conf.d directory:
/etc/ mysql/conf. d/
* directory listing of mysql datadir (by default /var/lib/mysql):
ls -l /var/lib/mysql
======= ======= ======= ==
Relevant error messages
Setting up mysql-server-5.1 (5.1.31-1ubuntu2) ...
* Stopping MySQL database server mysqld [104G
[98G[ OK ]
090709 12:51:02 InnoDB: Started; log sequence number 0 46409
090709 12:51:02 InnoDB: Starting shutdown...
090709 12:51:03 InnoDB: Shutdown completed; log sequence number 0 46409
090709 12:51:03 [Warning] Forcing shutdown of 1 plugins
* Starting MySQL database server mysqld [104G [31mfail [39;49m]
[98G[
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess post-installation script returned error exit status 1