package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #394583 reported by Bunty
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.0 (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Yesterday , I installed mysql server 5.0 on Jaunty It was working fine , but when today restarted the system , It is saying as Fail to restart Below are error details

ajit@ajitw:/var/www$ sudo apt-get install mysql-server-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  mysql-server-5.0
0 upgraded, 1 newly installed, 0 to remove and 143 not upgraded.
Need to get 0B/23.6MB of archives.
After this operation, 79.4MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 111774 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb) ...
Processing triggers for man-db ...
Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10.2) ...
 * Stopping MySQL database server mysqld [ OK ]
 * Reloading AppArmor profiles ... [ OK ]
 * Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
ajit@ajitw:/var/www$

Please Help Me it is urgent

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2
SourcePackage: mysql-dfsg-5.0
Title: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Bunty (wadekarajit) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

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

Changed in mysql-dfsg-5.0 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
nurvzy (nurvzy) wrote :

I've solved this issue on my machine. My bind-address was set incorrectly, so I just went in and changed it to my loopback address.

# /etc/mysql/my.cnf
bind-address = 127.0.0.1

sudo /etc/init.d/mysql restart

worked like a charm.

Revision history for this message
Mathias Gug (mathiaz) wrote :

@Bunty: Does this solution above fix your problem?

Revision history for this message
Marchello (minberg86) wrote :

I have the same problem. What should I do with files Dependencies.txt and DpkgTerminalLog.gz after I download it?

Revision history for this message
Bunty (wadekarajit) wrote : Re: [Bug 394583] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Hi Mathias ,
   Resolving the bind Address in "/etc/mysql/my.cnf" solved the problem

Thanks & Regards,
Ajit

On Sun, Nov 15, 2009 at 1:19 PM, Marchello <email address hidden> wrote:

> I have the same problem. What should I do with files Dependencies.txt
> and DpkgTerminalLog.gz after I download it?
>
> --
> package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to
> install/upgrade: subprocess post-installation script returned error exit
> status 1
> https://bugs.launchpad.net/bugs/394583
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “mysql-dfsg-5.0” package in Ubuntu: Incomplete
>
> Bug description:
> Yesterday , I installed mysql server 5.0 on Jaunty It was working fine ,
> but when today restarted the system , It is saying as Fail to restart Below
> are error details
>
> ajit@ajitw:/var/www$ sudo apt-get install mysql-server-5.0
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Suggested packages:
> tinyca mailx
> The following NEW packages will be installed:
> mysql-server-5.0
> 0 upgraded, 1 newly installed, 0 to remove and 143 not upgraded.
> Need to get 0B/23.6MB of archives.
> After this operation, 79.4MB of additional disk space will be used.
> Preconfiguring packages ...
> Selecting previously deselected package mysql-server-5.0.
> (Reading database ... 111774 files and directories currently installed.)
> Unpacking mysql-server-5.0 (from
> .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb) ...
> Processing triggers for man-db ...
> Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10.2) ...
> * Stopping MySQL database server mysqld
> [ OK ]
> * Reloading AppArmor profiles ...
> [ OK ]
> * Starting MySQL database server mysqld
> [fail]
> invoke-rc.d: initscript mysql, action "start" failed.
> dpkg: error processing mysql-server-5.0 (--configure):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> mysql-server-5.0
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> ajit@ajitw:/var/www$
>
> Please Help Me it is urgent
>
> ProblemType: Package
> Architecture: i386
> DistroRelease: Ubuntu 9.04
> ErrorMessage: subprocess post-installation script returned error exit
> status 1
> Package: mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2
> SourcePackage: mysql-dfsg-5.0
> Title: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to
> install/upgrade: subprocess post-installation script returned error exit
> status 1
> Uname: Linux 2.6.28-11-generic i686
>

Chuck Short (zulcss)
Changed in mysql-dfsg-5.0 (Ubuntu):
status: Incomplete → Won't Fix
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.