Problem solved!
I'd moved /var/lib to /home/var/lib (to save space) and made /var/lib a
symbolic link to that directory. This must have caused a problem with
apparmor, as per the line below:
Jun 15 19:19:02 micks-t400 kernel: [29451.814871] type=1503
audit(1245107942.002:30):
Public bug reported:
Mysql fails to install. This is on a system that was upgraded to jaunty,
and previously had mysql installed. I renamed the previously existing
/etc/mysql and /var/lib/mysql which had no affect. Purging the various
mysql packages failed to resolve this issue also.
** Attachment added: Dependencies.txt
http://launchpadlibrarian.net/26451637/Dependencies.txt
** Attachment added: DpkgTerminalLog.gz
http://launchpadlibrarian.net/26451638/DpkgTerminalLog.gz
--
mysql fails to install
https://bugs.launchpad.net/bugs/373513
You received this bug
Basically this fails to install or upgrade with the following error
messages:
090506 0:32:37 [Warning] Can't create test file
/var/lib/mysql/micks-t400.lower-test
090506 0:32:37 [Warning] Can't create test file
/var/lib/mysql/micks-t400.lower-test
090506 0:32:37 [ERROR] /usr/sbin/mysqld: