How to upgrade Ubuntu WSL to 18.10

less than 1 minute read

Upgrading to Ubuntu 18.10 on WSL

Although not officially released you can upgrade to Ubuntu 18.10 on WSL

sudo apt update && sudo apt dist-upgrade -y

Next edit /etc/update-manager/release-upgrades and change Prompt=lts to change Prompt=normal

Now run:

sudo do-release-upgrade

This may take a while.

You may get an LXD Error when upgrading. Purge it (I haven’t found any issues yet) via the following:

$ sudo dpkg --force depends -P lxd
...
$ sudo dpkg --force depends -P lxd-client
...

Then run the upgrade again.