package apache2 2.4.58-1ubuntu8.10 failed to install/upgrade: The post-installation script from the apache2 package returned error code 1.

Bug #2138980 reported by shagin

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

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

Bug Description

Could not install 'apache2'

The upgrade will continue but the 'apache2' package may not be in a working state. Please consider submitting a bug report about it.

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: apache2 2.4.58-1ubuntu8.10
ProcVersionSignature: Ubuntu 6.8.0-64.67-generic 6.8.12
Uname: Linux 6.8.0-64-generic x86_64
000-default.conf: Error: [Errno 40] Слишком много уровней символьных ссылок: '/etc/apache2/sites-enabled/000-default.conf'
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
 httpd (pid 1709) already running
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Jan 24 13:27:07 2026
ErrorMessage: подпроцесс из пакета apache2 установлен сценарий post-installation возвратил код ошибки 1
InstallationDate: Installed on 2025-11-02 (82 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu2.1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.22.6ubuntu6.5
 apt 2.8.3
SourcePackage: apache2
Title: package apache2 2.4.58-1ubuntu8.10 failed to install/upgrade: подпроцесс из пакета apache2 установлен сценарий post-installation возвратил код ошибки 1
UpgradeStatus: No upgrade log present (probably fresh install)
error.log:
 [Mon Jan 05 12:17:34.582482 2026] [mpm_prefork:notice] [pid 1619] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations
 [Mon Jan 05 12:17:34.582505 2026] [core:notice] [pid 1619] AH00094: Command line: '/usr/sbin/apache2'
 [Mon Jan 12 21:07:28.943461 2026] [mpm_prefork:notice] [pid 1619] AH00170: caught SIGWINCH, shutting down gracefully
 [Mon Jan 12 21:07:49.648437 2026] [mpm_prefork:notice] [pid 1709] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations
 [Mon Jan 12 21:07:49.648730 2026] [core:notice] [pid 1709] AH00094: Command line: '/usr/sbin/apache2'

Revision history for this message
shagin (shagin-azimovich) wrote :
Jonas Jelten (jj)
summary: - package apache2 2.4.58-1ubuntu8.10 failed to install/upgrade: подпроцесс
- из пакета apache2 установлен сценарий post-installation возвратил код
- ошибки 1
+ package apache2 2.4.58-1ubuntu8.10 failed to install/upgrade: The post-
+ installation script from the apache2 package returned error code 1.
Revision history for this message
Jonas Jelten (jj) wrote :

thanks for the report. from what i can see, one problem comes from /etc/apache2/sites-enabled/000-default.conf being a symlink to itself? (Error: [Errno 40] Слишком много уровней символьных ссылок: '/etc/apache2/sites-enabled/000-default.conf')

is this a symlink to itself? did you set this configuration up manually? (no problem if this was just a mistake, i want to make sure this is not a bug in our package automation)

the installation then crashes with this error:
info: Executing deferred 'a2enmod php8.3' for package libapache2-mod-php8.3
ERROR: Module php8.3 does not exist!

does /usr/lib/apache2/modules/libphp8.3.so exist on your system? If no, did you delete it? It should be provided by the package libapache2-mod-php8.3.

Changed in apache2 (Ubuntu):
status: New → Incomplete
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.