码迷,mamicode.com
首页 > 数据库 > 详细

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured

时间:2014-06-25 13:32:08      阅读:277      评论:0      收藏:0      [点我收藏+]

标签:class   code   tar   ext   com   get   

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured

start: Job failed to start

invoke-rc.d: initscript mysql, action "start" failed.

dpkg: error processing mysql-server-5.5 (--configure):

 subprocess installed post-installation script returned error exit status 1

dpkg: dependency problems prevent configuration of mysql-server:

 mysql-server depends on mysql-server-5.5; however:

  Package mysql-server-5.5 is not configured yet.

dpkg: error processing mysql-server (--configure):

 dependency problems - leaving unconfigured

No apport report written because the error message indicates its a followup error from a previous failure.

                                                                                                          Errors were encountered while processing:

 mysql-server-5.5

 mysql-server

E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

解决方法:

删除mysql前 先删除一下 /var/lib/mysql 还有 /etc/mysql

 

 

sudo rm /var/lib/mysql/ -R

sudo rm /etc/mysql/ -R

 

sudo apt-get autoremove mysql* --purge

sudo apt-get remove apparmor

 

sudo apt-get install mysql-server mysql-common

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured,布布扣,bubuko.com

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured

标签:class   code   tar   ext   com   get   

原文地址:http://www.cnblogs.com/edwardsun/p/3806781.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!