阿里云 ubuntu16.04 mysql-common卸载不掉的解决办法

root@:~# dpkg --list|grep mysql  
rc  mysql-common                          5.7.30-0ubuntu0.16.04.1                         all          MySQL database common files, e.g. /etc/mysql/my.cnf
rc  mysql-server-5.7                      5.7.30-0ubuntu0.16.04.1                         amd64        MySQL database server binaries and system database setup
ii  php-mysql                             1:7.0+35ubuntu6.1                               all          MySQL module for PHP [default]
ii  php7.0-mysql                          7.0.33-0ubuntu0.16.04.14                        amd64        MySQL module for PHP
root@:~# 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 3 not upgraded.

问题:用“sudo apt-get remove mysql-common”卸载,输出“Package is not installed, so not removed” – 因为没有安装,所以该命令下没有卸载成功

解决办法:使用 sudo apt-get --purge remove mysql-common

版权声明:本文为weixin_43390073原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。