105

Question is about Ubuntu release process. Are migrations from n to n+1 releases expected?

Assuming we have server with installed Ubuntu 14.04 LTS. Will it be smoothly upgradable to Ubuntu 16.04 LTS via apt-get upgrade ?

Assumptions:

  • scope is software
  • therefore we assume that given hardware is supported on both releases (upgrading from and to)
  • that's why, always before upgrade you are asked to make backup to be able to revert in case of failure
  • 7
    Short answer: yes you can upgrade from LTS to LTS – Thomas Ward Jan 06 '16 at 20:55
  • 3
    Why would you assume you can't? – Braiam Jan 06 '16 at 23:10
  • 4
    I am not experienced with Ubuntu LTS Server, I used to use Arch, Slackware, SuSE and other distros... In some I experienced situations that migration from release n.x to (n+1).y required reinstallation from scratch, or was very painful (leading to reinstallaction from scratch after sweat&tears&blood). Therefore, I ask before hand, being not sure if smooth transitions are available only for normal releases, or also for LTS releases. – Grzegorz Wierzowiecki Jan 06 '16 at 23:42
  • 2
    Note that if you delay and wait too long after the LTS release is no longer supported (which you shouldn't, because security updates), the upgrade process isn't quite so smooth. – Zach Lipton Jan 07 '16 at 08:25
  • 5
    @GrzegorzWierzowiecki, a clarification: Arch is a rolling release, so there are no releases once you have it installed. A single pacman command just gets you the latest. Arch has no named releases; all they do is cut a series of installers regularly. –  Jan 07 '16 at 15:26
  • I used to find that this was so dodgy that you would be better off just reinstalling the whole thing, but I have not seen that in years, now it is seamless and so easy – Sammaye Jan 08 '16 at 09:22
  • @jdv maybe I cut corners. Yes, you are right that Arch is rolling release. The analogy I see is that when you upgrade Arch in small increments, it goes quiet smoothly. However if you leave computer turned off for longer time and then try to update, it might be otherwise.I've ended up in such situation. To me analogy is that it's my experience, that it's less likely to succeed to do upgrade after break, contrary to small increments. And I didn't know if n.x -> (n+1).y in Ubuntu is considered enough small increment as n.x -> n.(x+1) ... Anyhow, thanks for feedback, should be helpful for readers! – Grzegorz Wierzowiecki Jan 08 '16 at 12:02
  • @GrzegorzWierzowiecki, yes, Arch requires you read the blog and forums before accepting a large upgrade. Again, this is the complete opposite of LTS. We exchange a system with older libraries and possibly out of date apps for more guarantees about upgrading. LTS is about stability and ease of upgrade, as answered below. –  Jan 08 '16 at 14:19
  • @jdv Thank you ! Thanks to all answers and comments I am absolutely convinced that Ubuntu Server LTS is good fit for few usecases I have in mind (like hope servers, "pet projects", "diy nas", etc). Thank you all ! :) – Grzegorz Wierzowiecki Jan 08 '16 at 14:23
  • 1
    The accepted response is wrong. The answer is NO, a large amount of hardware is not supported especially radeon hardware. –  Sep 13 '16 at 07:02
  • @PhillipMoxley added clarification and reminder about backup – Grzegorz Wierzowiecki Sep 24 '16 at 21:03

10 Answers10

69

You can upgrade smoothly through LTS releases whether it's Server or Desktop. It doesn't matter what you use, you just need to use these commands:

For Desktop Version:

sudo do-release-upgrade

For Server Version:

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

