Should I update Ubuntu on WSL?

I have Bash on Ubuntu on Windows.

Bash on Ubuntu on Windows

The output of lsb_release -a is the following.

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

Should I upgrade? Do I risk to break it?


Solution 1:

Yes its possible and there are two options:

  1. Use lxrunto install and uninstall bash:

    lxrun /uninstall
    lxrun /install
    
  2. Upgrade with do-release-upgrade:

    sudo do-release-upgrade
    

Information:

  • The second method might work according to the link given below, but that article is 2016 so this method might work.

  • Here is clip from Microsoft

    Note: WSL will install Ubuntu version 16.04 (Xenial) instead of Ubuntu 14.04 (Trusty) in an upcoming release. This change will apply to Insiders installing new instances (lxrun.exe /install or first run of bash.exe). Existing instances with Trusty will not be upgraded automatically. Users can upgrade their Trusty image to Xenial using the do-release-upgrade command.

Source:

https://www.howtogeek.com/278152/how-to-update-the-windows-bash-shell/

https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14936