I want to install mysql in my Ubuntu 11.10. I use sudo apt-get install mysql-server in the terminal to install.
It gives me this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mysql-server-5.1 (5.1.61-0ubuntu0.11.10.1) ...
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'
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.1; however:
Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
Errors were encountered while processing:
mysql-server-5.1
mysql-server
Can anyone tell me what is going on here? How can I solve this problem?
Thanks
解决方案
Try removing apparmor package:
sudo apt-get remove apparmor
and then re-attempt the installation with mysql-common package:
sudo apt-get install mysql-common mysql-server