WSL Terminal Fails to Launch After Latest Windows Updates

These seem to have messed the system up in some way :

2023—01 Cumulative Update for Windows 10 Version 21H2 for x64-based Systems (K85022282)

Successfully installed on 1/30/2023

2022-12 Cumulative Update for .NET Framework 3.5. 4.8 and 4.8.1 for Windows 10 Version 21H2 for x64 (KBSOZ1088)
Successfully installed on 1/30/2023

2023—01 Update for Windows 10 Version 21H2 for x64—based Systems (K811023057)

Successfully installed on 1/30/2023

2022-08 Security Update for Windows 10 Version 21H2 for x64-based Systems (KBSO12170)

Successfully installed on 1/30/2023

Going to try installing this one and see if it fixes it..

Feature update to Windows 10, version 22H2

No clue what to do. Went to Upwork. The WSL Terminal not usable was fixed in a few minutes - just go to the folder that it's installed in. 

C:\Users\username\AppData\Local\wsltty

Rename the wsltty to wsltty_old, go to the GitHub page for WSLTTY, get the new installer and install and you're in business.

The other curio of moving from 20.04 to 22.04 of Ubuntu was tricky.

Consider :

PS C:\Users\me> wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.

NAME               FRIENDLY NAME
Ubuntu             Ubuntu
Debian             Debian GNU/Linux
kali-linux         Kali Linux Rolling
SLES-12            SUSE Linux Enterprise Server v12
SLES-15            SUSE Linux Enterprise Server v15
Ubuntu-18.04       Ubuntu 18.04 LTS
Ubuntu-20.04       Ubuntu 20.04 LTS
Ubuntu-22.04       Ubuntu 22.04 LTS
OracleLinux_8_5    Oracle Linux 8.5
OracleLinux_7_9    Oracle Linux 7.9
PS C:\Users\me> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         2
So, it clearly knows that 22.04 is available. And yet :

PS C:\Users\anant> wsl --set-version Ubuntu-22.04 2
There is no distribution with the supplied name.

adsf. What finally worked (you get 22.04 and can confirm that it's 22.04 WITHIN Ubuntu, but Windows doesn't quite know that - it still thinks you have 20.04) :


Enter Ubuntu (either launch WSL Terminal or run bash from powershell) and..
sudo apt update && sudo apt upgrade
# restart Ubuntu
sudo do-release-upgrade
 Check : 

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

 

Comments

Popular posts from this blog

For Testing URLResource

Sorry, Can't Do This With Microsoft Outlook