package apache2-mpm-prefork (not installed) failed to install/upgrade: trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.18-2ubuntu3

Bug #1594943 reported by Surya Teja on 2016-06-21

This bug report will be marked for expiration in 2 days if no further activity occurs. (find out why)

12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Undecided
Unassigned

Bug Description

I am not sure about it. When I installed php5 it showed following errors at the end
 /var/cache/apt/archives/apache2.2-bin_2.2.14-5ubuntu8.15_amd64.deb
 /var/cache/apt/archives/apache2.2-common_2.2.14-5ubuntu8.15_amd64.deb
 /var/cache/apt/archives/apache2-mpm-prefork_2.2.14-5ubuntu8.15_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: apache2-mpm-prefork (not installed)
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Wed Jun 22 00:38:23 2016
DuplicateSignature:
 Unpacking apache2.2-bin (2.2.14-5ubuntu8.15) ...
 dpkg: error processing archive /var/cache/apt/archives/apache2.2-bin_2.2.14-5ubuntu8.15_amd64.deb (--unpack):
  trying to overwrite '/usr/sbin/httxt2dbm', which is also in package apache2-utils 2.4.18-2ubuntu3
ErrorMessage: trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.18-2ubuntu3
InstallationDate: Installed on 2016-06-21 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.10ubuntu1
SourcePackage: apache2
Title: package apache2-mpm-prefork (not installed) failed to install/upgrade: trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.18-2ubuntu3
UpgradeStatus: No upgrade log present (probably fresh install)

Surya Teja (jsuryateja005) wrote :
tags: removed: need-duplicate-check
Joshua Powers (powersj) wrote :

From log:

dpkg: error processing archive /var/cache/apt/archives/apache2.2-bin_2.2.14-5ubuntu8.15_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/httxt2dbm', which is also in package apache2-utils 2.4.18-2ubuntu3

dpkg: error processing archive /var/cache/apt/archives/apache2.2-common_2.2.14-5ubuntu8.15_amd64.deb (--unpack):
 trying to overwrite '/usr/share/apache2/error/HTTP_UNAUTHORIZED.html.var', which is also in package apache2-data 2.4.18-2ubuntu3

dpkg: error processing archive /var/cache/apt/archives/apache2-mpm-prefork_2.2.14-5ubuntu8.15_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.18-2ubuntu3

Joshua Powers (powersj) wrote :

Thank you for taking the time to report this.

Per the error message above, the package you are trying to install is trying to overwrite a file that already exists on the system. In your case you have apache2 installed and are trying to install apache2.2.

Becuase this is a local issue and not a bug in Ubuntu I am marking this bug as Incomplete. If you believe this to not be the case then we would appreciate if you could provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

You can find pointers to get help for this sort of problem on the community forums: http://www.ubuntu.com/support/community

Changed in apache2 (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers