To elevate from Ubuntu 20 to 22 you must ensure your system is completely updated. You can do that by doing the following:
apt update
apt upgrade
reboot
You'll want to ensure you don't have any improperly configured cloud-init files:
/etc/cloud/cloud.cfg.d/50-curtin-networking.cfg
/etc/netplan/50-cloud-init.yaml
You should have only your IPv4 address. If you have anything in 10.0.0.0/8, such as 10.0.21.107 those files need to be removed in order to avoid an improperly configured network during elevate.
You're now ready to elevate and can download the elevate script:
wget -O /scripts/elevate-cpanel \
https://raw.githubusercontent.com/cpanel/elevate/release/elevate-cpanel ;
chmod 700 /scripts/elevate-cpanel
You'll first want to check for blockers:
/scripts/elevate-cpanel --check
If there are any blockers refer to our specific guides:
Assuming there are no blockers you can then run:
/scripts/elevate-cpanel --start
You cannot reboot your server now as it'll be in an incomplete state which may not be recoverable.
You can check the progress at any time using:
/scripts/elevate-cpanel
If you encounter failures you can correct them then start the process again by running:
/scripts/elevate-cpanel --continue
You can follow the logs in real time by running:
/scripts/elevate-cpanel --log
Upon completion of elevate you can now run the following to update to the latest version of cPanel
/scripts/upcp
If you encounter any issues or have questions please contact our support team.