This guide explains how to upgrade your Linode from Ubuntu Caution Distribution upgrades sometimes yield unpredictable results.
If possible, use these steps as an alternative to the upgrade method described in this guide: Create a new Linode with the latest disk template Rebuild your stack Transfer your data Swap IP addresses The upgrade may be incomplete or your system may be corrupted if your internet connection is interrupted.
Use Lish or Glish to perform this upgrade in a stable environment that does not rely on an active internet connection to your Linode.
Note The steps required in this guide require root privileges. Be sure to run the steps below as root or with the sudo prefix. For more information on privileges see our Users and Groups guide. Prepare to Upgrade In order to prepare you Linode for upgrade, the following steps will: Install updates for Ubuntu That way, you can restore from backup if anything goes wrong during the upgrade process.
If you subscribe to the Linode Backup Service, we recommend that you take a manual snapshot before upgrading to Ubuntu If you use another backup service or application, we recommend that you make a manual backup now. Check Your Kernel Verify that your Linode is using the latest supported kernel. See Applying Kernel Updates for more information. Stop Services We recommend that you stop as many services as possible before upgrading to Ubuntu To stop a service, enter the following command, replacing apache2 with the name of the service you want to stop: Upgrading from Ubuntu Install the update-manager-core package: If more than one new release is found, the release upgrader will attempt to upgrade to the release that immediately succeeds the currently-running release.
The upgrader will attempt to upgrade to the first LTS release available after the currently-running one. Note that this option should not be used if the currently-running release is not itself an LTS release, since in that case the upgrader won't be able to determine if a newer release is available.
Because Linode offers internal package mirrors for Ubuntu, you may see this message: No valid mirror found While scanning your repository information no mirror entry for the upgrade was found. This can happen if you run an internal mirror or if the mirror information is out of date.
Do you want to rewrite your 'sources. If you choose 'Yes' here it will update all 'trusty' to 'xenial' entries. If you select 'No' the upgrade will cancel.
Continue [yN] Type y and Enter to continue. The upgrade will require a reboot. No LSB modules are available. You may then upgrade your Linode to Ubuntu