package apache2 (not installed) failed to install/upgrade: error setting ownership of '/var/www/html.dpkg-new': Operation not permitted

Bug #1742871 reported by Salman A. Kamkoriwala
10
This bug affects 1 person
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)
ProcVersionSignature: Ubuntu 4.13.0-26.29~16.04.2-generic 4.13.13
Uname: Linux 4.13.0-26-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules: Error: [Errno 2] No such file or directory: '/usr/sbin/apachectl'
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Fri Jan 12 11:46:36 2018
DuplicateSignature:
 package:apache2:(not installed)
 Unpacking apache2 (2.4.18-2ubuntu3.5) ...
 dpkg: error processing archive /var/cache/apt/archives/apache2_2.4.18-2ubuntu3.5_amd64.deb (--unpack):
  error setting ownership of '/var/www/html.dpkg-new': Operation not permitted
ErrorMessage: error setting ownership of '/var/www/html.dpkg-new': Operation not permitted
InstallationDate: Installed on 2018-01-11 (0 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
RelatedPackageVersions:
 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/html.dpkg-new': Operation not permitted
UpgradeStatus: No upgrade log present (probably fresh install)
error.log: Error: [Errno 2] No such file or directory: '/var/log/apache2/error.log'

Revision history for this message
Salman A. Kamkoriwala (salman.kamkoriwala) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

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:
Unpacking apache2 (2.4.18-2ubuntu3.5) ...
dpkg: error processing archive /var/cache/apt/archives/apache2_2.4.18-2ubuntu3.5_amd64.deb (--unpack):
 error setting ownership of '/var/www/html.dpkg-new': Operation not permitted

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!

Changed in apache2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in apache2 (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.