[Ilugc] mysql problem

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Mon Mar 30 06:59:17 2009

Hello,

On Mon, 30 Mar 2009, Zico wrote:

*E: mysql-server-5.0: subprocess pre-removal script returned error exit
status 1

Usually, this indicates a goof --- either on the part of the system
administrator (you!) or on the part of the person who created the .deb
package which you are using.

Explanation:
For each .deb package there are four scripts that can be found in
/var/lib/dpkg/info/ with the names
  pkgname.{preinst,postinst,prerm,postrm}
These scripts are run at the appropriate times during package
installation and removal.

Solutions:
1. There may be an update of mysql-server-5.0 (for your current
version of the O/S) which fixes this but. You can try to install
that. You might might get some warning about the prerm script but
it should go through.

2. You can look at the prerm script and see if you can fix
it. After fixing the script you can run 
   apt-get --purge remove mysql-server-5.0

3. If you can't fix the script, then put an "exit 0" close to the top
of the script. Warning: This will probably leave files on your system
which may cause problems with future installations of
mysql-server.

Regards,

Kapil.
--

Other related posts: