package mysql-server-5.1 5.1.41-3ubuntu12.3 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Lucid Lynx
upgrade failed
upgrade claims mysql server could not be stopped, but server isn't running
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: mysql-server-5.1 5.1.41-3ubuntu12.3
ProcVersionSign
Uname: Linux 2.6.31-20-generic i686
NonfreeKernelMo
Architecture: i386
Date: Wed Aug 4 20:35:34 2010
ErrorMessage: subprocess new pre-installation script returned error exit status 1
Logs.var.
Logs.var.
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.41-3ubuntu12.3 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
Norbert, thank you for reporting this issue and working with us to make Ubuntu better!
This bug in mysql-server- 5.1.preinst, is mostly due to misleading error messages. The script assumes because the mysqld init script exists, that mysqld is in fact running, when it may very well not be.
The fix is to only try to stop mysqld if it is running, though its not entirely clear how to reliably determine that it is running (possibly with the pid file)
Marking Triaged and setting Importance to Low, as most users who have installed mysql-server will in fact have it running.