running dpkg-reconfigure and get repeatedly and error:

Setting up mysql-server-5.7 (5.7.15-0ubuntu0.16.04.1) ...
update-alternatives: warning: forcing reinstallation of alternative 
/etc/mysql/mysql.cnf because link group my.cnf is broken
update-alternatives: warning: not replacing /etc/mysql/my.cnf with a link
Renaming removed key_buffer and myisam-recover options (if present)
Job for mysql.service failed because the control process exited with error 
code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          dpkg: dependency problems prevent configuration of 
mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


.........then trying running this command....... $ systemctl status 
mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: 
enabled)
   Active: activating (start-post) (Result: exit-code) since mer. 2016-09-14 
19:47:01 CEST; 5s ago
  Process: 27254 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 27251 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre 
(code=exited, status=0/SUCCESS)
 Main PID: 27254 (code=exited, status=1/FAILURE);         : 27255 
(mysql-systemd-s)
   CGroup: /system.slice/mysql.service
           └─control
             ├─27255 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─27294 sleep 1

sept. 14 19:47:01 utilisateur-Lenovo-B590 systemd[1]: mysql.service: Service 
hold-off time over, scheduling restart.
sept. 14 19:47:01 utilisateur-Lenovo-B590 systemd[1]: Stopped MySQL Community 
Server.
sept. 14 19:47:01 utilisateur-Lenovo-B590 systemd[1]: Starting MySQL Community 
Server...
sept. 14 19:47:04 utilisateur-Lenovo-B590 systemd[1]: mysql.service: Main 
process exited, code=exited, status=1/FAILURE


.........then trying running this command....... $ journalctl -xe
sept. 14 19:49:03 utilisateur-Lenovo-B590 systemd[1]: Failed to start MySQL 
Community Server.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit mysql.service has failed.
-- 
-- The result is failed.
sept. 14 19:49:03 utilisateur-Lenovo-B590 systemd[1]: mysql.service: Unit 
entered failed state.
sept. 14 19:49:03 utilisateur-Lenovo-B590 systemd[1]: mysql.service: Failed 
with result 'exit-code'.
sept. 14 19:49:03 utilisateur-Lenovo-B590 systemd[1]: mysql.service: Service 
hold-off time over, scheduling restart.
sept. 14 19:49:03 utilisateur-Lenovo-B590 systemd[1]: Stopped MySQL Community 
Server.
-- Subject: Unit mysql.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit mysql.service has finished shutting down.
sept. 14 19:49:03 utilisateur-Lenovo-B590 systemd[1]: Starting MySQL Community 
Server...
-- Subject: Unit mysql.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit mysql.service has begun starting up.
sept. 14 19:49:04 utilisateur-Lenovo-B590 audit[27668]: AVC apparmor="DENIED" 
operation="mknod" profile="/usr/sbin/mysqld" name="/run/mysqld/mysql.sock.lock" 
pid=27668 comm="mysqld" requested_mask="c" denied_mask="c"
sept. 14 19:49:04 utilisateur-Lenovo-B590 kernel: audit: type=1400 
audit(1473875344.351:4772): apparmor="DENIED" operation="mknod" 
profile="/usr/sbin/mysqld" name="/run/mysqld/mysql.sock.lock" pid=27668 
comm="mysqld"
sept. 14 19:49:06 utilisateur-Lenovo-B590 systemd[1]: mysql.service: Main 
process exited, code=exited, status=1/FAILURE

_____________________________________

It seems to have an issue with apparmor or with the symlinks mysql.cnf
and mysql.sock. Does somebody have a solution for this?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1623610

Title:
  package mysql-server-5.7 5.7.15-0ubuntu0.16.04.1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 1

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to