Upgrade Ubuntu 16.04 to Ubuntu 17.10
Hello everyone, today I will write another quick tip for you. I will show how to upgrade from a LTS version to a non-LTS version, for example, upgrade Ubuntu 16.04 to Ubuntu 17.10.
To upgrade Ubuntu is very easy and you can do it in two manners, one via GUI and the second one using the terminal.
Upgrading via GUI
So, first, let’s do it via GUI, which is the easier way to do it. you should open “Software & Updates” program:
After it, go to “Updates” tab. There you will see the section “Notify me of a new Ubuntu version”. The ComboBox has three possible values:
- For long-term-support version
- For any new version version
We must change it to For any new version version. After change your password will asked to perform the operation.
So, after the change, we need to open “Settings” application and click in “Details”.
Inside Details section, there is a button to Install updates if you have any. Click and install the updates before start the upgrade.
After the updates has been installed, go to Details page again and click on Install Updates. Now this message should appear to you:
Now you should click in “Upgrade…”, enter your password when asked and start the Upgrade process. 😀
Before effectively start download & install the packages, you will be asked if you really want to proceed with the process. Now just hit “Start Upgrade”.
Upgrading via Terminal
Now that we know how to upgrade via GUI, let’s do it via terminal. First of all, we need to edit one file, to tell Ubuntu we want upgrade to a non-LTS version. So, This file is placed in /etc/update-manager/ and the file name is release-upgrades.
sudo nano /etc/update-manager/release-upgrades
We need to edit this file to be able to upgrade, so, this file contains one configuration called Prompt, and we need to changes its value to normal. As result we must have this file:
# Default behavior for the release upgrader. [DEFAULT] # Default prompting behavior, valid options: # # never - Never check for a new release. # normal - Check to see if a new release is available. 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. # lts - Check to see if a new LTS release is available. 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. Prompt=normal
For more information about the configuration, you can read the comments of the file itself. Now, we changed the configuration file, we need to run a command to start the upgrade process. So, this is the command:
After run this command, you will be asked if you really want to upgrade your system, if will confirm it and the upgrade will start. A lot of packages will be downloaded and installed, so it is important to have a good internet connection and if you are in a notebook, connect it to a power source.
As a final note about the upgrade process, you CANNOT jump directly from Ubuntu 16.04 to Ubuntu 17.10, you have to upgrade for each supported version until you get the latest one. So you need to be patient. 🙂
So, that is it folks, hope you liked and hope its helpful! If you have any question, leave us a comment!!