package libapache2-mod-php5 5.5.12+dfsg-2ubuntu4.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4

Bug #1467552 reported by Andrew Chernow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

OUTPUT at command prompt just before error. It was working on php5 and I just told it to keep my php.ini file. After saying keep my php.ini, the below was outputted.

ucfr: Attempt from package libapache2-mod-php5 to take /repo/config/etc/php.ini away from package php5-cli
ucfr: Aborting.
dpkg: error processing package libapache2-mod-php5 (--configure):
 subprocess installed post-installation script returned error exit status 4
Setting up ubuntu-standard (1.327) ...
dpkg: dependency problems prevent configuration of php5:
 php5 depends on libapache2-mod-php5 (>= 5.5.12+dfsg-2ubuntu4.4~) | libapache2-mod-php5filter (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-cgi (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-fpm (>= 5.5.12+dfsg-2ubuntu4.4~); however:
  Package libapache2-mod-php5 is not configured yet.
  Package libapache2-mod-php5filter is not installed.
  Package php5-cgi is not installed.
  Package php5-fpm is not installed.

dpkg: error processing package php5 (--configure):
 dependency problems - leaving unconfigured
Setting up plymouth (0.9.0-0ubuntu7) ...
update-initramfs: deferring update (trigger activated)
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up upstart (1.13.2-0ubuntu2) ...
Setting up friendly-recovery (0.2.26) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-41-generic
Found initrd image: /boot/initrd.img-3.16.0-41-generic
Found linux image: /boot/vmlinuz-3.13.0-43-generic
Found initrd image: /boot/initrd.img-3.13.0-43-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Setting up ubuntu-minimal (1.327) ...
Setting up plymouth-theme-ubuntu-text (0.9.0-0ubuntu7) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for dbus (1.8.8-1ubuntu2.1) ...
Setting up libpam-systemd:amd64 (208-8ubuntu8.2) ...
Removing obsolete conffile /etc/init/systemd-logind.conf ...
Setting up policykit-1 (0.105-4ubuntu2.14.10.1) ...
Processing triggers for libc-bin (2.19-10ubuntu2.3) ...
Processing triggers for ca-certificates (20141019ubuntu0.14.10.1) ...
Updating certificates in /etc/ssl/certs... 17 added, 8 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for initramfs-tools (0.103ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-41-generic
Errors were encountered while processing:
 libapache2-mod-php5
 php5
Error in function:

A fatal error occurred

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Andrew Chernow (3-andrew-s) wrote :
Revision history for this message
Andrew Chernow (3-andrew-s) wrote :
description: updated
Revision history for this message
Robie Basak (racb) wrote :

Thank you for your report.

What is /repo/config/etc/php.ini please? Is it something you have created and symlinked from /etc/php? Do you have multiple symlinks pointing to the same location?

Once you've replied, please change the bug status back to New.

Changed in php5 (Ubuntu):
status: New → Incomplete
Martin Pitt (pitti)
tags: removed: need-duplicate-check
Revision history for this message
Andrew Chernow (3-andrew-s) wrote : Re: [Bug 1467552] package libapache2-mod-php5 5.5.12+dfsg-2ubuntu4.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4
Download full text (4.9 KiB)

/repo/config/etc/php.ini is a custom ini that is linked to /etc/php5 apache2 and cli folders. The same file linked in both places since Apache virtual hosts override ini directives via php_value. I'm guessing I should of removed those links before attempting the upgrade.

After the upgrade, Apache and php was kind of screwed up until I purged them completely from the system and installed them again via apt-get install (which installed the 14.10 versions of apache and php properly). Now everything seems to work just fine. I was asked whether I wanted to keep both ini files and I said yes keep them. On the second one it displayed that error.

I can’t be 100% sure but I believe the system is fully operational and upgraded properly. Thankfully for my sake, this was a test VM specifically created to try out the upgrade from 14.04 => 14.10.

Andrew

> On Jun 23, 2015, at 7:06 AM, Robie Basak <email address hidden> wrote:
>
> Thank you for your report.
>
> What is /repo/config/etc/php.ini please? Is it something you have
> created and symlinked from /etc/php? Do you have multiple symlinks
> pointing to the same location?
>
> Once you've replied, please change the bug status back to New.
>
> ** Changed in: php5 (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1467552
>
> Title:
> package libapache2-mod-php5 5.5.12+dfsg-2ubuntu4.4 failed to
> install/upgrade: subprocess installed post-installation script
> returned error exit status 4
>
> Status in php5 package in Ubuntu:
> Incomplete
>
> Bug description:
>
> OUTPUT at command prompt just before error. It was working on php5 and I just told it to keep my php.ini file. After saying keep my php.ini, the below was outputted.
>
> ucfr: Attempt from package libapache2-mod-php5 to take /repo/config/etc/php.ini away from package php5-cli
> ucfr: Aborting.
> dpkg: error processing package libapache2-mod-php5 (--configure):
> subprocess installed post-installation script returned error exit status 4
> Setting up ubuntu-standard (1.327) ...
> dpkg: dependency problems prevent configuration of php5:
> php5 depends on libapache2-mod-php5 (>= 5.5.12+dfsg-2ubuntu4.4~) | libapache2-mod-php5filter (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-cgi (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-fpm (>= 5.5.12+dfsg-2ubuntu4.4~); however:
> Package libapache2-mod-php5 is not configured yet.
> Package libapache2-mod-php5filter is not installed.
> Package php5-cgi is not installed.
> Package php5-fpm is not installed.
>
> dpkg: error processing package php5 (--configure):
> dependency problems - leaving unconfigured
> Setting up plymouth (0.9.0-0ubuntu7) ...
> update-initramfs: deferring update (trigger activated)
> No apport report written because the error message indicates its a followup error from a previous failure.
> Setting up upstart (1.13.2-0ubuntu2) ...
> Setting up friendly-recovery (0.2.26) ...
> Generating grub configuration file ...
> Found linux image...

Read more...

Revision history for this message
Andrew Chernow (3-andrew-s) wrote :
Download full text (4.3 KiB)

BTW, I can’t login. I use a password manager so I know the password and username are correct. After clicking login I get a page that says “Bad Request”. That seems like an error in the backend rather than an authentication error. Because of this, I can’t change the status of the report.

Andrew chernow

> On Jun 23, 2015, at 7:06 AM, Robie Basak <email address hidden> wrote:
>
> Thank you for your report.
>
> What is /repo/config/etc/php.ini please? Is it something you have
> created and symlinked from /etc/php? Do you have multiple symlinks
> pointing to the same location?
>
> Once you've replied, please change the bug status back to New.
>
> ** Changed in: php5 (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1467552
>
> Title:
> package libapache2-mod-php5 5.5.12+dfsg-2ubuntu4.4 failed to
> install/upgrade: subprocess installed post-installation script
> returned error exit status 4
>
> Status in php5 package in Ubuntu:
> Incomplete
>
> Bug description:
>
> OUTPUT at command prompt just before error. It was working on php5 and I just told it to keep my php.ini file. After saying keep my php.ini, the below was outputted.
>
> ucfr: Attempt from package libapache2-mod-php5 to take /repo/config/etc/php.ini away from package php5-cli
> ucfr: Aborting.
> dpkg: error processing package libapache2-mod-php5 (--configure):
> subprocess installed post-installation script returned error exit status 4
> Setting up ubuntu-standard (1.327) ...
> dpkg: dependency problems prevent configuration of php5:
> php5 depends on libapache2-mod-php5 (>= 5.5.12+dfsg-2ubuntu4.4~) | libapache2-mod-php5filter (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-cgi (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-fpm (>= 5.5.12+dfsg-2ubuntu4.4~); however:
> Package libapache2-mod-php5 is not configured yet.
> Package libapache2-mod-php5filter is not installed.
> Package php5-cgi is not installed.
> Package php5-fpm is not installed.
>
> dpkg: error processing package php5 (--configure):
> dependency problems - leaving unconfigured
> Setting up plymouth (0.9.0-0ubuntu7) ...
> update-initramfs: deferring update (trigger activated)
> No apport report written because the error message indicates its a followup error from a previous failure.
> Setting up upstart (1.13.2-0ubuntu2) ...
> Setting up friendly-recovery (0.2.26) ...
> Generating grub configuration file ...
> Found linux image: /boot/vmlinuz-3.16.0-41-generic
> Found initrd image: /boot/initrd.img-3.16.0-41-generic
> Found linux image: /boot/vmlinuz-3.13.0-43-generic
> Found initrd image: /boot/initrd.img-3.13.0-43-generic
> Found linux image: /boot/vmlinuz-3.13.0-24-generic
> Found initrd image: /boot/initrd.img-3.13.0-24-generic
> Found memtest86+ image: /memtest86+.elf
> Found memtest86+ image: /memtest86+.bin
> done
> Setting up ubuntu-minimal (1.327) ...
> Setting up plymouth-theme-ubuntu-text (0.9.0-0ubuntu7) ...
> update-initramfs: deferring update (t...

Read more...

Revision history for this message
Andrew Chernow (3-andrew-s) wrote :
Download full text (4.4 KiB)

One more thing that I think might be important. /repo was a symlink itself to a mounted VMWare Fusion OS X host shared folder.

/repo -> /mnt/hgfs/andrew/projects/PROJNAME

and I am now wondering if that shared folder disconnected during the upgrade, thus the php.ini links were severed. I apologize for this oversight. I believe the shared folder feature is implemented as a kernel module.

Andrew

> On Jun 23, 2015, at 7:06 AM, Robie Basak <email address hidden> wrote:
>
> Thank you for your report.
>
> What is /repo/config/etc/php.ini please? Is it something you have
> created and symlinked from /etc/php? Do you have multiple symlinks
> pointing to the same location?
>
> Once you've replied, please change the bug status back to New.
>
> ** Changed in: php5 (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1467552
>
> Title:
> package libapache2-mod-php5 5.5.12+dfsg-2ubuntu4.4 failed to
> install/upgrade: subprocess installed post-installation script
> returned error exit status 4
>
> Status in php5 package in Ubuntu:
> Incomplete
>
> Bug description:
>
> OUTPUT at command prompt just before error. It was working on php5 and I just told it to keep my php.ini file. After saying keep my php.ini, the below was outputted.
>
> ucfr: Attempt from package libapache2-mod-php5 to take /repo/config/etc/php.ini away from package php5-cli
> ucfr: Aborting.
> dpkg: error processing package libapache2-mod-php5 (--configure):
> subprocess installed post-installation script returned error exit status 4
> Setting up ubuntu-standard (1.327) ...
> dpkg: dependency problems prevent configuration of php5:
> php5 depends on libapache2-mod-php5 (>= 5.5.12+dfsg-2ubuntu4.4~) | libapache2-mod-php5filter (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-cgi (>= 5.5.12+dfsg-2ubuntu4.4~) | php5-fpm (>= 5.5.12+dfsg-2ubuntu4.4~); however:
> Package libapache2-mod-php5 is not configured yet.
> Package libapache2-mod-php5filter is not installed.
> Package php5-cgi is not installed.
> Package php5-fpm is not installed.
>
> dpkg: error processing package php5 (--configure):
> dependency problems - leaving unconfigured
> Setting up plymouth (0.9.0-0ubuntu7) ...
> update-initramfs: deferring update (trigger activated)
> No apport report written because the error message indicates its a followup error from a previous failure.
> Setting up upstart (1.13.2-0ubuntu2) ...
> Setting up friendly-recovery (0.2.26) ...
> Generating grub configuration file ...
> Found linux image: /boot/vmlinuz-3.16.0-41-generic
> Found initrd image: /boot/initrd.img-3.16.0-41-generic
> Found linux image: /boot/vmlinuz-3.13.0-43-generic
> Found initrd image: /boot/initrd.img-3.13.0-43-generic
> Found linux image: /boot/vmlinuz-3.13.0-24-generic
> Found initrd image: /boot/initrd.img-3.13.0-24-generic
> Found memtest86+ image: /memtest86+.elf
> Found memtest86+ image: /memtest86+.bin
> done
> Setting up ubuntu-minimal (1.327) ...
> Se...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for php5 (Ubuntu) because there has been no activity for 60 days.]

Changed in php5 (Ubuntu):
status: Incomplete → Expired
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.