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

Bug #1793190 reported by Diego
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

.....ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 89, in add_info
    check_attachment_for_errors(report, attachment)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 208, in check_attachment_for_errors
    trim_dpkg_log(report)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in trim_dpkg_log
    report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
  File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in <listcomp>
    report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 19552: invalid continuation byte

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: apache2 2.4.29-1ubuntu4.3
ProcVersionSignature: Ubuntu 4.4.0-116.140-generic 4.4.98
Uname: Linux 4.4.0-116-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
ApportVersion: 2.20.9-0ubuntu7.3
Architecture: amd64
Date: Tue Sep 18 19:43:19 2018
ErrorMessage: installed apache2 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-09-12 (5 days ago)
InstallationMedia: Ubuntu-Server 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
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.3ubuntu0.1
SourcePackage: apache2
Title: package apache2 2.4.29-1ubuntu4.3 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2018-09-18 (0 days ago)
modified.conffile..etc.apache2.apache2.conf: [modified]
mtime.conffile..etc.apache2.apache2.conf: 2018-09-14T13:12:14.635310

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

Thanks for filing this bug in Ubuntu.

This is the error that was logged by dpkg:
ERROR: Module reqtimeout not properly enabled: /etc/apache2/mods-enabled/reqtimeout.load is a real file, not touching it^M
^[[1mdpkg:^[[0m errore nell'elaborare il pacchetto apache2 (--configure):^M
 installed apache2 package post-installation script subprocess returned error exit status 1^M

In the Ubuntu packaging layout, the mods-enabled directory should only contain symlinks to the ../mods-available directory. Which modules are enabled or not is controlled by the a2enmod/a2dismod pair of tools, which manage these symlinks.

It looks like in your case you have an actual file in mods-enabled instead of a symlink.

Could you please verify this:

ls -la /etc/apache2/mods-{available,enabled}/reqtimeout.load

If you get two files back, please compare them. If you made any changes to the one in the mods-enabled directory, please make these changes in the file from the mods-available directory instead, then remove the one from mods-enabled and use "sudo a2enmod reqtimeout" to properly enable it.

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.