无法在ubuntu 11上安装mysql [英] not able to install mysql on ubuntu 11

查看:145
本文介绍了无法在ubuntu 11上安装mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Ubuntu 11.10中安装mysql.我在终端中使用sudo apt-get install mysql-server进行安装.

I want to install mysql in my Ubuntu 11.10. I use sudo apt-get install mysql-server in the terminal to install.

它给了我这个错误:

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?

谢谢

推荐答案

尝试删除apparmor软件包:

Try removing apparmor package:

sudo apt-get remove apparmor 

,然后使用mysql-common软件包重新尝试安装:

and then re-attempt the installation with mysql-common package:

sudo apt-get install mysql-common mysql-server

这篇关于无法在ubuntu 11上安装mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