Check current version:
lsb_release -a
Make 20.04 installation is up-to-date:
sudo apt update && sudo apt full-upgrade
Close Ubuntu on WSL terminal, and open PowerShell terminal:
wsl -l -v ## Confirm the distribution name and adjust below if needed wsl --terminate Ubuntu
Open new Ubuntu on WSL terminal:
sudo do-release-upgrade ## sudo apt update && sudo apt upgrade -y sudo apt autoremove
Check current version:
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy