Comment 4 for bug 522185

Revision history for this message
Fisher90 (unixfish) wrote : Re: package mysql-server-5.1 5.1.37-1ubuntu5 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

I used the instructions that Sinquin David posted, and that seemed to work.

There were a few files in the /var/lib/mysql that were not owned by mysql - after doing the process, all the files were mysql mysql for owner and group. The file I was concerned with was the debian-5.1.flag file.

Is it possible the MySQL deamon did not have access to the flag file, and this was causing the problem? I could not get MySQL to stop, so the update never got very far. After the hard shutdown, clean shutdown, then update, everything seems fine. MySQL now starts and stops normally as well.