package mysql-server-5.7 5.7.21-0ubuntu0.17.10.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
$ sudo apt-get install mysql-server
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes adicionales:
libevent-
mysql-
Paquetes sugeridos:
tinyca
Se instalarán los siguientes paquetes NUEVOS:
libevent-
mysql-
0 actualizados, 6 nuevos se instalarán, 0 para eliminar y 10 no actualizados.
Se necesita descargar 0 B/20.4 MB de archivos.
Se utilizarán 160 MB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Preconfigurando paquetes ...
Seleccionando el paquete mysql-client-
(Leyendo la base de datos ... 453272 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../0-mysql-
Desempaquetando mysql-client-
Seleccionando el paquete mysql-client-5.7 previamente no seleccionado.
Preparando para desempaquetar .../1-mysql-
Desempaquetando mysql-client-5.7 (5.7.21-
Seleccionando el paquete mysql-server-
Preparando para desempaquetar .../2-mysql-
Desempaquetando mysql-server-
Seleccionando el paquete libevent-
Preparando para desempaquetar .../3-libevent-
Desempaquetando libevent-
Seleccionando el paquete mysql-server-5.7 previamente no seleccionado.
Preparando para desempaquetar .../4-mysql-
grep: /etc/mysql/: No existe el archivo o el directorio
Desempaquetando mysql-server-5.7 (5.7.21-
Seleccionando el paquete mysql-server previamente no seleccionado.
Preparando para desempaquetar .../5-mysql-
Desempaquetando mysql-server (5.7.21-
Configurando libevent-
Procesando disparadores para ureadahead (0.100.0-20) ...
Configurando mysql-server-
Procesando disparadores para libc-bin (2.26-0ubuntu2.1) ...
Procesando disparadores para systemd (234-2ubuntu12.1) ...
Procesando disparadores para man-db (2.7.6.1-2) ...
Configurando mysql-client-
Configurando mysql-client-5.7 (5.7.21-
Configurando mysql-server-5.7 (5.7.21-
update-
update-
update-
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https:/
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error al procesar el paquete mysql-server-5.7 (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 1
dpkg: problemas de dependencias impiden la configuración de mysql-server:
mysql-server depende de mysql-server-5.7; sin embargo:
El paquete `mysql-server-5.7' no está configurado todavía.
dpkg: error al procesar el paquete mysql-server (--configure):
problemas de dependencias - se deja sin configurar
Procesando disparadores para systemd (234-2ubuntu12.1) ...
No se escribió un informe «apport» porque el mensaje de error indica que es un mensaje de error asociado a un fallo previo.
Se encontraron errores al procesar:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: mysql-server-5.7 5.7.21-
ProcVersionSign
Uname: Linux 4.13.0-36-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
Date: Fri Mar 2 21:28:40 2018
ErrorMessage: el subproceso instalado el script post-installation devolvió el código de salida de error 1
InstallationDate: Installed on 2017-12-14 (78 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
Logs.var.
Logs.var.
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageV
dpkg 1.18.24ubuntu1
apt 1.5.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.21-
UpgradeStatus: No upgrade log present (probably fresh install)
From your Log: conf.d/ ' (Errcode: 2 - No such file or directory)
mysqld: Can't read dir of '/etc/mysql/
This seems broken, in a clean installation this looks like;
root@a:~# ll /etc/mysql/conf.d/
total 16
drwxr-xr-x 2 root root 4096 Feb 28 12:02 ./
drwxr-xr-x 5 root root 4096 Mar 12 13:25 ../
-rw-r--r-- 1 root root 8 Jan 17 2017 mysql.cnf
-rw-r--r-- 1 root root 55 Jan 17 2017 mysqldump.cnf
root@a:~# dpkg -S /etc/mysql/conf.d/
mysql-common: /etc/mysql/conf.d
If you removed those manually this is a config you have to fix to get it installing again.
Ubuntu can't differ between an intentional config and a accidental delete in your case.