If you don't want to install the new Ubuntu 16.04 LTS, this article will explain how to upgrade from Ubuntu 15.10 or older Ubuntu. For now, the upgrade to the Ubuntu 16.04 LTS is a little bit of a mistake, but the whole upgrade process is pretty good.
Before you formally start the upgrade, use the following command to update the system first:
sudo apt-get update && sudo apt-get dist-upgrade
The above command installs the latest available packages for the current system, and restarts the system to complete the update installation after the upgrade is complete:
sudo reboot
After the system reboot completes, perform the following command to upgrade Ubuntu to the latest Ubuntu 16.04 LTS version:
sudo update-manager–d
At this point, the software update will search for the latest available version of the system, and after some time you will see the following interface:
Click the "Upgrade" button to start the upgrade process.
Note: The finalrelease time for the Ubuntu 16.04 LTS is April 21, 2016, which was previously upgraded to a beta version, only for test environments.
After a few minutes, the Upgrade Wizard prompts you to uninstall the packages, the number of packages that will be installed and upgraded, and the size of the packages that need to be downloaded, and click "Start Upgrade" if you are sure.
At this point the formal upgrade begins, and you can see the easy progress of the upgrade in the interface shown in the following figure. The entire upgrade time depends on your network speed and computer performance, we have a cup of coffee slowly waiting.
After the upgrade is complete, the new version can be used to reboot the system.
Ubuntu Server upgrades to 16.04 LTS
Here's how to upgrade your legacy Ubuntu server to Ubuntu server 16.04 LTS.
1, use the following command to install the Update-manager-core package:
sudo apt-get install Update-manager-core
2, edit/etc/update-manager/release-upgrades file, set Prompt=normal or Prompt=lts value.
# Default behavior for the release upgrader.
[DEFAULT]
# Default prompting behavior, valid options:
#
# Never-never Check for a new release.
# Normal-check to the If a new is available. If more than one new
# release are found, the release upgrader'll attempt to upgrade to
# The release of that immediately succeeds the currently-running
# release.
# Lts-check to the If a new lts is available. The Upgrader
# would attempt to upgrade to the the ' the ' the ' the ' the ' the ' the '
# The Currently-running one. This option should is
# used if the currently-running release isn't itself an LTS
# release, since in, the Upgrader won ' t is able to
# Determine if a newer release is available.
Prompt=normal
Normal: Check if a new system version is available, and if so, make a version update.
LTS: Check to see if a new LTS version is available and update to the LTS version if there is one.
Since we tested the server version of Ubuntu 15.10,ubuntu 16.04 as its next version, we configured normal.
3. Perform the following command to update the system first:
sudo apt-get update && sudo apt-get dist-upgrade
4, after the update is completed, use the following command to reboot the server:
sudo reboot
5. If you upgrade via SSH remote connection, the Ubuntu Server 16.04 LTS upgrade session is interrupted to prevent SSH connection problems. We threw the upgrade session into the screen session. So you have to install first:
sudo apt-get install screen
6, use the following command to start screen session
Screen–dr
7. Perform the following command to start the upgrade:
sudo do-release-upgrade–d
After the upgrade starts, press "y" as you are prompted to complete the upgrade.