package mysql-server-5.7 5.7.17-0ubuntu0.16.04.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) |
New
|
Undecided
|
Unassigned |
Bug Description
Happened while upgrading mysql-server to version 5.7.17-
[...]
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/
[...]
This is the full output for the configuration part of the mysql-server upgrade (it's in spanish, sorry):
[...]
Desempaquetando mysql-server (5.7.17-
Procesando disparadores para man-db (2.7.5-1) ...
Procesando disparadores para systemd (229-4ubuntu16) ...
Procesando disparadores para ureadahead (0.100.0-19) ...
Procesando disparadores para libc-bin (2.23-0ubuntu5) ...
Configurando libpam-
Configurando udev (229-4ubuntu16) ...
addgroup: El grupo `input' ya existe como grupo del sistema. Saliendo.
update-initramfs: deferring update (trigger activated)
Configurando uuid-runtime (2.27.1-6ubuntu3.2) ...
Configurando mysql-client-
Configurando mysql-client-5.7 (5.7.17-
Configurando mysql-server-
Configurando mysql-server-5.7 (5.7.17-
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
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
[...]
Then I tried to
$ sudo apt install -f
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
2 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
Configurando mysql-server-5.7 (5.7.17-
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
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
No se escribió un informe «apport» porque el mensaje de error indica que es un mensaje de error asociado a un fallo previo.
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Same error appears. Then I tried to start mysql-server whit:
$ sudo systemctl restart mysql.service
And try again upgrade:
$ sudo apt install -f
Same error
The file /var/run/
Ubuntu release:
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Package:
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
joaquin@smeagol:~$ apt-cache policy mysql-server
mysql-server mysql-server-5.7 mysql-server-
joaquin@smeagol:~$ apt-cache policy mysql-server-5.7
mysql-server-5.7:
Instalados: 5.7.17-
Candidato: 5.7.17-
Tabla de versión:
*** 5.7.17-
500 http://
500 http://
100 /var/lib/
5.
500 http://
Hope it helps and thanks in advance.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.17-
ProcVersionSign
Uname: Linux 4.8.0-34-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Sat Jan 21 09:58:14 2017
ErrorMessage: el subproceso instalado el script post-installation devolvió el código de salida de error 1
InstallationDate: Installed on 2016-11-20 (61 days ago)
InstallationMedia: Ubuntu-MATE 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.4ubuntu1.1
apt 1.2.18
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.17-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
upstart.
You'r assumption is correct - there were a few more of those reports, so Dup'ing onto just one