kegan
By:
kegan

Should I do-release-upgrade to 16.04.2 LTS?

April 21, 2017 2.2k views
DigitalOcean Django Miscellaneous Server Optimization Ubuntu

I have a Ubuntu 14.04.5 LTS running a few Django applications. I keep seeing this when I login.

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Should I do the release upgrade?

4 Answers
jtittle1 April 21, 2017
Accepted Answer

@kegan

Before doing a release upgrade, create a snapshot of your Droplet. Upgrading releases can lead to some rather unexpected results if your application isn't compatible with new software versions that will be installed when you upgrade.

For example, I'll use PHP. Older Ubuntu versions have PHP 5.x in their repositories while the newer releases have PHP 7.0.x. When performing a release upgrade, PHP 5.x becomes 7.0.x, so any PHP applications on the server that are not fully compatible with PHP 7.0 break instantly.

The same is true for many languages.

My recommendation would be to deploy a new Droplet with Ubuntu 16.04 and migrate your app over to it instead of upgrading the release, unless you're sure newer software versions will not break or cause issues with your current application(s).

this upgrade broke my droplet, and of course, Digital Ocean support claims that they have nothing to do with the posted do-release-upgrade script. This is the second time that a droplet has been broken by digital ocean's spotty upgrade procedures.

  • do-release-upgrade is something controlled by Canonical (https://www.canonical.com/) The company that builds and supports Ubuntu. All I can say is before you do ANY upgrades. Use digitaloceans amazing snapshot service. Just make a snapshot. Do the upgrade, if it fails or breaks no harm no foul. Just revert to the snapshot and you are back up and running!

@jtittle1

we followed your recommendation by spinning up a new droplet and migrated the snapshot droplet to the new one. however, the ubunta, php and mysql are still the old ones. Isn’t it true that all the newly created droplets have the latest ubunta, php and mysql installed? If not, how can we install the latest ubunta, php and mysql versions? any idea?

thanks in advance.

tom

@d4rkd0s

snapshots are good only as a backup. it serves no purpose whatsoever in case of an upgrade or update!! you still need to spin up a brand new droplet from scratch and copy all the files from the old droplet to the new one with an ftp client.

tom

Have another answer? Share your knowledge.