MySQL does not upgrade correctly for 5.1.30really5.0.75-0ubuntu10.2

Bug #383430 reported by chipuni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.0 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

% lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

%apt-cache policy mysql-server-5.0
mysql-server-5.0:
  Installed: 5.1.30really5.0.75-0ubuntu10.2
  Candidate: 5.1.30really5.0.75-0ubuntu10.2
  Version table:
 *** 5.1.30really5.0.75-0ubuntu10.2 0
        500 http://us.archive.ubuntu.com jaunty-updates/main Packages
        100 /var/lib/dpkg/status
     5.1.30really5.0.75-0ubuntu10 0
        500 http://us.archive.ubuntu.com jaunty/main Packages

Information from the update using aptitude:

Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10.2) ...
 * Stopping MySQL database server mysqld [ OK ]
 * Reloading AppArmor profiles ... * Warning: found /etc/apparmor.d/force-complain/usr.bin.freshclam, forcing complain mode
 * Warning: found /etc/apparmor.d/force-complain/usr.sbin.mysqld, forcing complain mode
                                                                                    [ OK ]
 * Starting MySQL database server mysqld [ OK ]
/etc/init.d/mysql: line 115: /etc/mysql/debian-start: Permission denied
invoke-rc.d: initscript mysql, action "start" failed.

^Cdpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script killed by signal (Interrupt)
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.0; however:
  Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Setting up mysql-client (5.1.30really5.0.75-0ubuntu10.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
. . .
Processing triggers for menu ...
Errors were encountered while processing:
 mysql-server-5.0
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10.2) ...
 * Stopping MySQL database server mysqld [ OK ]
 * Reloading AppArmor profiles ... * Warning: found /etc/apparmor.d/force-complain/usr.bin.freshclam, forcing complain mode
 * Warning: found /etc/apparmor.d/force-complain/usr.sbin.mysqld, forcing complain mode
                                                                                    [ OK ]
 * Starting MySQL database server mysqld [ OK ]
/etc/init.d/mysql: line 115: /etc/mysql/debian-start: Permission denied
invoke-rc.d: initscript mysql, action "start" failed.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script killed by signal (Interrupt)
NonfreeKernelModules: fglrx
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 killed by signal (Interrupt)
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
chipuni (edwardsb) wrote :
Revision history for this message
chipuni (edwardsb) wrote :

Method to fix problem:

From a terminal, type:

% sudo chmod 755 /etc/mysql/debian-start

Then re-run the updates.

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 383430] [NEW] MySQL does not upgrade correctly for 5.1.30really5.0.75-0ubuntu10.2

On Thu, Jun 04, 2009 at 01:39:18AM -0000, chipuni wrote:
> Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10.2) ...
> * Stopping MySQL database server mysqld [ OK ]
> * Reloading AppArmor profiles ... * Warning: found /etc/apparmor.d/force-complain/usr.bin.freshclam, forcing complain mode
> * Warning: found /etc/apparmor.d/force-complain/usr.sbin.mysqld, forcing complain mode
> [ OK ]
> * Starting MySQL database server mysqld [ OK ]
> /etc/init.d/mysql: line 115: /etc/mysql/debian-start: Permission denied

What are the permissions of the file /etc/mysql/debian-start?
The following command output would be useful:

 ls -l /etc/mysql/debian-start

  status incomplete

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in mysql-dfsg-5.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
chipuni (edwardsb) wrote :

Mathias --

They had been:
% ls -l /etc/mysql/debian-start
-rw-r--r-- 1 root root 1198 2008-03-19 13:58 /etc/mysql/debian-start*

They are currently:
% ls -l /etc/mysql/debian-start
-rwxr-xr-x 1 root root 1198 2008-03-19 13:58 /etc/mysql/debian-start*

Please note the method to solve the problem that I submitted as a comment.

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

Do you know why the permission on /etc/mysql/debian-start had been changed?

Revision history for this message
chipuni (edwardsb) wrote : Re: [Bug 383430] Re: MySQL does not upgrade correctly for 5.1.30really5.0.75-0ubuntu10.2

Mathias Gug wrote:
> Do you know why the permission on /etc/mysql/debian-start had been
> changed?

No, I do not know how it had been changed.

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

Marking won't fix since the reporter found a workaround.

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.