Ubuntu is a widely used popular Free and Open Source In the Linux based Operating System. To upgrade this distribution we shouldn’t install the new version of Ubuntu putting our private data in risk. We can upgrade it from the existing system only.
In Ubuntu you can do it with a single command from your terminal. Whichever version you are currently running(12.04, 14.04 etc.) the command below will work. First to know which version of Ubuntu you are using on your console type:
whoami@whoami:~$lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty
I just upgraded from 12.04 to 14.04.5 LTS. I set this machine for an old dual core i3 processor. So I thought sharing the command to upgrade is worthwhile.
In your terminal type the first command:
$ sudo apt-get dist-upgrade $ sudo reboot $ sudo update-manager -d
The first command dist-upgrade refers to the upgrade of distributions. This command will go to the repository and find the latest package for you. After it fetches the upgrade perform a reboot. With a fresh reboot your machine will know that a distribution upgrade is available in your update manager. So finally execute the third command update-manager. This will run the update manager. In the update manager you will find a menu. The menu asks if you want to upgrade. Click it and Linux will do the rest for you.
Those are the commands for upgrading a Ubuntu Desktop. Command is slightly different for upgrading the servers. Let me also share this in the same blog.
$ sudo apt-get upgrade $ sudo apt-get dist-upgrade $ sudo reboot $ sudo do-release-upgrade -d
Run above commands sequentially. First fetch the upgrades. Than fetch the distribution upgrades. You are all set now perform a restart. Finally perform the release upgrade with do-release-upgrade command.
Related Articles: