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

Bug #1753038 reported by Victor Alfonso Lechuga Illingworth
6
This bug affects 1 person
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-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-server-5.7
  mysql-server-core-5.7
Paquetes sugeridos:
  tinyca
Se instalarán los siguientes paquetes NUEVOS:
  libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7
  mysql-server-core-5.7
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-core-5.7 previamente no seleccionado.
(Leyendo la base de datos ... 453272 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../0-mysql-client-core-5.7_5.7.21-0ubuntu0.17.10.1_amd64.deb ...
Desempaquetando mysql-client-core-5.7 (5.7.21-0ubuntu0.17.10.1) ...
Seleccionando el paquete mysql-client-5.7 previamente no seleccionado.
Preparando para desempaquetar .../1-mysql-client-5.7_5.7.21-0ubuntu0.17.10.1_amd64.deb ...
Desempaquetando mysql-client-5.7 (5.7.21-0ubuntu0.17.10.1) ...
Seleccionando el paquete mysql-server-core-5.7 previamente no seleccionado.
Preparando para desempaquetar .../2-mysql-server-core-5.7_5.7.21-0ubuntu0.17.10.1_amd64.deb ...
Desempaquetando mysql-server-core-5.7 (5.7.21-0ubuntu0.17.10.1) ...
Seleccionando el paquete libevent-core-2.1-6:amd64 previamente no seleccionado.
Preparando para desempaquetar .../3-libevent-core-2.1-6_2.1.8-stable-4_amd64.deb ...
Desempaquetando libevent-core-2.1-6:amd64 (2.1.8-stable-4) ...
Seleccionando el paquete mysql-server-5.7 previamente no seleccionado.
Preparando para desempaquetar .../4-mysql-server-5.7_5.7.21-0ubuntu0.17.10.1_amd64.deb ...
grep: /etc/mysql/: No existe el archivo o el directorio
Desempaquetando mysql-server-5.7 (5.7.21-0ubuntu0.17.10.1) ...
Seleccionando el paquete mysql-server previamente no seleccionado.
Preparando para desempaquetar .../5-mysql-server_5.7.21-0ubuntu0.17.10.1_all.deb ...
Desempaquetando mysql-server (5.7.21-0ubuntu0.17.10.1) ...
Configurando libevent-core-2.1-6:amd64 (2.1.8-stable-4) ...
Procesando disparadores para ureadahead (0.100.0-20) ...
Configurando mysql-server-core-5.7 (5.7.21-0ubuntu0.17.10.1) ...
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-core-5.7 (5.7.21-0ubuntu0.17.10.1) ...
Configurando mysql-client-5.7 (5.7.21-0ubuntu0.17.10.1) ...
Configurando mysql-server-5.7 (5.7.21-0ubuntu0.17.10.1) ...
update-alternatives: atención: no existe la alternativa /etc/mysql/my.cnf.fallback (parte del grupo de enlaces my.cnf); eliminándola de la lista de alternativas
update-alternatives: atención: /etc/alternatives/my.cnf es un enlace colgado, se actualizará con la mejor opción
update-alternatives: utilizando /etc/mysql/mysql.cnf para proveer /etc/mysql/my.cnf (my.cnf) en modo automático
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
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.
                         Procesando disparadores para ureadahead (0.100.0-20) ...
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-0ubuntu0.17.10.1
ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
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.log.daemon.log:

Logs.var.log.mysql.error.log:
ProcCmdline: BOOT_IMAGE=/vmlinuz-4.13.0-36-generic.efi.signed root=UUID=3ba8d116-f9cc-4553-9d32-c0c4b7fb6b3e ro quiet splash vt.handoff=7
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
RelatedPackageVersions:
 dpkg 1.18.24ubuntu1
 apt 1.5.1
SourcePackage: mysql-5.7
Title: 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
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Victor Alfonso Lechuga Illingworth (lechugalf) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

From your Log:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)

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.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thank you for your report.

This looks like a local configuration problem, rather than a bug in Ubuntu.

You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu.

If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in mysql-5.7 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mysql-5.7 (Ubuntu) because there has been no activity for 60 days.]

Changed in mysql-5.7 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.