NOTE: Please always make sure you test the target LTS you're being prompted to upgrade to in a LiveCD on the machine you're using to make sure everything works properly before going in for the real upgrade itself.

  • 1
    And anyway, wouldn't it be sudo apt-get dist-upgrade? Or is that command for something else? – SuperSluether Jan 06 '16 at 23:35
  • 7
    @SuperSluether dist-upgrade updates the whole system, apps, kernel, the lot to the latest available versions but not the distribution, do-release-upgrade will upgrade to the next release, you should do a dist-upgrade if you like new kernels and stuff, as opposed to the update manger, which just does, kernel updates for that version, apps and, security. – Mark Kirby Jan 07 '16 at 00:18
  • 2
    Merge Flimm's answer with yours and add your sources, and I'll upvote this – dcorking Jan 07 '16 at 13:22
  • 1
    Yes, you can upgrade like the answers below say but you'll have to use the command on this answer to actually upgrade Ubuntu Versions. – Dominic Hayes Jan 07 '16 at 16:55
  • @DominicHayes you were asked to edit your own answer, not the other one. – guntbert Jan 07 '16 at 21:58
  • 1
    OK @DominicHayes I changed my vote, don't forget to comment when you edit, no one is notified of it. – Mark Kirby Jan 07 '16 at 22:07
  • I think this should be the accepted answer as it actually shows you how to get it done. And it works...I've tested it. – McGafter Aug 04 '16 at 12:56
  • About the smoothness : I followed this suggestion and am now facing a kernel panic. And there are dozens of similar issues reported on AskUbuntu about the 14.04->16.04 upgrade. – Skippy le Grand Gourou Dec 24 '16 at 23:26
  • 1
    Skippy: There's always been the risk of that happening, which is why the community has suggested in the past to check a LiveCD of the target Ubuntu version first and it's also been known to happen during LTS upgrades now and then, sadly the only fix I can think of is using an Ubuntu 16.04 LiveCD, and if it works fine, install it over the '/' partition in Advanced Partitioning (Last option in install method suggestions) (which shouldn't be too much trouble given you gave '/home' a separate partition, otherwise, you'll need to back up the /home folders from the LiveCD) – Dominic Hayes Dec 26 '16 at 10:44
63

Yes, you can upgrade from one Ubuntu LTS version to the next one, skipping the non-LTS releases in-between. It's intended to work that way and it gets tested.

Flimm
  • 41,766
  • 6
    The last time I upgraded from one LTS to the next I had to wait for the first point release. Has this restriction been lifted? – Gerald Schneider Jan 07 '16 at 13:34
  • @GeraldSchneider This could be a new question, 16.04 is coming soon and this will be very relevant. – Mark Kirby Jan 08 '16 at 16:33
  • 8
    @GeraldSchneider The point (no pun intended) of LTS releases is stability, so they don't enable the upgrade notifications until a point upgrade has been released. You can upgrade before however using do-release-upgrade (or one of its flags, I've forgotten the exact process). For more information see: http://askubuntu.com/questions/125392/why-is-no-new-release-found-when-upgrading-from-a-lts-to-the-next/125492#125492 – Seth Jan 13 '16 at 00:46
  • @Seth do-release-upgrade -d will get you to 16.04 from 14.04 without waiting for 16.04.1 "point release" :-) Just did it the other day. That is... assuming your /etc/update-manager/release-upgrades includes the default Prompt=lts – Tyler Jul 21 '16 at 01:02
  • 1
    Now that 16.04.1 is out, I still cant do a do-release-upgrade on my ubuntu server 14.04 LTS. My question is here - http://askubuntu.com/questions/801488/how-do-i-upgrade-from-14-04-lts-server-to-16-04-1 – Lord Loh. Jul 21 '16 at 22:47
  • 14.04 to 16.04 does not work for radeon hardware. –  Sep 13 '16 at 07:03
  • 2
    It is intended to work that way, yet this very website hosts dozens of questions about failed 14.04->16.04 upgrade. A "kernel panic" is not what I call a "smooth upgrade"… – Skippy le Grand Gourou Dec 24 '16 at 23:24
  • 3
    Typically kernel panics occur if you aren't using the bog standard stock Ubuntu kernel and you use ANY drivers that "taint the kernel" eg most video card drivers, some network drivers, and other third party applications. There are definitely cases where this isn't super smooth, but if you disable 3rd party repos/PPAs and disable/uninstall proprietary video card drivers using the driver utility before upgrading you typically don't have many issues. – dragon788 Oct 09 '17 at 20:37
  • it would then seem, because do-release-upgrade claims it takes "hours" to do an upgrade, that a re-install is the better option for my desktop. Installing from a CD typically takes about 20-40 minutes the last few times I did it. – Adam.at.Epsilon Nov 04 '18 at 08:18
  • @Adam.at.Epsilon - If by "hours" was meant the info in answers under here, consider the fact that those answers are old, relating to old CPUs with lower process speed. – cipricus Jun 11 '21 at 14:08
