The Localhost Blog
Modern web development guides hints and tips.
Upgrade Windows Subsystem Linux - Ubuntu 18.04 to Ubuntu 19.10
In this guide I’m going to detail upgrading a Windows Subsystem Linux (WSL) Ubuntu install from the current version 18.04 to 19.10 this is an intermediary release before Ubuntu 20.04 is released on 2020 April 23.
Ok, to check the current installed version of Ubuntu from the terminal
lsb_release -a to get the currently installed Ubuntu version
LSB stands for Linux Standard Base and the ‘-a’ is for ‘all information’
The output looks like this:
To start the upgrade I enter the terminal command
This will prompt me if my
release-upgrades file isn’t set to
release-upgrades file path to edit, in this example I’m
using Nano to edit the file.
1sudo nano /etc/update-manager/release-upgrades
In the file I change the
To save the file in Nano I use Ctrl+o to write out the file, confirm (Enter/Return) then to close use I Ctrl+x.
release-upgrades file is set to
normal I can do the
I’m going to skip this during the upgrade but you can optionally run this when doing this for yourself, here’s the command:
1sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client
Pick the same command again in the terminal, if I arrow up a a couple of commands I can use it again.
I’m now prompted with the details of what is going to happen in the upgrade:
I respond with
y to continue and start the upgrade.
When I’m prompted about
libc6 for restarting services during package
upgrades I use the tab key to select
<Yes> then return to continue.
Next I have the
Lxd warning I mentioned earlier, in this case I’m
going to arrow down and select the option to
<Skip> then hit return
In the following screens I’m being asked about package configuration,
I’m going to be picking the option to
install the package maintainer's version for all of them.
openssh-server arrow up key to to
install the package maintainer's version and hit return to continue.
Then there’s the
release-upgrades configuration and yeah I’m going
to select to
install the package maintainer's version and confirm to
One of the last few prompts is to confirm the removal of the obsolete
y to continue.
Restart is required now, so I confirm with
Now I have the confirmation that the do release upgrade completed successfully. I press Ctrl+c
Then have to press
x to destroy!
That takes me back to the regular prompt where I can check with
lsb_release -a what version I’m now on.
Confirmation the Windows Subsystem Linux version of Ubuntu I’m using is now on 19.10.
That’s it! I upgraded a WSL Ubuntu version from 18.04 to 19.10.
First, I changed the default behaviour of the release upgrader from
do-release-upgrade, and I skipped the
Lxd configuration. It
isn’t needed on WSL but is part of the Ubuntu image on the Microsoft
install the package maintainer's version on any
Please take a look at my other content if you enjoyed this.