Thanks Mathias and Chuck for your suggestions. I was able to solve the problem by purging mysql-common. Then I was able to install mysql-server.
-- package mysql-server-5.1 5.1.37-1ubuntu5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127 https://bugs.launchpad.net/bugs/484426 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs