enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #09705
[Bug 2056662] [NEW] package apache2 2.4.52-1ubuntu4.7 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1 - Crash on "do-release-upgrade" from Ubuntu 20.04 to Ubuntu 22.04
Public bug reported:
I am upgrading my Ubuntu 20.04 LEMP server, that DOES NOT have apache2
installed. Instead it uses Nginx Mainline from the official Nginx
Repository. After running the command "do-release-upgrade" on Ubuntu
20.04 Server, somehow the upgrade seemed to try to install the apache2
package, but the upgrade was broken.
Here is my server information:
Hardware: Raspberry Pi 4 (aarch64)
OS: Ubuntu 20.04 Server, currently upgrading to Ubuntu 22.04 Server
Software: Linux, Nginx Mainline, MariaDB 10.10.7, PHP7.4-fpm, Postfix, Dovecot
PREPARATION FOR UPGRADE:
sudo service --status-all
[ + ] amavis
[ - ] amavis-mc
[ - ] amavisd-snmp-subagent
[ - ] amplify-agent
[ + ] apparmor
[ + ] apport
[ + ] atd
[ + ] binfmt-support
[ + ] clamav-daemon
[ + ] clamav-freshclam
[ - ] console-setup.sh
[ + ] cron
[ - ] cryptdisks
[ - ] cryptdisks-early
[ + ] dbus
[ + ] dovecot
[ - ] dphys-swapfile
[ + ] fail2ban
[ - ] gdomap
[ - ] hwclock.sh
[ + ] irqbalance
[ - ] iscsid
[ - ] keyboard-setup.sh
[ + ] kmod
[ - ] lvm2
[ - ] lvm2-lvmpolld
[ + ] mariadb
[ + ] mono-xsp4
[ + ] multipath-tools
[ + ] mysql
[ + ] network-manager
[ - ] nginx
[ - ] nginx-debug
[ - ] open-iscsi
[ + ] opendkim
[ + ] opendmarc
[ + ] php7.4-fpm
[ - ] plymouth
[ - ] plymouth-log
[ + ] policyd-rate-limit
[ + ] postfix
[ + ] postgrey
[ - ] pppd-dns
[ + ] procps
[ + ] redis-server
[ - ] resolvconf
[ - ] rsync
[ + ] rsyslog
[ + ] spamass-milter
[ + ] spamassassin
[ + ] ssh
[ + ] tlp
[ + ] udev
[ + ] ufw
[ + ] unattended-upgrades
[ + ] unbound
[ - ] uuidd
[ - ] x11-common
DISABLE EVERYTHING and SET UP in one command:
-----------------------------------------------
sudo systemctl disable cron \
sudo systemctl disable amavis \
sudo systemctl disable amplify-agent \
sudo systemctl disable atd \
sudo systemctl disable clamav-daemon \
sudo systemctl disable clamav-freshclam \
sudo systemctl disable dovecot \
sudo systemctl disable fail2ban \
sudo systemctl disable irqbalance \
sudo systemctl disable kmod \
sudo systemctl disable mono-xsp4 \
sudo systemctl disable nginx \
sudo systemctl disable opendkim \
sudo systemctl disable opendmarc \
sudo systemctl disable php7.4-fpm \
sudo systemctl disable postfix \
sudo systemctl disable postgrey \
sudo systemctl disable redis-server \
sudo systemctl disable smbd \
sudo systemctl disable nmbd \
sudo systemctl disable spamass-milter \
sudo systemctl disable spamassassin \
sudo systemctl disable tlp \
sudo systemctl disable unbound \
sudo systemctl disable create-cacheram-folders.service \
sudo systemctl disable webmin.service \
sudo systemctl disable wg-quick@wg-client0.service \
sudo systemctl disable dphys-swapfile \
sudo systemctl disable netdata \
sudo systemctl disable policyd-rate-limit \
sudo systemctl restart sshd \
sudo service ssh restart \
sudo apt purge phpmyadmin mono-xsp4 nginx-agent \
sudo apt autoremove \
sudo apt-mark unhold nginx \
sudo apt install screen \
screen \
sudo apt update \
sudo apt dist-upgrade \
sudo apt install update-manager-core \
do-release-upgrade
------------------------------------------------------
Below is all of the rest of the information that I have on this error.
Files have not changed, Decompression not needed
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (836.5 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): S
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
......................................
*** The contents of your /etc/apache2/sites-enabled/ directory may help developers diagnose your bug more quickly. However, it may contain sensitive information. Do you want to include it in your bug report?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
The collected information is being sent to the bug tracking system.
This might take a few minutes.
99%
*** To continue, you must visit the following URL:
xxx.xxx.xxx.xxx.xxx.....
That is all I've got.
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: apache2 2.4.52-1ubuntu4.7
ProcVersionSignature: Ubuntu 5.4.0-1104.116-raspi 5.4.265
Uname: Linux 5.4.0-1104-raspi aarch64
000-default.conf: Error: [Errno 40] Too many levels of symbolic links: '/etc/apache2/sites-enabled/000-default.conf'
Apache2ConfdDirListing: False
Apache2Modules:
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: arm64
CasperMD5CheckResult: unknown
CloudArchitecture: aarch64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/sda1)
Date: Sat Mar 9 23:53:15 2024
ErrorMessage: installed apache2 package post-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
dpkg 1.21.1ubuntu2.3
apt 2.4.11
SourcePackage: apache2
Title: package apache2 2.4.52-1ubuntu4.7 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to jammy on 2024-03-10 (0 days ago)
error.log:
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-package arm64 jammy uec-images
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/2056662
Title:
package apache2 2.4.52-1ubuntu4.7 failed to install/upgrade: installed
apache2 package post-installation script subprocess returned error
exit status 1 - Crash on "do-release-upgrade" from Ubuntu 20.04 to
Ubuntu 22.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2056662/+subscriptions
Follow ups