我试图完全卸载mysql以稍后重新安装,卸载所有与mysql相关的包后,mysql-common似乎仍处于损坏状态。
$ sudo dpkg -l | grep mysql
pc mysql-common 5.6.28-0ubuntu0.15.10.1 all MySQL database common files, e.g. /etc/mysql/my.cnf
Run Code Online (Sandbox Code Playgroud)
但是运行 apt-get remove
$ sudo apt-get remove mysql-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-common' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Run Code Online (Sandbox Code Playgroud)
或者使用 --purge
$ sudo apt-get remove --purge mysql-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will …
Run Code Online (Sandbox Code Playgroud)