[Bug 969374] Re: package mysql-server-5.1 5.1.58-1ubuntu1 failed to install/upgrade: ErrorMessage: subprocess new pre-removal script returned error exit status 100

Clint Byrum clint at fewbar.com
Sat Apr 7 04:53:24 UTC 2012


(Reading database ... 432551 files and directories currently installed.)
Preparing to replace mysql-server-5.1 5.1.58-1ubuntu1 (using .../mysql-server-5.1_5.1.58-1ubuntu5_amd64.deb) ...
invoke-rc.d: unknown initscript, /etc/init.d/mysql not found.
dpkg: warning: subprocess old pre-removal script returned error exit status 100

Ideally with 12.04, you would not even have mysql-server-5.1, because it
has been replaced by mysql-server-5.5.

Anyway, invoke-rc.d is slightly misleading there, as the real missing
file is /etc/init/mysql.conf, but it is reporting the fallback sysvinit
script of /etc/init.d/mysql, which is also not there.

The way to do that is to force restoring it with:

dpkg -i --force-confmiss /var/cache/apt/archives/mysql-
server-5.1_5.1.51-1ubuntu5_amd64.deb

I'm not entirely sure that will work since this is the prerm script
failing though.. so another way to do it is:

sudo sh -c 'echo manual > /etc/init/mysql.conf'

Note that I would recommend the next step being to purge mysql-
server-5.1 (after backing up your configs and data) and install mysql-
server (which will pull in 5.5).

** Changed in: mysql-5.1 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.1 in Ubuntu.
https://bugs.launchpad.net/bugs/969374

Title:
  package mysql-server-5.1 5.1.58-1ubuntu1 failed to install/upgrade:
  ErrorMessage: subprocess new pre-removal script returned error exit
  status 100

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/969374/+subscriptions



More information about the Ubuntu-server-bugs mailing list