由于Ubuntu 16.04,我无法安装新的mysql-server版本(5.7)。
mysql dpkg returned an error code
...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
我试图重新安装。我已全部删除并安装。但错误消息仍然存在。
任何想法?
我从https://askubuntu.com/questions/760724/16-04-upgrade-broke-mysql-server
开始关注此事Back up your my.cnf file in /etc/mysql and remove it
Remove the folder /etc/mysql/mysql.conf.d/
Verify you don't have a my.cnf file stashed somewhere else (I did in my home dir!)
Backup and remove /etc/mysql/debian.cnf files (not sure if needed, but just in case)
sudo apt purge mysql-server mysql-server-5.7 mysql-server-core-5.7
sudo apt install mysql-server
我仍然收到错误。