Upgrading to Ubuntu 16.10: package apache2 2.4.18-2ubuntu3.1 failed to install/upgrade: package apache2 is already installed and configured

Bug #1636589 reported by Devon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
New
Undecided
Unassigned

Bug Description

Upgrade from Ubuntu 16.04 to 16.10 gave this error. Somewhere along installation I got the error message that /var/www/html was not accessible. I have modified that folder contents for a webpage and for some reason the owner was root, not www-data, so maybe that did it. But as far as I know /var/www is a generic folder people put their website data in. Not sure why apache2 got so hung-up over it and spat out errors 3 times with the final one of:

"Errors were encountered while processing:
 apache2
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code(1), E:Sub-process /usr/bin/dpkg returned an error code(1)"
Then a message popped up saying upgade failed, and will try running dpkg --configure -a

Then the upgrade quit without completing.

Does anyone know what the final operaiions are to finish installation?
is it just apt-get clean then reboot?
I tried dpkg --configure -a and didn't get anything.

ProblemType: Package
DistroRelease: Ubuntu 16.10
Package: apache2 2.4.18-2ubuntu3.1
ProcVersionSignature: Ubuntu 4.8.0-26.28-generic 4.8.0
Uname: Linux 4.8.0-26-generic x86_64
Apache2ConfdDirListing: False
ApportVersion: 2.20.3-0ubuntu8
AptdaemonVersion: 1.1.1+bzr982-0ubuntu16
Architecture: amd64
CrashReports:
 640:1000:116:17782989:2016-10-25 10:01:22.523942708 -0400:2016-10-25 10:01:24.527967529 -0400:/var/crash/_usr_share_apport_apport-gtk.1000.crash
 640:0:116:756729:2016-10-25 13:01:01.358550548 -0400:2016-10-25 13:01:02.358550548 -0400:/var/crash/apache2.0.crash
 640:1000:116:1311798:2016-10-25 10:02:11.384215354 -0400:2016-10-25 10:02:12.384215354 -0400:/var/crash/_usr_lib_update-notifier_system-crash-notification.1000.crash
Date: Tue Oct 25 13:01:02 2016
DuplicateSignature:
 package:apache2:2.4.18-2ubuntu3.1
 Setting up apache2-data (2.4.18-2ubuntu4) ...
 dpkg: error processing package apache2 (--configure):
  package apache2 is already installed and configured
ErrorMessage: package apache2 is already installed and configured
InstallationDate: Installed on 2016-09-20 (34 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageVersions:
 dpkg 1.18.10ubuntu1
 apt 1.3.1
SourcePackage: dpkg
Title: package apache2 2.4.18-2ubuntu3.1 failed to install/upgrade: package apache2 is already installed and configured
UpgradeStatus: Upgraded to yakkety on 2016-10-25 (0 days ago)

Revision history for this message
Devon (devonfyson) wrote :
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.