1. Download the upgrade script with this command:
wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_ubuntu_upgrade_20_to_22_php71 -O keyhelp_ubuntu_upgrade_20_to_22.php
2. Then start the script with the following command:
php keyhelp_ubuntu_upgrade_20_to_22.php
3. Follow the on-screen instructions to prepare for the upgrade. Additional restarts may be required. Perform them when prompted.
4. The program flow is passed to the Ubuntu application do-release-upgrade
Please follow the instructions of this program. If you have any questions about “Should system configuration files be overwritten?“ answer with “Keep the currently installed local version“. After running the application, the system will ask you to reboot. Do this.
5. After rebooting, please run the following command:
phpenmod ioncube
6. Start the script again with the following command:
php keyhelp_ubuntu_upgrade_20_to_22.php
7. The script now configures installed services. Once completed, a reboot will be performed. Your server will then be ready for use.
Please note that you should back up your important data before upgrading to avoid data loss. Also, make sure that all your applications and services are compatible with Ubuntu 22.04 before upgrading.
Here are the original instructions from the KeyHelp team: Upgrade Ubuntu 20.04 LTS to Ubuntu 22.04 LTS – KeyHelp