28

I trusted other answers and proceeded to the upgrade from an up-to-date 14.04 to 16.04 using do-release-upgrade. Now I am facing a kernel panic.

Here are other relevant questions (not mine), most unanswered :

Therefore the actual answer to the question "can I smoothly upgrade from one LTS to next LTS release", in particular when applied to 14.04->16.04 upgrade as suggested in the OP, is clearly not "yes" — and most if not all answers are wrong in this regard.

At best, you might smoothly upgrade.

  • Have you tried selecting different kernel during boot?

    My experience is that usually such thing happen when one did not update/upgrade long time and later during upgrades/updates /boot partition gets full.

    However I've encountered described problem during normal upgrades. (Therefore, I consider it problem with just "standard upgrade" part rather than something specific for full system upgrade). Then such kind of advices help.

    I have no idea if that's your case, but I hope it helps.

    – Grzegorz Wierzowiecki Dec 28 '16 at 01:24
  • @GrzegorzWierzowiecki Thanks for the suggestion, but in my case there was no hope to get a clean setup back : the init system had disappeared and apt's dependency tree was completely broken. (And I made sure I had enough free space beforehand.) – Skippy le Grand Gourou Dec 29 '16 at 17:46
  • Said to hear. One day I managed similar situation on other Distro to recover from Live CD/Dvd, and a lot of manual clean ups, I am not sure if I would repeat it again, more likely took backup ofnwhat's left amd start from scratch. Good luck! – Grzegorz Wierzowiecki Dec 29 '16 at 19:35
  • @GrzegorzWierzowiecki Having /home on a separate partition makes it way less sad that it seems. ;-) – Skippy le Grand Gourou Dec 29 '16 at 21:45
  • and /etc and /usr ... ;) all depends where does your customisations live/reach – Grzegorz Wierzowiecki Dec 30 '16 at 00:43
8

You can upgrade from one LTS version to another. If its smooth or not depends.

If you're referring only to the OS, the process is tested and if your hardware is compatible everything will be fine.

Don't forget though that you may have your own software/scripts/etc installed or other configurations that may have unmet dependencies in the new version. (eg.: you have some script with deprecated functions that are dropped in a newer version)

nsn
  • 181
  • 4
4

Upgrades from 14.04 to 16.04 are not automatically when 16.04 comes out in April but in July the first point release 16.04.1 will become available and all 14.04 users will be offered the upgrade then.

However, if you want to upgrade immediately, you do NOT need to upgrade to an intermediate release first. Just run the following in a terminal (and type your password):

sudo update-manager -d

You will then be offered the 14.04 -> 16.04 upgrade without waiting for 16.04.1.

The reason Ubuntu doesn't automatically offer 16.04 to 14.04 users is simple: those users are using a very stable LTS release, and might hit undiscovered bugs in 16.04 if they upgraded immediately at release. Any important bugs found in 16.04 should be fixed by the 16.04.1 point release, so LTS users have less chance of running into bugs in the new release.

Omegamormegil
  • 1,294
  • 9
  • 10
3

Just a quick note on upgrading from an old non-LTS release: I was stuck on 13.04 (Raring Ringtail, non-LTS), and wanted to upgrade. First get up to 14.04 LTS (Trusty Tahr), then upgrade to 16.04 (Xenial Xerus).

To upgrade from 13.04 (in September 2016!), you need some hacking, and this guy had a way: http://tuxtrix.com/2014/03/upgrade-from-ubuntu-1304-to-ubuntu-1404.html

It worked for me!

