[Bug 1706106] Re: 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

Andreas Hasenack andreas at canonical.com
Fri Aug 25 18:44:54 UTC 2017


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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.7 in Ubuntu.
Matching subscriptions: main
https://bugs.launchpad.net/bugs/1706106

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1706106/+subscriptions



More information about the Ubuntu-server-bugs mailing list