How to upgrade Ubuntu to specific version?

13,289

Edit the /etc/update-manager/release-upgrades file with your favourite text editor.

Change the value of the Prompt line to be: prompt=lts

The do-release-upgrade command will now only upgrade to the next LTS release, which is currently 16.04. Be aware that the next LTS release 18.04 is due to be released soon, so it may be advisable to do this before that is released.

Share:
13,289

Related videos on Youtube

may
Author by

may

Updated on September 18, 2022

Comments

  • may
    may over 1 year

    I am using Ubuntu-14.04 now, and want to upgrade to Ubuntu 16.04.

    It will upgrade to the newest Ubuntu-17.10, if I use the commands below:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
    do-release-upgrade
    

    Does somebody knows "how can I upgrade Ubuntu to certain version (16.04) without re-installing system?

    Thanks a lot.

  • WinEunuuchs2Unix
    WinEunuuchs2Unix about 6 years
    Indeed you don't want to be the first person to upgrade from 14.04 to 18.04 on a production system without duplicating data and trying in a test environment first.
  • Panther
    Panther about 6 years
    There are so many changes from 14.04 to 18.04 honestly I would back up my data and do a fresh install of 18.04 . At the very least test 18.04 on a live USB before you upgrade.