-
Edite o script
post-installation
sudo nano /var/lib/dpkg/info/mysql-server-5.6.postinst
-
Pesquise a função
invoke() { if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d mysql else /etc/init.d/mysql fi }
e substitua por
invoke() { echo #if [ -x /usr/sbin/invoke-rc.d ]; then # invoke-rc.d mysql #else # /etc/init.d/mysql #fi }
-
Salve o arquivo
-
Edite o script
pre-removal
sudo nano /var/lib/dpkg/info/mysql-server-5.6.prerm
-
Pesquise as linhas
if [ -x "/etc/init.d/mysql" ] || [ -e "/etc/init/mysql.conf" ]; then invoke-rc.d mysql stop || exit $? fi
e substitua
if [ -x "/etc/init.d/mysql" ] || [ -e "/etc/init/mysql.conf" ]; then echo #invoke-rc.d mysql stop || exit $? fi
-
Edite o script
post-removal
sudo nano /var/lib/dpkg/info/mysql-server-5.6.postrm
-
Pesquisar
# New packaging paradigm for my.cnf as of Dec-2014 for sharing mysql # variants in Ubuntu. case "" in remove|disappear) /usr/share/mysql-common/configure-symlinks remove mysql "$mysql_cfgdir/mysql.cnf" ;; esac
e substitua
# New packaging paradigm for my.cnf as of Dec-2014 for sharing mysql # variants in Ubuntu. case "" in remove|disappear) # /usr/share/mysql-common/configure-symlinks remove mysql "$mysql_cfgdir/mysql.cnf" ;; esac
-
Salve o arquivo e execute o comando novamente
sudo apt-get remove --purge mysql-server-5.6