subprocess post-installation script returned error exit status 255

Uhhhh…that’s what I thought when I tried to patch my mysql package with security updates.
I did a apt-get upgrade as usual and this was the full error I received:
Setting up mysql-client (4.0.24-10sarge2) …
Setting up mysql-server (4.0.24-10sarge2) …
Stopping MySQL database server:
mysqld.dpkg: error processing mysql-server (–configure): subprocess post-installation script returned error exit status 255
Starting MySQL database server: mysqld Errors were encountered while processing: mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)
mailserver:~# .Checking for crashed MySQL tables in the background.
Now thank the lords of Kobol for VMWare snapshot technology …I’m running my debian mailserver under VMWare GSX server
I reverted to my snapshot and tried again…I did two things different (stupid I know but I was in a hurry!)
I closed my mailclient still connected to my mailserver (using mysql as backend) I also did the apt-get upgrade command from the console instead of using SSH. I don’t know why but did not show up this time so all is well for now…
Posted: July 22nd, 2006 under Linux.
Comments: none