Tuesday, February 9, 2010

Upgrade an Ubuntu LTS release to a non LTS release

Ubuntu releases a new version of their operating system every six months. Ubuntu supports each release for 18 months with patches and updates. Every two years Ubuntu releases an LTS, or long term support, version. These LTS releases receive three years of patches and updates for the desktop version and five years of support for servers. By default, these LTS releases will only upgrade to newer LTS releases. If you have an LTS version of Ubuntu installed and want to upgrade it to a newer release version that is not an LTS release, you will have to change a setting first.

First, install the update tool:
$ sudo aptitude -y install update-manager-core
Make a backup of the config file you'll be editing:
$ sudo cp /etc/update-manager/release-upgrades /etc/update-manager/release-upgrades.orig
Now open that file:
Using gedit:
$ sudo gedit /etc/update-manager/release-upgrades

Using vi:
$ sudo vi /etc/update-manager/release-upgrades
Find the line that reads:
Change it to say:
Update to the next release:
$ sudo do-release-upgrade


  1. Thanks, this saved my evening.

    Upgrading old server instance from 9.04 stopped to 10.04 but with help of this process could continue.

  2. Very helpful, thank you!

  3. Thanks as well, this is exactly what I needed.

  4. Thanks a lot....

  5. Thanks! Short and sweet! If you don't mind me asking...how did you learn this?

  6. So very helpful, even 4 years later. Thanks!

  7. Thanks, that's also useful other way around ie upgrading to LTS with dist-upgrade. Have to manually tell update-manager after that it should only upgrade to LTS if you want to prevent releases to non-LTS from that point.

  8. Thanks for this, made life easier when I needed to update our fleet of VDSes.


Note: Only a member of this blog may post a comment.