Upgrading to Ubuntu 16.10: package apache2 2.4.18-2ubuntu3.1 failed to install/upgrade: package apache2 is already installed and configured
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
ProcVersionSign
Uname: Linux 4.8.0-26-generic x86_64
Apache2ConfdDir
ApportVersion: 2.20.3-0ubuntu8
AptdaemonVersion: 1.1.1+bzr982-
Architecture: amd64
CrashReports:
640:1000:
640:0:
640:1000:
Date: Tue Oct 25 13:01:02 2016
DuplicateSignature:
package:
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)
RelatedPackageV
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)