[Bug 605719] Re: package mysql-server-5.1 5.1.31-1ubuntu2 failed to install/upgrade: subprocess pre-removal script returned error exit status 1

Clint Byrum clint at fewbar.com
Sat Jul 24 14:23:25 BST 2010


Patrick, thank you for reporting this bug so we can make Ubuntu better!

I've looked at the prerm script, and it would appear that this was fixed
in newer versions of the packaging tool debhelper (specifically,
dh_installinit's generated prerm code no longer returns an error if the
stop fails).

The version you have in 9.04 does this:

# Automatically added by dh_installinit
if [ -x "/etc/init.d/mysql" ]; then
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d mysql stop || exit $?
	else
		/etc/init.d/mysql stop || exit $?
	fi
fi
# End automatically added section

Which will return the error code of the init script.

Whereas in the latest mysql-server-5.1 package, this is run:

# Automatically added by dh_installinit
if [ -e "/etc/init/mysql.conf" ]; then
	# stop fails if not running
	stop mysql || :
fi
# End automatically added section

Which will not return an error, and so should not cause problems during
removal.

I am marking this bug as "Fix Released", and attaching it to debhelper
as well.

** Changed in: mysql-dfsg-5.1 (Ubuntu)
       Status: New => Fix Released

** Changed in: mysql-dfsg-5.1 (Ubuntu)
   Importance: Undecided => Medium

** Also affects: debhelper (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: debhelper (Ubuntu)
       Status: New => Fix Released

-- 
package mysql-server-5.1 5.1.31-1ubuntu2 failed to install/upgrade: subprocess pre-removal script returned error exit status 1
https://bugs.launchpad.net/bugs/605719
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.



More information about the Ubuntu-server-bugs mailing list