Errors were encountered while processing: libapache2-mod-php7.0

Bug #1586401 reported by gcclinux
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php7.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Trying to run upgrade of all packages but a single package keeps failing.

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libapache2-mod-php7.0 (7.0.4-7ubuntu2.1) ...
ucfr: Attempt from package libapache2-mod-php7.0 to take /etc/php/7.0/cli/php.ini away from package php7.0-cli
ucfr: Aborting.
dpkg: error processing package libapache2-mod-php7.0 (--configure):
 subprocess installed post-installation script returned error exit status 4
Errors were encountered while processing:
 libapache2-mod-php7.0
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please advise

Revision history for this message
Paul Gevers (paul-climbing) wrote :

I don't see anything related to cacti in the bug report. Reassigning to the only package I see.

affects: cacti (Ubuntu) → php7.0 (Ubuntu)
Revision history for this message
gcclinux (ricardo-gcclinux) wrote : Re: [Bug 1586401] Re: Errors were encountered while processing: libapache2-mod-php7.0

Hello,
I though I opened a new bug for a different problem rather than overlapping the cacti issue.
I am sorry for the confusion.

Sent from my Samsung Galaxy S5 - powered by Three

-------- Original message --------
From: Paul Gevers <email address hidden>
Date: 27/05/2016 19:04 (GMT+00:00)
To: <email address hidden>
Subject: [Bug 1586401] Re: Errors were encountered while processing:
  libapache2-mod-php7.0

I don't see anything related to cacti in the bug report. Reassigning to
the only package I see.

** Package changed: cacti (Ubuntu) => php7.0 (Ubuntu)

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1586401

Title:
  Errors were encountered while processing:  libapache2-mod-php7.0

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

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

Thank you for filing this bug report!

I'm not sure how this came about. I just did a quick apt-file check on the package versions in question (7.0.4-7ubuntu2 and 7.0.4-7ubuntu2.1) and don't see any reason for the security update to think it owns /etc/php/7.0/cli/php.ini.

Also, I spun up a lxc container of 16.04 and forcibly installed 7.0.4-7ubuntu2. Then I upgraded off security to the latest and had no errors.

Did you happen to change the default configuration in some way?

Changed in php7.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
gcclinux (ricardo-gcclinux) wrote :

Hi,

That is correct I have updated the /etc/php/7.0/cli/php.ini with my own required settings, but this should not make any difference as the package should simply ignore this file as it is can can be customized by users.

Many Thanks

Revision history for this message
gcclinux (ricardo-gcclinux) wrote :

problem fixed, I removed the symbolic link between two packages and copied the file over

/etc/php/7.0/apache2/php.ini -> /etc/php/7.0/cli/php.ini

Regards,

Changed in php7.0 (Ubuntu):
status: Incomplete → Invalid
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.