Blog

03/06/2019

How To Upgrade To a Newer Version of Ubuntu 14.04 LTS



Ubuntu Linux version 14.04 LTS has been released. How do I upgrade to a newer version of Ubuntu 14.04 LTS from Ubuntu 13.10 or 12.04 LTS?

You can upgrade from minor or major release of Ubuntu easily and recommended for all users.
[donotprint][/donotprint]

Back up any important data on the Ubuntu server

Make a backup – it cannot be stressed enough how important it is to make a backup of your system before you do this. Most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Type the following commands to see current version:
$ uname -mrs
$ lsb_release -a

Sample outputs:

Linux 3.2.0-51-generic x86_64

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.4 LTS
Release:	12.04
Codename:	precise

How do I upgrade to a newer version of Ubuntu, such as v14.04, from an older v13.10 on a server system?

Type the following command to update package list and instal the update-manager-core package if it is not already installed:
$ sudo apt-get update
$ sudo apt-get install update-manager-core

Next, type the following command to upgrade the Ubuntu server to the latest release such as LTS 14.04 from the command-line. This is the recommended command as the server has no graphic environment or if the server is to be upgraded over a remote connection using ssh client:
$ sudo do-release-upgrade
The do-release-upgrade will launch the upgrade tool. You need to follow the on-screen instructions.

Fixing and forcing upgrade

You may end up getting the following message on screen when you run sudo do-release-upgrade

Checking for a new Ubuntu release
No new release found

Warning: The following method will check if upgrading to the latest devel (also known as unstable) release is possible via -d option.

To force upgrade pass the -d option to sudo do-release-upgrade command:

sudo do-release-upgrade -d

A note about upgrading from Ubuntu 13.10 on a desktop system

First, you need to remove all 3rd party binary drivers such as NVIDIA or AMD graphics card driver. Once removed and rebooted the desktop, press Alt+F2 and type in update-manager into the command box:

update-manager

Update Manager should open up and tell you: New distribution release ‘14.04 LTS’ is available. Just click Upgrade and follow the on-screen instructions to upgrade your desktop systems.

Please note that all LTS desktop users need to wait till the first release called Ubuntu LTS v14.04.1 will be released by Canonical LTD. If you do not want to wait till LTS v14.04.1, pass the -d option to the update-manager command as follows to upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS:

sudo update-manager  -d

Reboot the server/desktop

Finally, reboot the system:
$ sudo reboot
Verify, your new settings:
$ lsb_release -a
$ uname -mrs
$ tail -f /var/log/app/log/file

Finally, reinstall 3rd party binary drivers.

This entry is 4 of 4 in the Upgrade On a Ubuntu Server Tutorial series. Keep reading the rest of the series:
  1. How to upgrade Ubuntu 16.04 to 18.04 LTS using terminal
  2. AWS Lightsail upgrade Ubuntu 16.04 LTS to 18.04 LTS
  3. How Do I Update Ubuntu Linux Softwares Using Command Line?
  4. HowTo: Upgrade To a Newer Version of Ubuntu 14.04 LTS

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...