package apache2 (not installed) failed to install/upgrade: error setting ownership of '/var/www/html.dpkg-new': Operation not permitted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Error Installing
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: apache2 (not installed)
ProcVersionSign
Uname: Linux 4.13.0-26-generic x86_64
Apache2ConfdDir
Apache2Modules: Error: [Errno 2] No such file or directory: '/usr/sbin/
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Fri Jan 12 11:46:36 2018
DuplicateSignature:
package:
Unpacking apache2 (2.4.18-2ubuntu3.5) ...
dpkg: error processing archive /var/cache/
error setting ownership of '/var/www/
ErrorMessage: error setting ownership of '/var/www/
InstallationDate: Installed on 2018-01-11 (0 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
RelatedPackageV
dpkg 1.18.4ubuntu1.3
apt 1.2.24
SourcePackage: apache2
Title: package apache2 (not installed) failed to install/upgrade: error setting ownership of '/var/www/
UpgradeStatus: No upgrade log present (probably fresh install)
error.log: Error: [Errno 2] No such file or directory: '/var/log/
tags: | removed: need-duplicate-check |
Thanks for filing this bug in Ubuntu, and sorry for taking to long to get to it.
This is the error shown in the logs: apt/archives/ apache2_ 2.4.18- 2ubuntu3. 5_amd64. deb (--unpack): html.dpkg- new': Operation not permitted
Unpacking apache2 (2.4.18-2ubuntu3.5) ...
dpkg: error processing archive /var/cache/
error setting ownership of '/var/www/
I notice that you have /var/www mounted separatedly:
/dev/sda12 73225728 32 73225696 1% /var/www
Could you please share the mount options for /var/www? And also list the contents with "ls -lah /var/www /var/www/html" please.
Thanks!