Upgrade Ubuntu 20.04 LTS to Ubuntu 22.04 LTS

by Alexander Mahr

Since version 22.2 KeyHelp also supports the operating system Ubuntu 22.04 LTS "Jammy Jellyfish".

Do you run KeyHelp on a server with Ubuntu 20.04 and want to take advantage of the optimized Ubuntu 22.04? With this guide, we give you the opportunity to update the software by yourself and provide you with the required script and detailed instructions. Please do not hesitate to contact us if you have any questions or need assistance.

Such instructions are also available for the older operating system versions of Debian and Ubuntu.
Further information can be found here.

ATTENTION: After you have started the script and confirmed the start of the upgrade with [ENTER], all the steps described here must be completed. If you cancel the current process, any changes already made must be undone manually.

ATTENTION: An ongoing upgrade process should always be monitored. Please keep the terminal window open for the duration of the upgrade. You should consider running the upgrade using the screen command to prevent the SSH session from being accidentally terminated.

ATTENTION: Although extensively tested, a previous backup of the server should always be performed.

ATTENTION: Additionally installable PHP interpreters are available from PHP 5.6 on. If older PHP interpreters are used on your system, you have to manually change the affected domains to a higher version.



Upgrade guide


Download the script with this command:

wget --no-check-certificate -O keyhelp_ubuntu_upgrade_20_to_22.php

Afterwards start script with:

php keyhelp_ubuntu_upgrade_20_to_22.php

You are now in the start screen of the application. After you hit [ENTER], this script performs all necessary tasks in preparation of the upgrade. Additional reboots may be required, perform them when prompted.

The program flow is transferred to the Ubuntu application do-release-upgrade. Please follow the instructions of this program.
On questions about Should system config files be overwritten? answer with Keep the local version currently installed.
After running the application, the system asks for a reboot, perform it.

After reboot, please run the command:

phpenmod ioncube

Then start the script again with:

php keyhelp_ubuntu_upgrade_20_to_22.php

The script now configures installed services. After finishing, a reboot is performed. Afterwards your server is ready for use.

Congratulations, you now use KeyHelp with Ubuntu 22.04!