ubunt11 安装mysql,无法在ubuntu 11上安装mysql

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值