Public bug reported:

Fails to install libapache2-mod-php7.1:

$ sudo apt-get install php7.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-data apache2-utils libapache2-mod-php7.1 php7.1-cli 
php7.1-json php7.1-opcache php7.1-readline
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear
The following NEW packages will be installed:
  apache2 apache2-data apache2-utils libapache2-mod-php7.1 php7.1 php7.1-cli 
php7.1-json php7.1-opcache php7.1-readline
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,151 kB of archives.
After this operation, 11.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://za.archive.ubuntu.com/ubuntu artful/main amd64 apache2-utils amd64 
2.4.27-2ubuntu2 [83.2 kB]
Get:2 http://za.archive.ubuntu.com/ubuntu artful/main amd64 apache2-data all 
2.4.27-2ubuntu2 [161 kB]
Get:3 http://za.archive.ubuntu.com/ubuntu artful/main amd64 apache2 amd64 
2.4.27-2ubuntu2 [95.9 kB]
Get:4 http://za.archive.ubuntu.com/ubuntu artful/main amd64 php7.1-json amd64 
7.1.8-1ubuntu1 [17.4 kB]
Get:5 http://za.archive.ubuntu.com/ubuntu artful/main amd64 php7.1-opcache 
amd64 7.1.8-1ubuntu1 [146 kB]
Get:6 http://za.archive.ubuntu.com/ubuntu artful/main amd64 php7.1-readline 
amd64 7.1.8-1ubuntu1 [12.4 kB]
Get:7 http://za.archive.ubuntu.com/ubuntu artful/main amd64 php7.1-cli amd64 
7.1.8-1ubuntu1 [1,344 kB]
Get:8 http://za.archive.ubuntu.com/ubuntu artful/main amd64 
libapache2-mod-php7.1 amd64 7.1.8-1ubuntu1 [1,286 kB]
Get:9 http://za.archive.ubuntu.com/ubuntu artful/main amd64 php7.1 all 
7.1.8-1ubuntu1 [5,604 B]
Fetched 3,151 kB in 2s (1,416 kB/s)
Selecting previously unselected package apache2-utils.
(Reading database ... 314798 files and directories currently installed.)
Preparing to unpack .../0-apache2-utils_2.4.27-2ubuntu2_amd64.deb ...
Unpacking apache2-utils (2.4.27-2ubuntu2) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../1-apache2-data_2.4.27-2ubuntu2_all.deb ...
Unpacking apache2-data (2.4.27-2ubuntu2) ...
Selecting previously unselected package apache2.
Preparing to unpack .../2-apache2_2.4.27-2ubuntu2_amd64.deb ...
Unpacking apache2 (2.4.27-2ubuntu2) ...
Selecting previously unselected package php7.1-json.
Preparing to unpack .../3-php7.1-json_7.1.8-1ubuntu1_amd64.deb ...
Unpacking php7.1-json (7.1.8-1ubuntu1) ...
Selecting previously unselected package php7.1-opcache.
Preparing to unpack .../4-php7.1-opcache_7.1.8-1ubuntu1_amd64.deb ...
Unpacking php7.1-opcache (7.1.8-1ubuntu1) ...
Selecting previously unselected package php7.1-readline.
Preparing to unpack .../5-php7.1-readline_7.1.8-1ubuntu1_amd64.deb ...
Unpacking php7.1-readline (7.1.8-1ubuntu1) ...
Selecting previously unselected package php7.1-cli.
Preparing to unpack .../6-php7.1-cli_7.1.8-1ubuntu1_amd64.deb ...
Unpacking php7.1-cli (7.1.8-1ubuntu1) ...
Selecting previously unselected package libapache2-mod-php7.1.
Preparing to unpack .../7-libapache2-mod-php7.1_7.1.8-1ubuntu1_amd64.deb ...
Unpacking libapache2-mod-php7.1 (7.1.8-1ubuntu1) ...
Selecting previously unselected package php7.1.
Preparing to unpack .../8-php7.1_7.1.8-1ubuntu1_all.deb ...
Unpacking php7.1 (7.1.8-1ubuntu1) ...
Processing triggers for ufw (0.35-4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up apache2-utils (2.4.27-2ubuntu2) ...
Setting up php7.1-readline (7.1.8-1ubuntu1) ...

Creating config file /etc/php/7.1/mods-available/readline.ini with new version
Setting up apache2-data (2.4.27-2ubuntu2) ...
Processing triggers for systemd (233-8ubuntu3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up php7.1-json (7.1.8-1ubuntu1) ...

Creating config file /etc/php/7.1/mods-available/json.ini with new version
Setting up php7.1-opcache (7.1.8-1ubuntu1) ...

Creating config file /etc/php/7.1/mods-available/opcache.ini with new version
Setting up apache2 (2.4.27-2ubuntu2) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → 
/lib/systemd/system/apache2.service.
Created symlink 
/etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → 
/lib/systemd/system/apache-htcacheclean.service.
Setting up php7.1-cli (7.1.8-1ubuntu1) ...
update-alternatives: using /usr/bin/php7.1 to provide /usr/bin/php (php) in 
auto mode
update-alternatives: using /usr/bin/phar7.1 to provide /usr/bin/phar (phar) in 
auto mode
update-alternatives: using /usr/bin/phar.phar7.1 to provide /usr/bin/phar.phar 
(phar.phar) in auto mode

Creating config file /etc/php/7.1/cli/php.ini with new version
php_invoke: Enabled module ftp for cli sapi
php_invoke: Enabled module calendar for cli sapi
php_invoke: Enabled module fileinfo for cli sapi
php_invoke: Enabled module simplexml for cli sapi
php_invoke: Enabled module tokenizer for cli sapi
php_invoke: Enabled module sysvsem for cli sapi
php_invoke: Enabled module ctype for cli sapi
php_invoke: Enabled module pdo for cli sapi
php_invoke: Enabled module wddx for cli sapi
php_invoke: Enabled module shmop for cli sapi
php_invoke: Enabled module phar for cli sapi
php_invoke: Enabled module sysvmsg for cli sapi
php_invoke: Enabled module gettext for cli sapi
php_invoke: Enabled module sockets for cli sapi
php_invoke: Enabled module xsl for cli sapi
php_invoke: Enabled module dom for cli sapi
php_invoke: Enabled module xml for cli sapi
php_invoke: Enabled module xmlwriter for cli sapi
php_invoke: Enabled module posix for cli sapi
php_invoke: Enabled module exif for cli sapi
php_invoke: Enabled module sysvshm for cli sapi
php_invoke: Enabled module xmlreader for cli sapi
php_invoke: Enabled module iconv for cli sapi
Setting up libapache2-mod-php7.1 (7.1.8-1ubuntu1) ...

Configuration file '/etc/apache2/mods-available/php7.1.conf'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** php7.1.conf (Y/I/N/O/D/Z) [default=N] ? d

Configuration file '/etc/apache2/mods-available/php7.1.conf'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** php7.1.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/apache2/mods-available/php7.1.conf 
...
Replacing config file /etc/php/7.1/apache2/php.ini with new version
php_invoke: Enabled module ftp for apache2 sapi
php_invoke: Enabled module calendar for apache2 sapi
php_invoke: Enabled module fileinfo for apache2 sapi
php_invoke: Enabled module simplexml for apache2 sapi
php_invoke: Enabled module tokenizer for apache2 sapi
php_invoke: Enabled module sysvsem for apache2 sapi
php_invoke: Enabled module ctype for apache2 sapi
php_invoke: Enabled module pdo for apache2 sapi
php_invoke: Enabled module wddx for apache2 sapi
php_invoke: Enabled module shmop for apache2 sapi
php_invoke: Enabled module phar for apache2 sapi
php_invoke: Enabled module sysvmsg for apache2 sapi
php_invoke: Enabled module gettext for apache2 sapi
php_invoke: Enabled module sockets for apache2 sapi
php_invoke: Enabled module xsl for apache2 sapi
php_invoke: Enabled module dom for apache2 sapi
php_invoke: Enabled module xml for apache2 sapi
php_invoke: Enabled module xmlwriter for apache2 sapi
php_invoke: Enabled module posix for apache2 sapi
php_invoke: Enabled module exif for apache2 sapi
php_invoke: Enabled module sysvshm for apache2 sapi
php_invoke: Enabled module xmlreader for apache2 sapi
php_invoke: Enabled module iconv for apache2 sapi
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
dpkg: error processing package libapache2-mod-php7.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php7.1:
 php7.1 depends on libapache2-mod-php7.1 | php7.1-fpm | php7.1-cgi; however:
  Package libapache2-mod-php7.1 is not configured yet.
  Package php7.1-fpm is not installed.
  Package php7.1-cgi is not installed.

dpkg: error processing package php7.1 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (233-8ubuntu3) ...
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-4) ...
Errors were encountered while processing:
 libapache2-mod-php7.1
 php7.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

libapache2-mod-php7.0 was also doing the same thing. I upgraded to
artful to see if it was fixed in PHP 7.1.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: libapache2-mod-php7.1 7.1.8-1ubuntu1
ProcVersionSignature: Ubuntu 4.11.0-10.15-generic 4.11.8
Uname: Linux 4.11.0-10-generic x86_64
ApportVersion: 2.20.6-0ubuntu4
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Aug 10 22:24:21 2017
InstallationDate: Installed on 2016-10-25 (288 days ago)
InstallationMedia: Ubuntu-GNOME 16.04.1 LTS "Xenial Xerus" - Release amd64 
(20160720)
SourcePackage: php7.1
UpgradeStatus: Upgraded to artful on 2017-08-09 (1 days ago)
modified.conffile..etc.apache2.mods-available.php7.1.load: [deleted]

** Affects: php7.1 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful

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

Title:
  error processing package libapache2-mod-php7.1 (--configure)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php7.1/+bug/1710007/+subscriptions

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

Reply via email to