Try to add 'user=mysql' in [mysqld] section of /etc/mysql/my.cnf before
doing 'apt-get install mysql-server'.

It worked for me. My problem was mysqld creating log files
(/var/lib/mysql/[hostname]-bin.[number]) for innodb tables owned by root
during the installation/upgrade. When started normally as mysql, mysqld
didn't have permission to read/write these files. It looks like package
installation script starts mysqld as root at first, and then as mysql.

-- 
package mysql-server-5.1 5.1.37-1ubuntu4 failed to install/upgrade: subprocess 
installed post-installation script returned error exit status 1
https://bugs.launchpad.net/bugs/444349
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to