package libapache2-mod-php7.0 7.0.30-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1777002 reported by Lee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php7.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Trying to install zoneminder which requires this package

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libapache2-mod-php7.0 7.0.30-0ubuntu0.16.04.1
Uname: Linux 4.17.1-041701-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Thu Jun 14 16:37:41 2018
DuplicateSignature:
 package:libapache2-mod-php7.0:7.0.30-0ubuntu0.16.04.1
 Installing new version of config file /etc/mysql/mysql.conf.d/mysqld.cnf ...
 /var/lib/dpkg/info/mysql-server-5.7.postinst: line 143: /usr/share/mysql-common/configure-symlinks: No such file or directory
 dpkg: error processing package mysql-server-5.7 (--configure):
  subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2018-05-20 (25 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.4
 apt 1.2.26
SourcePackage: php7.0
Title: package libapache2-mod-php7.0 7.0.30-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apache2.mods-available.php7.0.conf: [deleted]
modified.conffile..etc.apache2.mods-available.php7.0.load: [deleted]

Revision history for this message
Lee (lee48) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

You have two issues, one is that your config files were deleted for php7, that will sooner or later break it. If you don't want it at all, consider removing it:
  modified.conffile..etc.apache2.mods-available.php7.0.conf: [deleted]
  modified.conffile..etc.apache2.mods-available.php7.0.load: [deleted]

The other is more interesting as there seem to be an uncommon spike of this kind of bugs.
This is around mysql update missing a file.

Installing new version of config file /etc/mysql/mysql.conf.d/mysqld.cnf ...
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 143: /usr/share/mysql-common/configure-symlinks: No such file or directory

This is the actual thing that broke your update as it seems to me.
Duping this to the bug about the mysql issue.

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.