Recibo el siguiente error al intentar instalar mysql-server en Ubuntu 12.04
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-libuser linux-headers-3.2.0-27 libqtwebkit4 python-central libuser1 linux-headers-3.2.0-27-generic-pae
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mysql-server-5.5
Suggested packages:
tinyca
The following NEW packages will be installed
mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 125 not upgraded.
Need to get 0 B/8,737 kB of archives.
After this operation, 31.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 312756 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.29-0ubuntu0.12.04.2_i386.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.29-0ubuntu0.12.04.2_all.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.2) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Respuesta1
En su directorio de datos generalmente /var/lib/mysql debería haber un archivo .err donde pueda encontrar más detalles. Por favor, eche un vistazo a ese archivo. Primero verá muchos mensajes de inicio e información sobre cómo MySQL configura su directorio de datos. El problema comienza cuando te encuentras con una línea de mensaje de error o fatal. Si no tiene claro el significado, publique el resto del archivo.