主要在重装MYSQL或者MARIADB的时候
apt-get安装的,就执行以下
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
aptitude安装的,就执行以下
aptitude purge mariadb*
再进行重装,错误不再出现,安装成功。
为了便于一些人查找,罗列一些有用的关键词句dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 127
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.
Package mariadb-server-5.5 is not configured yet.
subprocess installed post-installation script returned error exit status 7
dpkg: error processing mariadb-server-5.5