How to update from Ubuntu 16.04 to 18.04 on Windows 10


The Windows 10  is having default Ubuntu is of version "Ubuntu 16.04.03 LTS".  If you want to update to the latest available you can follow the below steps.

Check the distribution version on bash shell.

lsb_release -d

To update to Ubuntu 18.04 on Windows 10, first update and upgrade all the packages.

sudo apt-get update 
sudo apt-get upgrade -y

If you face the below error message then run the dist-upgrade.

Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
sudo apt-get dist-upgrade

And now you all set to do the release upgrade.

sudo do-release-upgrade

You will be asked to intervene twice during the upgrade process. The first time, Ubuntu will ask you if you want to install the latest version of the sshd_config file. You can keep the current version, or you can get the latest one.

Next, a little further during the upgrade process, Ubuntu will ask you if you want to remove obsolete packages. You can choose to remove them, or keep them. When the upgrade finishes, a restart will be required. If Ubuntu is unable to restart your system, go ahead and manually restart it.

Open Ubuntu bash shell and run the following command again to make sure the upgrade was successful.
$ lsb_release -d
Description:    Ubuntu 18.04.2 LTS


Comments

Popular posts from this blog

Apache Ambari on ARM64

Benchmarking BigData

mockbuild warning in CentOS