How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS

This tutorial will describes how to upgrade Ubuntu Server 12.04.x to Ubuntu Server 14.04 LTS. As we know, Ubuntu Server 14.04 is the latest version of ubuntu server edition that released by canonical few month ago.

NOTE : Before starting upgrade to latest version of ubuntu server, make sure you have full backups you data and everything important on your ubuntu server to other remote system or backup drive. If you are using Ubuntu on VPS make sure take a server snapshot at your provider before upgrading. And we do not grantees the following tutorial will work for you properly.

Step 1: Updating Ubuntu Repository and Install Update Manager

Make sure your current ubuntu server  is fully up to date, doing it with the following command:

sudo apt-get update

Install update manager core package with these command:

sudo apt-get install update-manager-core

Step 2: Check Current Version of Ubuntu Server and Kernel Version

Run the following command to check current version of ubuntu server and kernel information that used ubuntu server

lsb_release -a

lsb-release ubuntu server 12-04

uname -a

kernel version of ubuntu server 12.04

On this case, we are using Ubuntu Server 12.04.4 and kernel 3.8.0-29-generic

Step 3: Upgrade to Ubuntu Server 14.04 LTS

Type the following command to upgrade the Ubuntu server 12.04.4 to Ubuntu Server 14.04 LTS :

sudo do-release-upgrade -d

After execute command do-release-upgrade, it will showing the upgrade tool like the screenshot on below. Answer ” Y ” to upgrade.

checking package manager and starting additional SSH

During the upgrade prosess, you may be asked “Disable SSH password authentication for root?” answer “No” if you want to disable SSH password authentication after the upgrading finish

disable ssh password

Next, you may be asked “Restart services during package upgrades without asking?” answer yes if you won’t be asked on each library update.

restarting service during upgrade

The end of the installation you will be prompted to remove any obsolete packages, Answer ‘y’ to continue and remove. Hit ‘d’ to see details of these packages.

remove obsolete packages

Once remove obsolete packages is complete, you will get message “System upgrade is complete”. Congratulations, your Ubuntu Server 12.04 has now been upgraded to the Ubuntu Server 14.04 LTS. To complete the upgrade, reboot your Ubuntu Server by answering ‘Y’.

system upgrade is complete

Step 4 : Checking Version of Ubuntu Server and Kernel Version After Upgrade

Once your Ubuntu Server has been rebooted successfully, you need to check the version of ubuntu server and kernel version with the command “lsb_release -a” and “uname -r”.

lsb_release -a

lsb-release ubuntu server 14.04

uname -r

check kernel version ubuntu server 14.04

The commands will confirm the Ubuntu Server that you are using is Ubuntu Server 14.04 LTS.

Optional: If you get information “No LSB modules are available ” after execute the command “lsb_release -a” . Fix this problem by installing “lsb_core” package:

sudo apt-get update
sudo apt-get install lsb-core

install lsb core ubuntu server 14.04

Now run again the command lsb_release -a to check for LSB modules. You should get information of LSB version like the following screenshot.

lsb_release a

checking lsb release

On this tutorial we also included video step by step upgrading ubuntu server 12.04 to ubuntu server 14.04. The following video created by LinuxScoop, original video can found here

Link Reference:

 

Tags: #Ubuntu Server 12.04 #Ubuntu Server 14.04

