package mysql-server-5.1 5.1.41-3ubuntu12.3 failed to install/upgrade: el subprocés seqüència pre-installation nova retornà el codi d'eixida d'error 1

Bug #677181 reported by turrailes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I can't install other app's because this package make me fails.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: mysql-server-5.1 5.1.41-3ubuntu12.3
ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
NonfreeKernelModules: fglrx
Architecture: i386
Date: Thu Nov 18 21:27:33 2010
ErrorMessage: el subprocés seqüència pre-installation nova retornà el codi d'eixida d'error 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
Logs.var.log.daemon.log:

Logs.var.log.kern.log:
 Nov 16 13:57:38 jordi-desktop kernel: [ 9.717498] type=1505 audit(1289912258.721:11): operation="profile_load" pid=965 name="/usr/sbin/mysqld"
 Nov 17 06:30:59 jordi-desktop kernel: [ 10.136631] type=1505 audit(1289971859.137:10): operation="profile_load" pid=973 name="/usr/sbin/mysqld"
 Nov 18 00:31:36 jordi-desktop kernel: [ 9.706571] type=1505 audit(1290036696.708:10): operation="profile_load" pid=975 name="/usr/sbin/mysqld"
 Nov 18 20:40:24 jordi-desktop kernel: [ 9.625583] type=1505 audit(1290109224.629:5): operation="profile_load" pid=973 name="/usr/sbin/mysqld"
MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: False
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.41-3ubuntu12.3 failed to install/upgrade: el subprocés seqüència pre-installation nova retornà el codi d'eixida d'error 1

Revision history for this message
turrailes (turrailes) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hello turrailes, thank you for taking the time to file this bug report and help us make Ubuntu better!

The error messages indicating the failures in stopping mysqld seem somewhat inconsistent and confusing.

The first one, while trying to upgrade from 5.1.41-3ubuntu12.3 to 5.1.41-3ubuntu12.6 is here:

S'està preparant per a reemplaçar mysql-server-5.1 5.1.41-3ubuntu12.3 (fent servir .../mysql-server-5.1_5.1.41-3ubuntu12.6_i386.deb) ...

^X^^Vv     stop: Job has already been stopped: mysql
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 1
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: s'ha produït un error en processar /var/cache/apt/archives/mysql-server-5.1_5.1.41-3ubuntu12.6_i386.deb (--unpack):
 el subprocés seqüència pre-installation nova retornà el codi d'eixida d'error 1

I think this may happen because of an unfortunate race condition in /lib/init/upstart-job that checks status, and if it has a pid, tries to stop it, but it may die (for some other reason, such a it was already in a stopping state) between this check. So, in this way, it should be possible to repeat the upgrade attempt and have it not fail every time.

S'està preparant per a reemplaçar mysql-server-5.1 5.1.41-3ubuntu12.3 (fent servir .../mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb) ...
Terminated
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 143
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: s'ha produït un error en processar /var/cache/apt/archives/mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb (--unpack):
 el subprocés seqüència pre-installation nova retornà el codi d'eixida d'error 1

This actually supports the same theory, as I believe the 'kill timeout 300' was not present in 5.1.41-3ubuntu12.3, so upstart would kill mysqld after 5 seconds.. which would explain the 'Terminated' error.

Can you try stopping mysql before doing your install/upgrades?

stop mysql

should do it. Please report back on the results of trying that, as I think this is probably reproducible if mysqld takes a long time to stop.

Marking Incomplete pending response from turrailes.

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

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

Changed in mysql-dfsg-5.1 (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.