1

This question already has an answer here:

For reasons beyond my control I need to upgrade a 14.04 release to 16.04 release and no further. Is this possible?

Im sure that sudo apt-get dist-upgrade will just update to the latest.

marked as duplicate by pomsky, waltinator, Zanna, Eric Carvalho, N0rbert Jul 26 '18 at 15:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 6
    a do-release-upgrade will upgrade to to 16.04. The upgrade from 16.04 to 18.04 isn't open yet (but will be in a few days), though this doesn't matter, the upgrade path is LTS to LTS; you need to make two jumps to go from 14.04 to 18.04 (first goes only to 16.04 LTS) – guiverc Jul 25 '18 at 7:08
3

A do-release-upgrade from a LTS release will upgrade you to the next LTS release, ie. from 14.04 LTS you'll only go to 16.04 LTS.

As of this moment, the path from 16.04 LTS to 18.04 LTS isn't open yet (*it will be in a few days; 18.04.1 is on 2nd RC...), but this doesn't matter; to jump from 14.04 LTS to 18.04 LTS requires two jumps, the first being to the next LTS which is 16.04 LTS.

As @pomsky suggested, have a look at How do I upgrade to a newer version of Ubuntu? which covers 'release-upgrading' for more upgrade info.

Also note: apt-get dist-upgrade doesn't jump you to the next release; unless you modify your sources to include a later release. It does the apt-get upgrade but missing fewer updates, from man apt-get is the following

dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

  • 1
    Is your first sentence correct? I think if you upgrade from 14.04 you will get 16.04. – Organic Marble Jul 25 '18 at 15:41
  • Much thanks to @OrganicMarble for correcting my unintended horrific typo.. – guiverc Jul 25 '18 at 22:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.