By Kegan Gan
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
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).
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
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.