How to Install LAMP in Ubuntu Server 14.04 LTS
How to Install LAMP in Ubuntu Server 14.04 LTS
This tutorial will explains basic step how
  1. author

    David Silverman10 months ago

    One minor point… In the last grey “copy code panel” need the hyphen before the “a”.
    You currently have [ lsb_release a ] instead of [lsb_release -a ]

    No biggie, as its mentioned before the code panel.
    Nice tute ! Thanks for the great effort. I now have 14.4 LTS on my server.

    Reply
  2. author

    Walter Tuti Solano9 months ago

    You should read the original guide before posting: https://help.ubuntu.com/14.04/serverguide/serverguide.pdf

    Reply
  3. author

    Guest8 months ago

    You should NOT use the -d switch in sudo do-release-upgrade on production servers. That’s for installing developmental versions of ubuntu.

    Reply
    • author

      cpare8 months ago

      Wish I had read this before I ran the installer – this explains why I am now on Unicorn

      Reply
  4. author

    Nigel Horne7 months ago

    It fails:

    root@utilite:/home/njh# do-release-upgrade -d
    Checking for a new Ubuntu release
    Your Ubuntu release is not supported anymore.
    For upgrade information, please visit:
    http://www.ubuntu.com/releaseendoflife

    Get:1 Upgrade tool signature [198 B]
    Get:2 Upgrade tool [1,134 kB]
    Fetched 1,134 kB in 0s (0 B/s)
    authenticate ‘saucy.tar.gz’ against ‘saucy.tar.gz.gpg’
    extracting ‘saucy.tar.gz’

    Reading cache

    Checking package manager
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Building data structures… Done
    Ign http://ports.ubuntu.com quantal Release.gpg
    Ign http://ports.ubuntu.com quantal Release.gpg
    Ign http://ports.ubuntu.com quantal-security Release.gpg
    Ign http://ports.ubuntu.com quantal-updates Release.gpg
    Ign http://ports.ubuntu.com quantal-security Release.gpg
    Ign http://ports.ubuntu.com quantal-updates Release.gpg
    Ign http://ports.ubuntu.com quantal Release
    Ign http://ports.ubuntu.com quantal Release
    Ign http://ports.ubuntu.com quantal-security Release
    Ign http://ports.ubuntu.com quantal-updates Release
    Ign http://ports.ubuntu.com quantal-security Release
    Ign http://ports.ubuntu.com quantal-updates Release
    Ign http://ports.ubuntu.com quantal/main armel Packages/DiffIndex
    Err http://ports.ubuntu.com quantal/main Translation-en_GB

    Err http://ports.ubuntu.com quantal/main Translation-en

    Ign http://ports.ubuntu.com quantal/main Sources/DiffIndex
    Ign http://ports.ubuntu.com quantal/universe Sources/DiffIndex
    Ign http://ports.ubuntu.com quantal/main armel Packages/DiffIndex
    Ign http://ports.ubuntu.com quantal/universe armel Packages/DiffIndex
    Err http://ports.ubuntu.com quantal/main Translation-en_GB

    Err http://ports.ubuntu.com quantal/main Translation-en

    Err http://ports.ubuntu.com quantal/universe Translation-en_GB

    Err http://ports.ubuntu.com quantal/universe Translation-en

    Ign http://ports.ubuntu.com quantal-security/main Sources/DiffIndex
    Ign http://ports.ubuntu.com quantal-security/universe Sources/DiffIndex
    Ign http://ports.ubuntu.com quantal-security/main armel Packages/DiffIndex
    Ign http://ports.ubuntu.com quantal-security/universe armel Packages/DiffIndex
    Err http://ports.ubuntu.com quantal-security/main Translation-en_GB

    Err http://ports.ubuntu.com quantal-security/main Translation-en

    Err http://ports.ubuntu.com quantal-security/universe Translation-en_GB

    Err http://ports.ubuntu.com quantal-security/universe Translation-en

    …..

    Hit http://ports.ubuntu.com saucy-updates/main Sources
    Hit http://ports.ubuntu.com saucy-updates/universe Sources
    Fetched 0 B in 0s (0 B/s)

    Error during update

    A problem occurred during the update. This is usually some sort of
    network problem, please check your network connection and retry.

    W:Failed to fetch
    http://ports.ubuntu.com/ubuntu-ports/dists/saucy/Release Unable to
    find expected entry ‘main/binary-armel/Packages’ in Release file
    (Wrong sources.list entry or malformed file)
    , W:Failed to fetch http://ports.ubuntu.com/dists/saucy/Release
    Unable to find expected entry ‘main/binary-armel/Packages’ in Release
    file (Wrong sources.list entry or malformed file)
    , W:Failed to fetch
    http://ports.ubuntu.com/dists/saucy-security/Release Unable to find
    expected entry ‘main/binary-armel/Packages’ in Release file (Wrong
    sources.list entry or malformed file)
    , W:Failed to fetch
    http://ports.ubuntu.com/dists/saucy-updates/Release Unable to find
    expected entry ‘main/binary-armel/Packages’ in Release file (Wrong
    sources.list entry or malformed file)
    , W:Failed to fetch
    http://ports.ubuntu.com/ubuntu-ports/dists/saucy-security/Release
    Unable to find expected entry ‘main/binary-armel/Packages’ in Release
    file (Wrong sources.list entry or malformed file)
    , W:Failed to fetch
    http://ports.ubuntu.com/ubuntu-ports/dists/saucy-updates/Release
    Unable to find expected entry ‘main/binary-armel/Packages’ in Release
    file (Wrong sources.list entry or malformed file)
    , E:Some index files failed to download. They have been ignored, or
    old ones used instead.

    Restoring original system state

    Aborting
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Building data structures… Done

    root@utilite:/home/njh#

    Reply

Leave a reply "How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS"

Must read×

Top