Comment 0 for bug 204042

Revision history for this message
Robin Joinson (robin-joinson) wrote :

The problem seems to be caused by Apparmor. For example in /var/log/syslog:

Mar 19 20:04:39 lyra kernel: [ 6979.352113] audit(1205957079.490:28): operation=
"inode_permission" request_mask="r::" denied_mask="r::" name="/opt/share/mysql/english/errmsg.sys" pid=3861 profile="/usr/sbin/mysqld" namespace="default"
Mar 19 20:04:39 lyra mysqld[3863]: 080319 20:04:39 [ERROR] Can't find messagefile '/usr/share/mysql/english/errmsg.sys'
Mar 19 20:04:39 lyra mysqld[3863]: 080319 20:04:39 [ERROR] AbortingMar 19 20:04:39 lyra mysqld[3863]: Mar 19 20:04:39 lyra mysqld_safe[3865]: ended

Did

apt-get remove --purge apparmor
apt-get -f install

the mysql server components then upgraded OK and the server started.

I don't know about Apparmor, but from the looks of syslog, it looks as though there was a problem with the apparmor acls; I noticed that during the mysql server install, a script appears to load up the apparmor rules and these rules appear to be preventing a clean mysqld upgrade.

Previous upgrades of mysqld under Gutsy on this machine have been problem free.