I want to install php5-imap php5-ldap php5-curl
sudo apt-get install php5-imap php5-ldap php5-curl
I get this error:
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql'
How can this problem be resolved?
You are missing the file abstractions/mysql. This happened to me when I tried to completely remove MySQL before reinstalling it. I fixed this issue by replacing the file with a copy from another server. The contents of my file looks something like this:
Try creating the file and adding the above contents with:
See if the Ubuntu wiki helps : https://wiki.ubuntu.com/DebuggingApparmor
Specifically,
It is an old question, but maybe someone will find it useful.
Sometimes pieces of application are split in separate packages. Same goes for apparmor profiles. They are split in packages
apparmor-profiles
andapparmor-profiles-extra
. So, if you have some profiles missing, installapparmor-profiles-extra
.