# Updating Ubuntu
# About
The current recommend host o/s for Enhance (control panel and secondary servers) is Ubuntu 24.04 LTS. If you are running Ubuntu 22.04, you may wish to upgrade.
TIP
Check the integrity of your backups before beginning.
# Update Ubuntu
To update Ubuntu to 24.04 LTS (Noble Numbat) from 22.04 LTS (Jammy Jellyfish):
- Log in to your server with SSH as root and run
apt update
apt upgrade
apt dist-upgrade
do-release-upgrade
Follow the prompts. If asked to replace files in /etc/ufw with those from the package, we recommend that you say no.
- The update process will have disabled the Enhance apt repository, you need to re-enable it:
# re-enable the Enhance apt repo
mv /etc/apt/sources.list.d/enhance.list.distUpgrade /etc/apt/sources.list.d/enhance.list
# replace references to jammy with noble
sed -i 's/jammy/noble/g' /etc/apt/sources.list.d/enhance.list
- Update PHP packages
apt update
apt install --reinstall ecp-php{56,70,71,72,73,74,80,81,82,83,84}
- Reboot the system