HowTo: Upgrade To a Newer Version of Ubuntu 14.04 LTS

Posted on in Categories , , , last updated April 21, 2014

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.

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.

48 comment

  1. Didn’t understand the logic behind removing 3rd party Drivers…anyways would tray this in a while and let you know if it worked

    1. 3rd party drivers only works with current kernel and will not work with newer version. You may see blank screen with older driver version. Hence, remove, update, and reinstall to save time.

  2. Please correct the misspell “sudp apt-get install update-manager-core” to “sudo apt-get install update-manager-core”

  3. uname -mrs
    Linux 3.11.0-20-generic x86_64

    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 13.10
    Release: 13.10
    Codename: saucy

    sudo do-release-upgrade
    Checking for a new Ubuntu release
    No new release found

    can’t upgrade :(

  4. In case if you get “No new release found” message try following:

    sudo apt-get install update-manager-core
    sudo do-release-upgrade -d

    1. drcreazy – this was really helpful. Tried for ages to update to 14.04 from 12.04. Failed with all methods. That second line did it. Many thanks.

    2. Follwg result in my case:
      [email protected]:~$ sudo apt-get install update-manager-core
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      update-manager-core is already the newest version.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      [email protected]:~$ sudo do-release-upgrade -d
      Checking for a new Ubuntu release
      No new release found
      [email protected]:~$

  5. Hello, thank you , but i did not get the message on the Update Manager ( i have Ubuntu 12.04.4 LTS) what should i do please ?

  6. It works! Thanks drcreazy. I’ve been all morning trying to force my installation to updagrade itself to 14.04. For some reason it keep telling me that it was ‘up to date’ until I tried that command line trick.

    Downloading 693MB (aprox.) which should take around 30 minutes.

  7. Is it safe to upgrade live server. Will the software like mysql and nginx will also be upgraded?

    Just wanted to know what are the chances of getting failed.

    PS: Backup will be ready for any crisis.

  8. Please can you explain the logic in “forcing” the upgrade with “-d”?

    Wouldn’t using ‘-d’ put you on the development branch?

    1. Yeah, that’s my understanding too. You end up potentially getting unstable kernels, not to mention orphaned/broken packages with unmet dependencies. I don’t see this as being good advice.

        1. Which is fine, but why would you need to use ‘-d’ to force the upgrade anyway?

          If 14.04 is an official release, and the standard command should work for an upgrade from 12.04 then why is it generating the “No release found” message? I don’t really want to force my live server into using the development branch, I want the official upgrade.

          1. All LTS desktop users need to wait till July, when the first release called 14.04.1 will be out. If you do not want to wait till LTS 14.04.1, pass the -d option to the update-manager command i.e.:

            sudo update-manager  -d
  9. I must be in a minority, or, something isn’t clicking in my head. I’m new to linux for desktop (but not new to linux overall) .. so maybe there is just some terminology I’m missing…

    Anyway … you titled a section:
    “How do I upgrade to a newer version of Ubuntu 14.04 from 13.10 on a server system?”

    I’m being genuine when I say that I may just be an idiot here, but am I the only one who notices the broken English there? “newer version of Ubuntu 14.04” … from “13.10”… you can’t get a newer version of 14.04… if you have 13.10.

    To me, it seems more appropriately worded as “How do I upgrade to a newer version of Ubuntu, such as 14.04, from 13.10 on a server system?”

    Normally I would just ignore it as a typo or whatever.. I’m not trying to criticize grammar on the interweb… or suggest that I am any better… its just that I saw a similar weird statement just minutes ago on Ubuntu.com and it has me thinking that I am missing some terminology or something here.

    In an article titled “Upgrade from Ubuntu 13.10 to 14.04 LTS” .. the second sentence is “If you have a version of Ubuntu other than Ubuntu 14.04 LTS, please read the upgrade notes for more information on how to upgrade.”…

    Eh?!? An article titled 13.10 to 14.04 … but … then they more or less say “this article is for people running 14.04..”

    Someone, please tell me what I’m missing…

    Thanks,
    Luke

  10. got “No new release found” at 1st, using sudo do-release-upgrade

    Tried
    apt-get update
    sudo do-release-upgrade -d
    no error, and worked fine to upgrade.
    Was on a 12.04 LTS server version, upgraded to 14.04, no probs…

  11. I have done the upgrade on my DELL M65.
    Once rebooting & loging, the screen remains darks and nothing happens. Di I miss something?

    1. Note that being on 13.10, I first used the Upgrade facility on system demand. No error has been reported but I get a Black screen once I log on 14.04.
      I burned a DVD with an 14.04 ISO, booting or reinstalling 14.04 from the DVD, I get the same issue.

  12. My current Ubuntu version is 12.04 and 12.10 is still new release and doesn’t change to 14.04. I select ‘notify me for any new version’ at settings. Why is that?

  13. Have no idea what to do, got this error:

    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://mx.archive.ubuntu.com/ubuntu/dists/natty-backports/main/source/Sources  404  Not Found [IP: 91.189.91.15 80]
    , W:Failed to fetch http://mx.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/source/Sources  404  Not Found [IP: 91.189.91.15 80]
    , W:Failed to fetch http://mx.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/source/Sources  404  Not Found [IP: 91.189.91.15 80]
    , W:Failed to fetch http://mx.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/source/Sources  404  Not Found [IP: 91.189.91.15 80]
    , E:Some index files failed to download. They have been ignored, or old ones used instead.
    
  14. I am currently using ubuntu 12.04 and want to upgrade to 14.04. Update manager shows that the upgrade available is 12.10. I tried all the steps explained, but the upgrade option is available only to 12.10. How do I proceed?

  15. I keep getting this message Can not run the upgrade
    This usually is caused by a system where /tmp is mounted noexec. Please remount without noexec and run the upgrade again.
    ummm how to do this??

  16. hello i followed all the commands, i first upgraded from 12.04lts to 12.10. but after that it failed.
    sudo apt-get install update-manager-core
    sudo do-release-upgrade -d
    but it showed
    Checking for a new Ubuntu release
    No new release found

    can anyone please tell me how to upgrade.

  17. Hello all……….>I am new to Ubuntu. I am just Ubuntu user, i don’t know anything about any software issues with it. I am using Ubuntu 12.04. I wann upgrade the same. I have not tried yet with any of the process given above. If i upgrade to new version of Ubuntu ( 12.04 to 14.04), I have following queries:
    1. Will my data on various drives like D,E,F or /dev/sda5 ; /dev/sda6; /dev/sda7 will be affected? There is more than 150GB data on these drives and its so important. Total HD is of 320GB.
    2. Do i need to save all my data from Desktop or folders from home folder ?
    3. Will i need to re install various software i have on 12.04 like Matlab, Latex, Scilab, Labview……………etc.?
    4. In case if upgrade process fails, will i be able to work with old Ubuntu(12.04) without any issues/process with respect to my data on various drives and software ?
    5. whats will be the major damage to my data saved on there various drives/partitions if upgrade process fails.?
    6. Since I am lay man for Ubuntu installations and up gradation process, can i dare to follow the above procedures/process for up gradation?
    ………………………..
    I know for you all Ubuntu technocrat, this may be silly things…………..but i just wann confirm ……………so that I can dare to do so.

    Thanking you all in advance for bearing me and helping me,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,hahahahahah

  18. Hello i am new to use ubunto at first i have instaled ubuntu 10.4 and i updated to 12.04 but now since last month i have been trying to update to 14.04 and is giving me to much problem. When i tryed it is showing me an error like this:
    THIS USUALLY IS CAUSED BY A SYSTM WHERE /TMP IS MOUNTED NOEXEC. PLEASE REMOUNT WITHOUT NOEXEC AND RUN THE UPDATE AGAIN.
    the queston is what i hae to do tu fixe this thing. please helpe me
    Regards
    Casimiro

  19. If i have in “lsb_release -a” this:
    LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:qt4-3.1-amd64:qt4-3.1-noarch
    Distributor ID: Ubuntu
    Description: Ubuntu 12.04.5 LTS
    Release: 12.04
    Codename: precise

    What i should do?

  20. I am forcing the install of 14.04 now. My upgrade was interrupted when my laptop died (fell asleep, oops!) when I turned it back on there was a black screen and a box with system download error. Tried everything from various threads. Fingers crossed this works.

  21. it takes forever for my OS to upgrade to 14.04 LTS. it stopped in ‘preparing gcaltool’ what should i do? i just pressed upgrade and follow the instructions given.

  22. The problem with these instructions is that the important parts: delete modules, etc. are not explained. The explained parts are the ones that are the same for every release upgrade.

    The upgrade can be donde without the first commands.
    All those lsb_release and uname are not needed as you can see from the same instructions.

  23. Hi,

    I tried. But nothing working. Can’t able to upgrade.

    My Console:
    —————
    [email protected]:/# uname -mrs
    Linux 3.11.0-12-generic x86_64
    [email protected]:/# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 13.10
    Release: 13.10
    Codename: saucy
    [email protected]:/# sudo do-release-upgrade -d
    Checking for a new Ubuntu release
    No new release found
    [email protected]:/# sudo apt-get install update-manager-core
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    update-manager-core is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    [email protected]:/#

    Please help me.

    Thanks,
    Vinoth

Leave a Comment