Ewan在Ubuntu下安装MySQL的时候出现了一下错误问题:
1234567891011121314start: Job failed to startinvoke-rc.d: initscript mysql, action "start" failed.dpkg: error processing mysql-server-5.5 (--configure):subprocess installed post-installation script returned error exit status 1dpkg: 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 unconfiguredNo apport report written because the error message indicates its a followup error from a previous failure.Errors were encountered while processing:mysql-server-5.5mysql-serverE: Sub-process /usr/bin/dpkg returned an error code (1)经查证,现给出解决办法:
删除MySQL前,先删除/var/lib/mysql和/etc/mysql12345$ 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
MySQL安装dpkg错误解决方案
本文地址:http://www.iooeo.com/2014/09/17/MySQL安装dpkg错误解决方案/
转载请注明出处,谢谢!
坚持原创技术分享,您的支持将鼓励我继续创作!