Recently acquired a new vps, but the provider didn't support Ubuntu 18.04.
log into your server running an older version and use the following command to update it:
apt update && apt full-upgrade
After successfully upgrading, issue the next command which will run you through upgrading to the latest Ubuntu release. Upgrades can have hickups so make sure you understand the risks and have backed up your data.