package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1

Bug #1779686 reported by Daniel A Sprouse
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

your call, your update scripts...

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: apache2 2.4.29-1ubuntu4.2
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
Uname: Linux 4.15.0-23-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules:

ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Mon Jul 2 08:48:56 2018
ErrorMessage: installed apache2 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-03-15 (108 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.1
SourcePackage: apache2
Title: package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
error.log:
 [Mon Jul 02 00:08:38.922951 2018] [mpm_prefork:notice] [pid 1141] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
 [Mon Jul 02 00:08:38.923655 2018] [core:notice] [pid 1141] AH00094: Command line: '/usr/sbin/apache2'
 [Mon Jul 02 08:47:48.222968 2018] [mpm_prefork:notice] [pid 1141] AH00169: caught SIGTERM, shutting down

Revision history for this message
Daniel A Sprouse (danielallensprouse) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

This is the error reported in the logs:
info: Executing deferred 'a2enconf apache2-doc' for package apache2-doc
ERROR: Conf apache2-doc does not exist!
dpkg: error processing package apache2 (--configure):
 installed apache2 package post-installation script subprocess returned error exit status 1

Could you please check if you have these files:

ls -la /etc/apache2/conf-available/apache2-doc.conf /etc/apache2/conf-enabled/apache2-doc.conf

This is what I get on a system where I installed apache2-doc:
root@bionic-apache2doc:~# ls -la /etc/apache2/conf-available/apache2-doc.conf /etc/apache2/conf-enabled/apache2-doc.conf
-rw-r--r-- 1 root root 221 Oct 23 2017 /etc/apache2/conf-available/apache2-doc.conf
lrwxrwxrwx 1 root root 34 Jul 3 18:07 /etc/apache2/conf-enabled/apache2-doc.conf -> ../conf-available/apache2-doc.conf

The file installed in conf-available is part of the apache2-doc package, and it is enabled via a command like this in the post-installation step:

a2enconf apache2-doc

I just did a fresh install of 2.4.29-1ubuntu4.1 and upgraded it to 2.4.29-1ubuntu4.2, and it went just fine, so let's see if we can find what's different on your system.

Changed in apache2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel A Sprouse (danielallensprouse) wrote : Re: [Bug 1779686] Re: package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
Download full text (8.6 KiB)

I even reinstalled apache.

dsprouse@pavlovsFrog:~$ enabled/apache2-doc.conf^C
dsprouse@pavlovsFrog:~$ a2enconf apache2-doc

Command 'a2enconf' not found, but can be installed with:

sudo apt install apache2

dsprouse@pavlovsFrog:~$ sudo apt install apache2
[sudo] password for dsprouse:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  flashplugin-installer gimp-gmic libass5 libaudcore3 libaudgui3 libaudtag2
libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavfilter-ffmpeg5
  libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbinio1v5
libbluray1 libcapnp-0.5.3 libchromaprint0 libguess1 libhardware2
  libhybris libhybris-common1 libllvm5.0 libmad0 libmate-desktop-2-17
libmedia1 libmimic0 libopencv-calib3d2.4v5 libopencv-contrib2.4v5
  libopencv-core2.4v5 libopencv-features2d2.4v5 libopencv-flann2.4v5
libopencv-highgui2.4v5 libopencv-imgproc2.4v5 libopencv-legacy2.4v5
  libopencv-ml2.4v5 libopencv-objdetect2.4v5 libopencv-video2.4v5
libopenjpeg5 libpodofo0.9.3 libpostproc-ffmpeg53 libqt5clucene5
  libschroedinger-1.0-0 libsodium18 libsrtp0 libswresample-ffmpeg1
libswscale-ffmpeg3 libtbb2 libtiff-tools libva1 libvte-common libvte9
  libwebpdemux1 libwildmidi1 libx264-148 libx265-79
linux-signed-generic-hwe-16.04 oxideqt-codecs-extra qml-module-qtwebkit
snap-confine
  snapd-login-service xserver-xorg-input-evdev-hwe-16.04
xserver-xorg-input-synaptics-hwe-16.04 xserver-xorg-legacy-hwe-16.04
  xserver-xorg-video-amdgpu-hwe-16.04 xserver-xorg-video-qxl-hwe-16.04
xserver-xorg-video-vesa-hwe-16.04
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  apache2-data apache2-utils
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 339 kB of archives.
After this operation, 1,755 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
apache2-utils amd64 2.4.29-1ubuntu4.2 [83.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
apache2-data all 2.4.29-1ubuntu4.2 [160 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2
amd64 2.4.29-1ubuntu4.2 [95.1 kB]
Fetched 339 kB in 1s (557 kB/s)
Selecting previously unselected package apache2-utils.
(Reading database ... 200879 files and directories currently installed.)
Preparing to unpack .../apache2-utils_2.4.29-1ubuntu4.2_amd64.deb ...
Unpacking apache2-utils (2.4.29-1ubuntu4.2) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.29-1ubuntu4.2_all.deb ...
Unpacking apache2-data (2.4.29-1ubuntu4.2) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.29-1ubuntu4.2_amd64.deb ...
Unpacking apache2 (2.4.29-1ubuntu4.2) ...
Processing triggers for ufw (0.35-5) ...
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next ...

Read more...

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> ls: cannot access '/etc/apache2/conf-': No such file or directory
> dsprouse@pavlovsFrog:~$ a2enconf apache2-doc
> ERROR: Conf apache2-doc does not exist!
> dsprouse@pavlovsFrog:~$

That's ok because you didn't install apache2-doc, it was just a suggested package when apache2 was installed:

> Suggested packages:
> apache2-doc apache2-suexec-pristine | apache2-suexec-custom

What happens now when you install apache2-doc?

sudo apt install apache2-doc

Revision history for this message
Daniel A Sprouse (danielallensprouse) wrote :
Download full text (12.4 KiB)

dsprouse@pavlovsFrog:~$ sudo apt install apache2-doc
[sudo] password for dsprouse:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  flashplugin-installer gimp-gmic libass5 libaudcore3 libaudgui3 libaudtag2
libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavfilter-ffmpeg5
  libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbinio1v5
libbluray1 libcapnp-0.5.3 libchromaprint0 libguess1 libhardware2 libhybris
  libhybris-common1 libllvm5.0 libmad0 libmate-desktop-2-17 libmedia1
libmimic0 libopencv-calib3d2.4v5 libopencv-contrib2.4v5 libopencv-core2.4v5
  libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4v5
libopencv-imgproc2.4v5 libopencv-legacy2.4v5 libopencv-ml2.4v5
  libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenjpeg5 libpodofo0.9.3
libpostproc-ffmpeg53 libqt5clucene5 libschroedinger-1.0-0 libsodium18
  libsrtp0 libswresample-ffmpeg1 libswscale-ffmpeg3 libtbb2 libtiff-tools
libva1 libvte-common libvte9 libwebpdemux1 libwildmidi1 libx264-148
libx265-79
  linux-headers-4.15.0-22 linux-headers-4.15.0-22-generic
linux-image-4.15.0-22-generic linux-modules-4.15.0-22-generic
  linux-modules-extra-4.15.0-22-generic linux-signed-generic-hwe-16.04
oxideqt-codecs-extra qml-module-qtwebkit snap-confine snapd-login-service
  xserver-xorg-input-evdev-hwe-16.04 xserver-xorg-input-synaptics-hwe-16.04
xserver-xorg-legacy-hwe-16.04 xserver-xorg-video-amdgpu-hwe-16.04
  xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  apache2-doc
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 3,697 kB of archives.
After this operation, 24.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
apache2-doc all 2.4.29-1ubuntu4.2 [3,697 kB]
Fetched 3,697 kB in 1s (3,689 kB/s)
Selecting previously unselected package apache2-doc.
(Reading database ... 237029 files and directories currently installed.)
Preparing to unpack .../apache2-doc_2.4.29-1ubuntu4.2_all.deb ...
Unpacking apache2-doc (2.4.29-1ubuntu4.2) ...
Setting up apache2-doc (2.4.29-1ubuntu4.2) ...
apache2_invoke: Enable configuration apache2-doc
Processing triggers for doc-base (0.10.8) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
dsprouse@pavlovsFrog:~$ a2enconf apache2-doc
Conf apache2-doc already enabled
dsprouse@pavlovsFrog:~$ ls -la /etc/apache2/conf-available/apache2-doc.conf
/etc/apache2/conf-
ls: cannot access '/etc/apache2/conf-': No such file or directory
-rw-r--r-- 1 root root 221 Jun 7 16:10
/etc/apache2/conf-available/apache2-doc.conf
dsprouse@pavlovsFrog:~$ sudo apt update && sudo apt -f install
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7
kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2
kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6
kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-u...

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then 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.

Revision history for this message
Robie Basak (racb) wrote :

Ah, it's already Incomplete. Still, if you think it's a bug in Ubuntu, then please explain how to reproduce, etc. If it's a misconfiguration on your system, then you'll get better help from our community support options.

Revision history for this message
Daniel A Sprouse (danielallensprouse) wrote :

so the fix that worked on my home pc, hasn't been so lucky at work. I have
attached the output I am getting. If you want me to remove and reinstall
apache and jenkins, let me know.

On Thu, Jul 5, 2018 at 9:00 AM, Robie Basak <email address hidden>
wrote:

> Ah, it's already Incomplete. Still, if you think it's a bug in Ubuntu,
> then please explain how to reproduce, etc. If it's a misconfiguration on
> your system, then you'll get better help from our community support
> options.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1779686
>
> Title:
> package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed
> apache2 package post-installation script subprocess returned error
> exit status 1
>
> Status in apache2 package in Ubuntu:
> Incomplete
>
> Bug description:
> your call, your update scripts...
>
> ProblemType: Package
> DistroRelease: Ubuntu 18.04
> Package: apache2 2.4.29-1ubuntu4.2
> ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
> Uname: Linux 4.15.0-23-generic x86_64
> Apache2ConfdDirListing: False
> Apache2Modules:
>
> ApportVersion: 2.20.9-0ubuntu7.2
> Architecture: amd64
> Date: Mon Jul 2 08:48:56 2018
> ErrorMessage: installed apache2 package post-installation script
> subprocess returned error exit status 1
> InstallationDate: Installed on 2018-03-15 (108 days ago)
> InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64
> (20180228)
> Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal,
> 3.6.5-3
> PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal,
> 2.7.15~rc1-1
> RelatedPackageVersions:
> dpkg 1.19.0.5ubuntu2
> apt 1.6.1
> SourcePackage: apache2
> Title: package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade:
> installed apache2 package post-installation script subprocess returned
> error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
> error.log:
> [Mon Jul 02 00:08:38.922951 2018] [mpm_prefork:notice] [pid 1141]
> AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
> [Mon Jul 02 00:08:38.923655 2018] [core:notice] [pid 1141] AH00094:
> Command line: '/usr/sbin/apache2'
> [Mon Jul 02 08:47:48.222968 2018] [mpm_prefork:notice] [pid 1141]
> AH00169: caught SIGTERM, shutting down
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/17796
> 86/+subscriptions
>

--
-- -- Sincerely Yours,
. Daniel Sprouse

Daniel Allen Sprouse
Unix/Linux Administrator
<email address hidden>
google voice: 512-815-2048

ne tectis a demergu, pater, formabis foramine in landa.
.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Jenkins is a different issue. It seems to be about the java version you have installed:

Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: Found an incorrect Java version
Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: Java version found:
Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: openjdk version "10.0.1" 2018-04-17
Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: Aborting

I don't think this jenkins package comes from Ubuntu either. Last time we shipped jenkins was in precise in 2012 it seems.

I think it caused the apache2-doc installation to be incomplete, so yes, I'd suggest to remove or fix the jenkins package, and then try "sudo apt -f install" one more time, which should take care of apache2-doc.

Revision history for this message
Daniel A Sprouse (danielallensprouse) wrote :
Download full text (3.4 KiB)

thanks, I'll give it a go on Monday.

On Fri, Jul 6, 2018 at 11:33 AM, Andreas Hasenack <email address hidden>
wrote:

> Jenkins is a different issue. It seems to be about the java version you
> have installed:
>
> Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: Found an
> incorrect Java version
> Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: Java
> version found:
> Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: openjdk
> version "10.0.1" 2018-04-17
> Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: OpenJDK
> Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
> Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: OpenJDK
> 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
> Jul 06 10:20:08 PC3336.win2k.tsl.state.texas.us jenkins[30094]: Aborting
>
> I don't think this jenkins package comes from Ubuntu either. Last time
> we shipped jenkins was in precise in 2012 it seems.
>
> I think it caused the apache2-doc installation to be incomplete, so yes,
> I'd suggest to remove or fix the jenkins package, and then try "sudo apt
> -f install" one more time, which should take care of apache2-doc.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1779686
>
> Title:
> package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed
> apache2 package post-installation script subprocess returned error
> exit status 1
>
> Status in apache2 package in Ubuntu:
> Incomplete
>
> Bug description:
> your call, your update scripts...
>
> ProblemType: Package
> DistroRelease: Ubuntu 18.04
> Package: apache2 2.4.29-1ubuntu4.2
> ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
> Uname: Linux 4.15.0-23-generic x86_64
> Apache2ConfdDirListing: False
> Apache2Modules:
>
> ApportVersion: 2.20.9-0ubuntu7.2
> Architecture: amd64
> Date: Mon Jul 2 08:48:56 2018
> ErrorMessage: installed apache2 package post-installation script
> subprocess returned error exit status 1
> InstallationDate: Installed on 2018-03-15 (108 days ago)
> InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64
> (20180228)
> Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal,
> 3.6.5-3
> PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal,
> 2.7.15~rc1-1
> RelatedPackageVersions:
> dpkg 1.19.0.5ubuntu2
> apt 1.6.1
> SourcePackage: apache2
> Title: package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade:
> installed apache2 package post-installation script subprocess returned
> error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
> error.log:
> [Mon Jul 02 00:08:38.922951 2018] [mpm_prefork:notice] [pid 1141]
> AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
> [Mon Jul 02 00:08:38.923655 2018] [core:notice] [pid 1141] AH00094:
> Command line: '/usr/sbin/apache2'
> [Mon Jul 02 08:47:48.222968 2018] [mpm_prefork:notice] [pid 1141]
> AH00169: caught SIGTERM, shutting down
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubun...

Read more...

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.