Corregir excepción al desinstalar mysql en Ubuntu.

Al tratar de reinstalar Mysql en Ubuntu por cuestiones de modificar archivos sin conocimiento previo, deseaba entonces corregirlos reinstalando mysql, pero al ejecutar:

sudo apt-get purge mysql-server mysql-client mysql-common mysql-client-5.5 mysql-server-5.5

surgía una excepcion:
Se encontraron errores al procesar:

mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Lo cual se corrige con ejecutar la siguiente línea:

sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/usr.sbin.mysqld

y luego se procede a desinstalación normal:

sudo apt-get purge mysql-server mysql-client mysql-common mysql-client-5.5 mysql-server-5.5
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /etc/mysql
sudo apt-get install mysql-server mysql-common mysql-client

Fuente: http://askubuntu.com/questions/175820/mysql-doesnt-update-due-to-error-in-apparmor-profile

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s