ubuntu 中运行完sudo apt-get install curl
之后,最后出现:
ldconfig deferred processing now taking place
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
卸载mysql数据库和apparmor
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
重新安装mysql
sudo apt-get install mysql-server mysql-common