Ubuntu Server upgrade via Command Line. To upgrade from Ubuntu 14.10 server to Ubuntu 15.04 server, use the do-release-upgrade utility.
To upgrade a Ubuntu Server Edition installation, follow the steps given below:
Ubuntu 15.04 will be available to download from www.ubuntu.com/download from Thursday 23 April.
Ubuntu Servers
-
If you installed from 14.04 or 12.04 originally you will need to remove LTS upgrade restrictions. Replace Prompt=lts with Prompt=normal:
sudo pico /etc/update-manager/release-upgrades
-
Install update-manager-core if it is not already installed:
sudo apt-get install update-manager-core
-
Launch the upgrade tool to upgrade Ubuntu server system to latest version using the following command:
-
sudo do-release-upgrade -d
Follow the on-screen instructions. Once complete, reboot the server.
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. Ubuntu 15.04 is not a LTS version, so normal is used.
Ubuntu Server Upgrade via Command Line – do-release-upgrade
To upgrade a Ubuntu Server Edition installation use the do-release-upgrade utility. It is a part of the update-manager-core package, it does not have any graphical dependencies and is installed by default.
Please note that the Debian based systems can also be upgraded by using apt-get dist-upgrade. However, do-release-upgrade is recommended because it has the ability to handle system configuration changes.
To upgrade to a newer release, from a terminal prompt enter:
do-release-upgrade
It is also possible to use do-release-upgrade to upgrade to a development version of Ubuntu. To accomplish this use the -d switch:
do-release-upgrade -d