package mysql-server-5.7 5.7.19-0ubuntu0.17.04.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1

Bug #1706106 reported by Jaime
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

when i try update the system
trow this error

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: mysql-server-5.7 5.7.19-0ubuntu0.17.04.1
ProcVersionSignature: Ubuntu 4.10.0-28.32-generic 4.10.17
Uname: Linux 4.10.0-28-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
Date: Mon Jul 24 09:52:44 2017
ErrorMessage: el subproceso instalado el script post-installation devolvió el código de salida de error 1
InstallationDate: Installed on 2017-05-29 (56 days ago)
InstallationMedia: Kubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['ibdata1', 'ibtmp1', 'ib_buffer_pool', 'intranet', 'server-key.pem', 'public_key.pem', 'pondercel', 'mysql', 'sys', 'ib_logfile1', 'server-cert.pem', 'performance_schema', 'ib_logfile0', 'ca.pem', 'client-cert.pem', 'auto.cnf', 'phpmyadmin', 'client-key.pem', 'debian-5.7.flag', 'ca-key.pem', 'private_key.pem']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.10.0-28-generic root=/dev/mapper/kubuntu--vg-root ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.10ubuntu2
 apt 1.4
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.19-0ubuntu0.17.04.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
Jaime (vikingo024) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mysql-5.7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I see two errors in you logs:

a) Error del analizador AppArmor para /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld en la l?nea 9: No se pudo abrir 'abstractions/mysql'

b)
2017-07-24T15:52:44.678988Z 3 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2017-07-24T15:52:44.686285Z 4 [Note] Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)

For the first case, do you have a /etc/apparmor.d/abstractions/mysql file?

For the second case, the maintainer scripts tried to connect to your database using, at first, the root account with no password. As that failed, probably because you have set a password for that account (which is normal and recommended), its fallback is the debian-sys-maint account, whose password was randomly selected when you first installed mysql. That password is stored in /etc/mysql/debian.cnf.

Try the following command, using the password for the debian-sys-maint account stored in /etc/mysql/debian.cnf:

mysql -udebian-sys-maint -p<password>

If that indeed fails, then please use your mysql root account access and fix the password for that user:

$ mysql -uroot -p
mysql> ALTER USER 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password from debian.cnf>';

Then run this command to fix the package installation:

$ sudo apt -f install

Changed in mysql-5.7 (Ubuntu):
status: Confirmed → 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.