package mysql-server-5.7 5.7.15-0ubuntu0.16.04.1 failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1

Bug #1632907 reported by lipeilin
34
This bug affects 8 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

sudo apt-get install mysql-server mysql-client"
  report
update-rc.d: error: insserv rejected the script header
dpkg: 处理软件包 mysql-server-5.7 (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 libhtml-template-perl (2.95-2) ...
正在设置 mysql-client (5.7.15-0ubuntu0.16.04.1) ...
dpkg: 依赖关系问题使得 mysql-server 的配置工作不能继续:
 mysql-server 依赖于 mysql-server-5.7;然而:
  软件包 mysql-server-5.7 尚未配置。

dpkg: 处理软件包 mysql-server (--configure)时出错:
 依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    正在处理用于 systemd (229-4ubuntu10) 的触发器 ...
正在处理用于 ureadahead (0.100.0-19) 的触发器 ...
在处理时有错误发生:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.15-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic i686
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: i386
Date: Thu Oct 13 09:34:33 2016
ErrorMessage: 子进程 已安装 post-installation 脚本 返回错误状态 1
InstallationDate: Installed on 2016-09-19 (23 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release i386 (20160420.1)
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: ['sys', 'mysql', 'performance_schema', 'ib_buffer_pool', 'ibdata1', 'mysql-bin.000001', 'auto.cnf', 'mysql-bin.index', 'ib_logfile0', 'ib_logfile1', 'ib_logfile2', 'debian-5.7.flag']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-38-generic root=UUID=d589948d-bb01-4894-91ea-4b6523d54443 ro quiet splash
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.15-0ubuntu0.16.04.1 failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
lipeilin (lpl2016) wrote :
Revision history for this message
Nish Aravamudan (nacc) wrote :

Thank you for filing this report! It would appear there might be some local configuration issues here, as the error is due to the postinst failing:

insserv: script mysql: service mysql already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header

Did you do any local modifications to the mysql configuration before performing this upgrade?

Changed in mysql-5.7 (Ubuntu):
status: New → 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
Revision history for this message
dudongdong (dudongdong) wrote :

I have modify /etc/mysql/mysql.conf.d/mysqld.cnf datadir to /opt, and modify ubuntu apparmor to allow mysql change datadir.

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.