package mysql-server-5.1 5.1.41-3ubuntu12 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1

Bug #575452 reported by macada
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Expired
Low
Unassigned

Bug Description

user@macada-laptop:~$ sudo apt-get install mysql-server-5.1 --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libopenraw1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/7,007kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...

(Reading database ... 219605 files and directories currently installed.)
Preparing to replace mysql-server-5.1 5.1.41-3ubuntu12 (using .../mysql-server-5.1_5.1.41-3ubuntu12_i386.deb) ...
stop: Job has already been stopped: mysql
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: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.41-3ubuntu12_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: mysql-server-5.1 5.1.41-3ubuntu12
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic i686
AptOrdering:
 mysql-server-5.1: Install
 mysql-server-5.1: Configure
Architecture: i386
Date: Wed May 5 00:56:40 2010
ErrorMessage: subprocess new pre-installation script returned error exit status 1
Logs.var.log.kern.log:
 May 2 22:52:39 macada-laptop kernel: [33884.162426] type=1503 audit(1272833559.058:19): operation="open" pid=22146 parent=22145 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
 May 2 23:42:01 macada-laptop kernel: [36846.593957] type=1503 audit(1272836521.491:20): operation="open" pid=4712 parent=4711 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
 May 2 23:42:03 macada-laptop kernel: [36848.667580] type=1503 audit(1272836523.563:21): operation="open" pid=4728 parent=4727 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
 May 2 23:42:04 macada-laptop kernel: [36849.606225] type=1503 audit(1272836524.503:22): operation="open" pid=4786 parent=4785 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
 May 2 23:42:04 macada-laptop kernel: [36849.616813] type=1503 audit(1272836524.511:23): operation="open" pid=4795 parent=4794 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['mysql', 'opennemasdemodb', 'wordpress', 'ib_logfile0', 'debian-5.0.flag', 'webdevcronicas', 'xornalcomdb', 'test@002ddb', 'mysql_upgrade_info', 'onmccdb', 'wikidb', 'debian-5.1.flag', 'ib_logfile1', '1m2009', 'ibdata1', 'drupaldb']
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.41-3ubuntu12 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1

Revision history for this message
macada (macadanet) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

I havent been able to reproduce this, is there a reason why you are doing a re-install?

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Raphael Camus (raphael-camus) wrote :

E: /var/cache/apt/archives/mysql-server-5.1_5.1.41-3ubuntu12_i386.deb: le sous-processus nouveau script pre-installation a retourné une erreur de sortie d'état 1

While upgrading from to Lucid 10.04

The detailed information show that mysql server cannot be stopped, and indeed I got a FAIL when I try sudo /etc/init.d/mysql stop

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

the issue is, as I understand it, an inifinite loop in an config script. Mysql server cannot be stopped to re-configure the package.

see also https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/

Revision history for this message
Neil Wallace (rowinggolfer) wrote :
Revision history for this message
Niels Dimmers (nielsdimmers) wrote :

After some hours of trying, I managed to get to an very nasty work-around for people not needing mysql, but needing apt-get to work. In my apt-get, it hung over the error as the first package, and just wouldn't continue. I couldn't find a way to disable it, but removed mysql with:

sudo dpkg --force-remove-reinstreq --remove mysql-server-5.1

sudo apt-get upgrade hung at some packages of postgresql with a similar error, so I used the same way to remove those. errors with a package called "man-db" dissapeared (and it installed properly).

I have to say tough, that I didn't check if the mysql files were removed completely, this could cause security issues, minor disk space issues, and huge issues when re-installing the packages, but it got my apt-get working again and that's all I'm concerned about. If you're an experienced ubuntu user owning a test server, I ask you to test the severity of the risks of this (temporarily) solution, since I don't have the knowledge to do this, and my server is a part-hobby part production server.

Revision history for this message
Raphael Camus (raphael-camus) wrote :

After upgrading to Ubuntu 10.10, I do not have such a problem anymore and mysql is working properly.

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.