本文主要是介绍dpkg: error processing mysql-server (--configure),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
from: http://blog.sina.com.cn/s/blog_417ad82e0101el5i.html
Ubuntu安装数据库的时候,报错,查了好久,感谢这位仁兄,这解决方案,完美解决了我遇到的问题,Mark一下.
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)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!