There is a related fix to improve that since vivid (and debian) already in
2.4.10-7 and anything later.
It was not considered critical enough to be valid for an SRU.
That is around the code that checks if - in a new installation - there
is no old content in /var/www[/html] and then it has to palce a new
default index.html there.
In your case I see in the log that it is a new install of apache2 (after a lot
of installs and removes/purges before).
It gets to the code and decides that there is nothing yet in /var/www so it has
to place the new index.html
Then it fails there with:
cp: cannot stat ‘/usr/share/apache2/default-site/index.html’: No such file or
directory
This file actually belongs to the apache2-data package - so it seems that
dependency was not installed for you while you installed apache2.
The apache2 package clearly has a Dependency on it
Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.7-1ubuntu4),
apache2-data (= 2.4.7-1ubuntu4)
But in your DPKG Log there is never a mentioning of apache2-data which is weird.
It is not even a recommend, but a clear depends.
Still it is confusing why it wasn't brought in via the dependency.
If the error is reproducible and on your next "apt-get install apache2" you get
no apache2-data installed by dependency please share:
- apt-cache show apache2
- full output of the apt-get install apache2
- dpkg -l '*apache*'
- apt-cache policy apache2
- apt-cache policy apache2-data
For a workaround I'd try:
- take a look when installing apache2 if apache2-data gets installed as
dependency.
- if not consider installing it manually before apache2
That should get you going.
** Changed in: apache2 (Ubuntu)
Importance: Undecided => Medium
** Changed in: apache2 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1537480
Title:
package apache2 2.4.7-1ubuntu4.8 failed to install/upgrade: subprocess
installed post-installation script returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1537480/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs