Comment 3 for bug 1779686

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

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 reboot
Setting up apache2-utils (2.4.29-1ubuntu4.2) ...
Setting up apache2-data (2.4.29-1ubuntu4.2) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up apache2 (2.4.29-1ubuntu4.2) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service
→ /lib/systemd/system/apache2.service.
Created symlink
/etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service →
/lib/systemd/system/apache-htcacheclean.service.
insserv: warning: current start runlevel(s) (empty) of script
`apache-htcacheclean' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
`apache-htcacheclean' overrides LSB defaults (0 1 6).
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for ufw (0.35-5) ...

dsprouse@pavlovsFrog:~$ ls -la /etc/apache2/conf-available/apache2-doc.conf
/etc/apache2/conf-
ls: cannot access '/etc/apache2/conf-available/apache2-doc.conf': No such
file or directory
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:~$

On Tue, Jul 3, 2018 at 1:08 PM, Andreas Hasenack <email address hidden>
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
>
> --
> 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/
> 1779686/+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.
.