I’ve searched the forum for similar problems, tried the suggestions (below), but still haven’t found the solution. Hopefully, somebody here can chime in.
Server: VPS on Oracle Cloud. Upgraded from Ubuntu 20.04 to 24.04LTS via 22.04.
Problem: After the upgrade, Apache2 won’t start and is marked red in the Hestia (1.9.2) panel.
What I’ve tried:
Before running apt-update and apt-upgrade, I fixed the sources list by applying the fix to the signing key as outlined here:
I get:
Command ‘apache2ctl’ not found, but can be installed with:
apt install apache2
So I run:
apt install apache2
I get:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apache2 : Depends: apache2-utils (= 2.4.58-1ubuntu8.5) but 2.4.63-1+ubuntu20.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Returns nothing - just returns to the next CLI prompt.
By the way, this is the 3rd server that this has happened to. All had the same spec, setup and upgrade process. I had to wipe and reinstall the other 2 over the weekend. Hoping I can figure out what’s going on. All servers were running fine beforehand - I decided to update from 20.04 because of approaching EOL support.
BTW - during the upgrade process, whenever the system proposed replacing .conf files, I always chose NO, keep existing modified file.
I don’t recall changing repositories during the process. Here’s the contents of /etc/apt/sources.list.d/ubuntu.sources:
Types: deb
URIs: Index of /ubuntu-ports
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: Index of /ubuntu-ports
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Seems to be using noble throughout, apart from apache2.sources which is using jammy, but is not enabled. Should I change this to noble and enable it?
cat /etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: Index of /ubuntu-ports
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: Index of /ubuntu-ports
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: Index of /ubuntu-ports
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: Index of /ubuntu-ports
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
So, I had the same problem, but before I added the NOBLE to my sources.list - witch probably would have fixed the problem - I uninstalled Apache2 but left the configs. But then I could not reinstall because of the jammy. After replacing jammy with noble, I was able to install Apach2 and the required dependencies. I did have to replace the /etc/apache2/apache2.conf with the Hestia version.
Now apache2 starts but all my sites except for admin show a blank white page.
PS I am using cloud flare for DNS and have enabled Development Mode to bypass cache. Any suggestions?
Unfortunately, none of the proposed solutions offered in this thread were able to resolve the situation for me, resulting in complete reinstall of 5 servers. Sorry to hear that you’re encountering the same problem and hope you get it resolved. If you do find a solution, it would be helpful to post it here in case anyone else finds this thread.
ubuntu@OCI-HCP:~$ dpkg -l | grep '^ii.*apache2'
ii apache2 2.4.63-1+ubuntu24.04.1+deb.sury.org+2 arm64 Apache HTTP Server
ii apache2-bin 2.4.63-1+ubuntu24.04.1+deb.sury.org+2 arm64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.63-1+ubuntu24.04.1+deb.sury.org+2 all Apache HTTP Server (common files)
ii apache2-utils 2.4.63-1+ubuntu24.04.1+deb.sury.org+2 arm64 Apache HTTP Server (utility programs for web servers)
ubuntu@OCI-HCP:~$