Here is Complete Guide for Server OS Upgrade, Ubuntu 16.04 LTS from 14.04 LTS. This guide is for Cloud Server & VPS with instructions on recovery. Update : It is suggested to follow the guide Ubuntu server 14.04 to Ubuntu 16.04 for Live Servers Running Some Web App Like WordPress and upgrade kernel.
Upgrades between LTS releases are not enabled by default till the first point release. It is recommended to understand why you should read this guide – PHP 5 will get auto upgraded to PHP 7. Our old guides and paths will not work. New in 16.04 is the kernel crash dump mechanism which now supports remote kernel crash dumps. It is now possible to send kernel crash dumps to a remote server using the SSH or NFS protocols.
Will I Go For Server OS Upgrade Ubuntu 16.04 LTS from 14.04?
You must take backup and become ready. Please read the release note :
---
1 | https://wiki.ubuntu.com/XenialXerus/ReleaseNotes |
Ubuntu 14.04 LTS support will end one day. Additionally we all also update all our guides from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS. If you do not upgrade, it is actually less secured in long term. For too much complicated setups, you may remain at Ubuntu 14.04.
Will I Go For Server OS Upgrade Ubuntu 16.04 LTS from 14.04 or FRESHLY INSTALL 16.04 LTS?
We actually recommend freshly reinstalling. As the work is fully manual for setup, you can try upgrade keeping all the backup ready upon failure. OpenVZ may not properly upgrade and it is better to ask your host via ticket.
Fresh install is always good. But work is not less. You can install Ubuntu 16.04 LTS on a fresh installation and normally proceed for setup. That will prevent any downtime.
List of To Do-s Before Attempting Upgrade
We recommend to have full file level backup, we have guide on backup to Dropbox from command line on SSH. How you will take that backup for your web software, that is web software specific. This way is foolproof. Still, you must check the database backup, like in case of backup for WordPress. Backup without checking whether working or not is bad idea.
Secondly, you should have a list of the installed softwares on your current server, for that purpose follow this guide to get a list of currently installed softwares.
And finally, after taking backup, think carefully if you forgotten anything kept on any directory.
Steps and Commands For Server OS Upgrade Ubuntu 16.04 LTS from 14.04?
Please read the lines written above carefully before executing these commands :
1 | sudo apt-get update && sudo apt-get upgrade |
Now perform a dist-upgrade
which will upgrade to Ubuntu 15.10 :
1 | sudo apt-get dist-upgrade |
Restart after completion :
1 | reboot |
Then install this tool :
1 | sudo apt-get install update-manager-core |
We are updating and upgrading Ubuntu 15.10 :
1 | sudo apt-get update && sudo apt-get upgrade |
Restart after completion :
1 | reboot |
Normally, if we run :
1 | sudo do-release-upgrade |
we will get the version 16.04 LTS, but in case still it can not find the release, run :
1 | sudo do-release-upgrade -d |
You will get this info text :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue [yN] |
Lot of stuffs will be asked and you will be able to understand, all answers are yes. At the end, you will get :
1 2 3 4 5 6 7 8 | System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue [yN] |
That ends the setup. If you are stuck in update, you should ask at Ubuntu forum or StackExchange.
Tagged With how to upgrade ubuntu server 14 04 to 16 04 , ubuntu 16 04 customize , ubuntu 16 04 , upgrade steps from ubuntu 14 04 to 16 04 , Ubuntu Server 16 , ubuntu 16 04 upgrade server , ubuntu 14 upgrade ubuntu 16 code , ubuntu 14 04 upgrade to 16 04 , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1830 LJTcsZ7alhf_i6XxRJA_jx9iM9kJRxl4D5Z6hMJx3pdqeoCi5ziG7XcLPV6pT2E0 3597b80c6d003b4856eb87d66aaaf1ce4e4431d3&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1823 KbVzptPT9QXHvFUqceX3EpizyycjvG52cFcaDQe_WXvAACCj55Y9C46arYCiWRn5 3b79e62f11351684c503363df81295a0a4a98987&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme