[Bug 1772337] Re: package mysql-server-5.7 5.7.22-0ubuntu18.04.1 failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1

Andreas Hasenack andreas at canonical.com
Tue May 22 18:00:58 UTC 2018


This needs troubleshooting. The mysql logs have a bunch of these:
2018-05-21T01:01:35.759204Z 0 [ERROR] InnoDB: The error means the system cannot find the path specified.

And dmesg shows many apparmor denied errors:
[ 5343.367505] audit: type=1400 audit(1526864499.821:48): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/etc/my.cnf" pid=21556 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=1001 ouid=0

That path above (/etc/my.cnf) seems wrong, btw, it should be inside
/etc/mysql/.

The terminal log also shows that the init script was modified:
配置文件 '/etc/init.d/mysql'
 ==> 系统中的这个文件或者是由您创建的,或者是由脚本建立的。
 ==> 软件包维护者所提供的软件包中也包含了该文件。
   您现在希望如何处理呢? 您有以下几个选择:
    Y 或 I  :安装软件包维护者所提供的版本
    N 或 O  :保留您原来安装的版本
      D     :显示两者的区别
      Z     :把当前进程切换到后台,然后查看现在的具体情况
 默认的处理方法是保留您当前使用的版本。
*** mysql (Y/I/N/O/D/Z) [默认选项=N] ? y

Maybe this installation was too heavily modified from defaults.

** Changed in: mysql-5.7 (Ubuntu)
       Status: New => Triaged

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

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

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



More information about the Ubuntu-server-bugs mailing list