(Tip: Run the upgrade in Console (ctrl+alt+F1), not in the desktop GUI. While upgrading, X or whatever hung on me, and I had to hammer a bit to get it through..)

stolsvik
  • 385
  • This is how I do release upgrades, it has worked every time. Now in 18.04 I will test with an LTS upgrade. I'm using 16.04 – userDepth Sep 15 '17 at 16:29
1

Yes you can. a step by step guide. https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-16-04-lts

abhi
  • 321
1

Comments and links about LTS systems

It can be difficult and confusing to select the version of Ubuntu both for the first installation and for upgrading to a new released version. This answer will focus on how to find the version with the longest remaining support time (until 'end of life'), which is often the first point release of an LTS release (LTS stands for Long Time Support).

Right now, when this is written, it is Ubuntu 16.04.1 LTS, and its iso files are not found via the 'usual' links for the current versions.

The support intervals are described with details and diagrams in this link,

www.ubuntu.com/info/release-end-of-life

The kernel series of the second, third and fourth point releases are different from the kernel series of the first point release, and are not supported for a long time. The hardware enablement stack must/will be upgraded according to these links,

wiki.ubuntu.com/Kernel/LTSEnablementStack

wiki.ubuntu.com/Kernel/RollingLTSEnablementStack

in order to keep everything up to date (including security updates of the kernel). This is risky and I would discourage you to do that. Many failures are reported. Some of these problems can be found, if you type HWE into the 'Search Q&A' window near the top right corner of the web browser's window with AskUbuntu (and press Enter).

The kernel series of the fifth point release is that of the next LTS relesase and has long support.

Strategy for a stable and reliable system

I would recommend the following strategy, if you want to use a stable and reliable system.

  • A good backup routine for all files, that you want to keep, is the fundament of a stable and reliable system. This includes your personal files and the whole or parts of the operating system and installed application programs and tweaks.

  • Install and stay with LTS releases that are released in April during even years, 2014, 2016, 2018, ...

  • Install the version which has the longest time until end of life right now. Test it and if it works well, stay with it. "If it ain't broke, don't fix it"

    Stay with update & upgrade within the kernel series

    sudo apt update
    sudo apt full-upgrade
    
  • When the next first point release is released, wait for a month, and sometime late in August, the worst bugs are fixed, and you can install the new release and do the updates & upgrades to a well debugged and polished system. This can mean changing

    • from 14.04.1 LTS to 16.04.1 LTS, or
    • from 14.04.1 LTS to 18.04.1 LTS (only standard Ubuntu has 5 years LTS), or
    • from 14.04.5 LTS to 16.04.1 LTS, or
    • from 14.04.5 LTS to 18.04.1 LTS (only standard Ubuntu has 5 years LTS), or
    • from 16.04.1 LTS to 18.04.1 LTS, or
    • from 16.04.1 LTS to 20.04.1 LTS (only standard Ubuntu has 5 years LTS), or
    • from 16.04.5 LTS to 18.04.1 LTS, or
    • from 16.04.5 LTS to 20.04.1 LTS ...

It is often better to install a fresh system and after that copy your personal files from the old system to the new system. It is possible to upgrade from the old LTS release to the next LTS release via

sudo do-release-upgrade

but it is risky, and you had better get a fresh backup before trying it.

Get the iso files

Start looking for the iso files of the version with the longest remaining support via these links,

If the iso files of the version with the longest remaining support are not found via those links, you can find them via the following general link,

and right now, when this is written, you want to find Ubuntu 16.04.1 LTS via the following link,

sudodus
  • 46,324
  • 5
  • 88
  • 152
0

If you want to upgrade from 12.04 LTS to 16.04 LTS, you can't do that. You can't skip an LTS release like that. You need to update 12.04->14.04 and then 14.04->16.04.

It will probably be quicker to just do a reinstall (and setting up your server so it'll be easier next time ;) ).

0

Yes, you can smoothly and easily upgrade from one LTS to next LTS release:

Step Press Alt + F2 and type update-manager and then follow the onscreen instructions.