Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsl --install fails on freshly installed Windows 11 and wsl --update breaks WSL #11124

Closed
1 of 2 tasks
aheinzel opened this issue Feb 4, 2024 · 12 comments
Closed
1 of 2 tasks

Comments

@aheinzel
Copy link

aheinzel commented Feb 4, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.3085]

WSL Version

not yet installed

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

not yet installed

Distro Version

not yet installed

Other Software

I'm attempting to install WSL on a freshly installed copy of Windows 11. Please find details about the state of the OS below:

systeminfo

OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Hotfix(s): 8 Hotfix(s) Installed.
[01]: KB5033920
[02]: KB5012170
[03]: KB5026039
[04]: KB5027397
[05]: KB5031274
[06]: KB5033055
[07]: KB5034204
[08]: KB5034225

Get-WindowsOptionalFeature -Online | Where {$_.State -eq "Enabled"} | Select FeatureName

FeatureName

Windows-Defender-Default-Definitions
Printing-PrintToPDFServices-Features
MSRDC-Infrastructure
MicrosoftWindowsPowerShellV2Root
MicrosoftWindowsPowerShellV2
WCF-Services45
WCF-TCP-PortSharing45
MediaPlayback
WindowsMediaPlayer
SearchEngine-Client-Package
WorkFolders-Client
Printing-Foundation-Features
Printing-Foundation-InternetPrinting-Client
SmbDirect
Microsoft-RemoteDesktopConnection
NetFx4-AdvSrvs

Get-AppxPackage -AllUsers | Select Name, Version

Name Version


Microsoft.MicrosoftEdge.Stable 121.0.2277.98
1527c705-839a-4832-9118-54d4Bd6a0c89 10.0.19640.1000
c5e2524a-ea46-4f67-841f-6a9465d9d515 10.0.22621.1
E2A4F912-2574-4A75-9BB0-0D023378592B 10.0.19640.1000
F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE 10.0.22621.1
Microsoft.AAD.BrokerPlugin 1000.19580.1000.0
Microsoft.AccountsControl 10.0.22621.1
Microsoft.AsyncTextService 10.0.22621.1
Microsoft.BioEnrollment 10.0.19587.1000
Microsoft.CredDialogHost 10.0.19595.1001
Microsoft.MicrosoftEdgeDevToolsClient 1000.22621.1.0
Microsoft.MicrosoftEdge 44.22621.1.0
Microsoft.Win32WebViewHost 10.0.22621.1
Microsoft.Windows.Apprep.ChxApp 1000.22621.1.0
Microsoft.Windows.AssignedAccessLockApp 1000.22621.1.0
Microsoft.Windows.CallingShellApp 1000.22621.1.0
Microsoft.Windows.CapturePicker 10.0.19580.1000
Microsoft.Windows.NarratorQuickStart 10.0.22621.1
Microsoft.Windows.OOBENetworkCaptivePortal 10.0.21302.1000
Microsoft.Windows.OOBENetworkConnectionFlow 10.0.21302.1000
Microsoft.Windows.ParentalControls 1000.22621.1.0
Microsoft.Windows.PeopleExperienceHost 10.0.22621.1
Microsoft.Windows.PinningConfirmationDialog 1000.22621.1.0
Microsoft.Windows.PrintQueueActionCenter 1.0.1.0
Microsoft.Windows.XGpuEjectDialog 10.0.22621.1
Microsoft.XboxGameCallableUI 1000.22621.1.0
MicrosoftWindows.UndockedDevKit 10.0.22621.1
NcsiUwpApp 1000.22621.1.0
Windows.CBSPreview 10.0.19580.1000
windows.immersivecontrolpanel 10.0.6.1000
Windows.PrintDialog 6.2.2.0
Microsoft.549981C3F5F10 4.2308.1005.0
Clipchamp.Clipchamp 2.9.1.0
Microsoft.Advertising.Xaml 10.1804.2.0
Microsoft.Advertising.Xaml 10.1808.3.0
Microsoft.BingNews 4.55.62231.0
Microsoft.BingWeather 4.53.52331.0
Microsoft.DesktopAppInstaller 1.21.3481.0
Microsoft.GamingApp 2306.1001.16.0
Microsoft.GetHelp 10.2308.12552.0
Microsoft.Getstarted 10.2312.1.0
Microsoft.HEIFImageExtension 1.0.63001.0
Microsoft.HEVCVideoExtension 2.0.61931.0
Microsoft.Ink.Handwriting.en-US.1.0 0.237.110.0
Microsoft.Ink.Handwriting.en-US.1.0 0.237.110.0
Microsoft.MicrosoftOfficeHub 18.2311.1071.0
Microsoft.MicrosoftSolitaireCollection 4.19.1261.0
Microsoft.MicrosoftStickyNotes 4.0.422.0
Microsoft.MixedReality.Portal 2000.21051.1282.0
Microsoft.NET.Native.Framework.1.6 1.6.24903.0
Microsoft.NET.Native.Framework.1.6 1.6.24903.0
Microsoft.NET.Native.Framework.1.7 1.7.27413.0
Microsoft.NET.Native.Framework.1.7 1.7.27413.0
Microsoft.NET.Native.Framework.2.2 2.2.29512.0
Microsoft.NET.Native.Framework.2.2 2.2.29512.0
Microsoft.NET.Native.Runtime.1.6 1.6.24903.0
Microsoft.NET.Native.Runtime.1.6 1.6.24903.0
Microsoft.NET.Native.Runtime.1.7 1.7.27422.0
Microsoft.NET.Native.Runtime.1.7 1.7.27422.0
Microsoft.NET.Native.Runtime.2.2 2.2.28604.0
Microsoft.NET.Native.Runtime.2.2 2.2.28604.0
Microsoft.Office.OneNote 16001.14326.21738.0
Microsoft.OutlookForWindows 1.2024.111.100
Microsoft.Paint 11.2311.30.0
Microsoft.People 10.2202.33.0
Microsoft.PowerAutomateDesktop 1.0.529.0
Microsoft.RawImageExtension 2.1.63181.0
Microsoft.ScreenSketch 11.2312.33.0
Microsoft.SecHealthUI 1000.25873.9001.0
Microsoft.Services.Store.Engagement 10.0.23012.0
Microsoft.Services.Store.Engagement 10.0.23012.0
Microsoft.SkypeApp 15.111.3607.0
Microsoft.StorePurchaseApp 22312.1401.1.0
Microsoft.SurfaceHub 61.24010.117.0
Microsoft.Todos 0.114.7122.0
Microsoft.UI.Xaml.2.0 2.1810.18004.0
Microsoft.UI.Xaml.2.0 2.1810.18004.0
Microsoft.UI.Xaml.2.1 2.11906.6001.0
Microsoft.UI.Xaml.2.1 2.11906.6001.0
Microsoft.UI.Xaml.2.3 2.32002.13001.0
Microsoft.UI.Xaml.2.3 2.32002.13001.0
Microsoft.UI.Xaml.2.4 2.42007.9001.0
Microsoft.UI.Xaml.2.4 2.42007.9001.0
Microsoft.UI.Xaml.2.6 2.62112.3002.0
Microsoft.UI.Xaml.2.6 2.62112.3002.0
Microsoft.UI.Xaml.2.7 7.2208.15002.0
Microsoft.UI.Xaml.2.7 7.2208.15002.0
Microsoft.UI.Xaml.2.8 8.2310.30001.0
Microsoft.UI.Xaml.2.8 8.2310.30001.0
Microsoft.VCLibs.140.00.UWPDesktop 14.0.33519.0
Microsoft.VCLibs.140.00.UWPDesktop 14.0.33519.0
Microsoft.VCLibs.140.00 14.0.33519.0
Microsoft.VCLibs.140.00 14.0.33519.0
Microsoft.VP9VideoExtensions 1.1.41.0
Microsoft.WebMediaExtensions 1.0.62931.0
Microsoft.WebpImageExtension 1.0.62681.0
Microsoft.Windows.DevHome 0.1000.389.0
Microsoft.Windows.Photos 2024.11010.23003.0
Microsoft.WindowsAlarms 11.2312.2.0
Microsoft.WindowsAppRuntime.1.2 2000.802.31.0
Microsoft.WindowsAppRuntime.1.2 2000.802.31.0
Microsoft.WindowsAppRuntime.1.3 3000.934.1904.0
Microsoft.WindowsAppRuntime.1.3 3000.934.1904.0
Microsoft.WindowsAppRuntime.1.4 4000.1082.2259.0
Microsoft.WindowsAppRuntime.1.4 4000.1082.2259.0
Microsoft.WindowsCalculator 11.2311.0.0
Microsoft.WindowsCamera 2023.2312.3.0
microsoft.windowscommunicationsapps 16005.14326.21798.0
Microsoft.WindowsFeedbackHub 1.2304.1243.0
Microsoft.WindowsMaps 1.0.57.0
Microsoft.WindowsNotepad 11.2312.18.0
Microsoft.WindowsSoundRecorder 1.0.71.0
Microsoft.WindowsStore 22312.1401.5.0
Microsoft.WindowsTerminal 1.18.3181.0
Microsoft.Xbox.TCUI 1.24.10001.0
Microsoft.XboxGameOverlay 1.54.4001.0
Microsoft.XboxGamingOverlay 5.823.3261.0
Microsoft.XboxIdentityProvider 12.95.3001.0
Microsoft.XboxSpeechToTextOverlay 1.21.13002.0
Microsoft.YourPhone 1.23112.87.0
Microsoft.ZuneMusic 11.2312.7.0
Microsoft.ZuneVideo 10.22091.10061.0
MicrosoftCorporationII.WindowsSubsystemForLinux 2.0.14.0
MicrosoftTeams 23335.242.2641.4129
MicrosoftWindows.Client.WebExperience 424.1301.40.0
RealtekSemiconductorCorp.RealtekAudioControl 1.1.137.0
Microsoft.WindowsAppRuntime.CBS 4000.1027.2341.0
MicrosoftWindows.Client.FileExp 1000.22651.1000.0
Microsoft.UI.Xaml.CBS 8.2305.16002.0
MicrosoftWindows.Client.Core 1000.22645.1000.0
Microsoft.Windows.CloudExperienceHost 10.0.22621.2506
Microsoft.Windows.ContentDeliveryManager 10.0.22621.2506
Microsoft.Windows.SecureAssessmentBrowser 10.0.22621.2506
Microsoft.Windows.StartMenuExperienceHost 10.0.22621.2506
Microsoft.LockApp 10.0.22621.3007
Microsoft.Ink.Handwriting.Main.en-US.1.0.1 0.237.110.0
SpotifyAB.SpotifyMusic 1.230.1135.0
Microsoft.ECApp 10.0.22621.3085
Microsoft.Windows.ShellExperienceHost 10.0.22621.3085
MicrosoftWindows.Client.CBS 1000.22684.1000.0
MicrosoftWindows.Client.Core 1000.22646.1000.0
MicrosoftWindows.Client.FileExp 1000.22653.1000.0

Note: MicrosoftCorporationII.WindowsSubsystemForLinux was installed out of the box

Repro Steps

Attempt to use wsl --install to install WSL or attempt to update an existing WSL installation with wsl --update.

Expected Behavior

wsl --install should enable WSL and install Ubuntu as linux environment
wsl --update should update the existing WSL installation

Actual Behavior

wsl --install errors out with Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG
wsl --update breaks the existing wsl installation causing all subsequent calls to wsl to error out with Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG and attempts to install a distribution result in WslRegisterDistribution failed with error: 0x8007019e

Please find more details below:

Attempts to install WSL

Error installing WSL from store (via wsl --install)

PS C:\WINDOWS\system32> wsl --install
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

Attempt to install with wsl --install errors out (see above). Manually enabling Windows Subsystem for Linux optional component does not alter the outcome.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
#restart
PS C:\WINDOWS\system32> wsl --install
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

Manual installation of kernel update package and VM feature

Following the instructions from Step 4 - Download the Linux kernel update package.

PS C:\WINDOWS\system32> Invoke-WebRequest -URI "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi" -OutFile "c:\wsl_update_x64.msi"
#Note: Microsoft-Windows-Subsystem-Linux already installed before - see above
PS C:\WINDOWS\system32> C:\wsl_update_x64.msi
#click through install wizard
#reboot
PS C:\WINDOWS\system32> wsl --install
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

Installation is still not successful, but will work after removing the WSL windows store app.

PS C:\WINDOWS\system32> Remove-AppxPackage -Package "MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.14.0_x64__8wekyb3d8bbwe"
PS C:\WINDOWS\system32> wsl --install -d "Ubuntu"
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...

Installation appears to be in principle successful, registration of VM fails as virtual machine platform has not been enabled yet.

PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Deployment Image Servicing and Management tool
Version: 10.0.22621.2792

Image Version: 10.0.22631.3085

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
#reboot
PS C:\WINDOWS\system32> ubuntu
Installing, this may take a few minutes...
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: ...
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
New password: ...
Retype new password: ...
passwd: password updated successfully
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
Installation successful!
Windows Subsystem for Linux is now available in the Microsoft Store!
You can upgrade by running 'wsl.exe --update' or by visiting https://aka.ms/wslstorepage
Installing WSL from the Microsoft Store will give you the latest WSL updates, faster.
For more information please visit https://aka.ms/wslstoreinfo

An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This message is shown once a day. To disable it please create the
/home/.../.hushlogin file.
...@DESKTOP-3T7FOI4:~$

Ubuntu appears to be up and running, it, however, fails to mount c: volume. After restarting wsl this error goes away.

PS C:\WINDOWS\system32> wsl --shutdown
PS C:\WINDOWS\system32> ubuntu
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

...@DESKTOP-3T7FOI4:~$

At this point it appears wsl is working fine.

PS C:\WINDOWS\system32> wsl --status
Default Distribution: Ubuntu
Default Version: 2

Windows Subsystem for Linux was last updated on 04/02/2024
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

Kernel version: 5.10.16


PS C:\WINDOWS\system32> ubuntu run "bash -c '{ cat /etc/issue; ls /mnt/c; }'"
Ubuntu 22.04.3 LTS \n \l

'$Recycle.Bin'  'Documents and Settings'   PerfLogs        'Program Files (x86)'   Recovery                     Users     hiberfil.sys   swapfile.sys
'$SysReset'      DumpStack.log.tmp        'Program Files'   ProgramData           'System Volume Information'   Windows   pagefile.sys   wsl_update_x64.msi

Updating to the latest version breaks WSL

Running wsl --update to update wsl to the latest version will break wsl.

PS C:\WINDOWS\system32> wsl --update
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
PS C:\WINDOWS\system32> wsl --status
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG
PS C:\WINDOWS\system32> ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007019e
Error: 0x8007019e The Windows Subsystem for Linux has not been enabled.

Press any key to continue...
PS C:\WINDOWS\system32> wsl --install
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG
PS C:\WINDOWS\system32> wsl --install -d Ubuntu
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

After updating wsl errors out again with Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG. After removing the WSL store app wsl will work again.

Remove-AppxPackage -Package "MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.14.0_x64__8wekyb3d8bbwe"
PS C:\WINDOWS\system32> wsl --status
Default Distribution: Ubuntu
Default Version: 2

Windows Subsystem for Linux was last updated on 04/02/2024
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

Kernel version: 5.10.16
PS C:\WINDOWS\system32> ubuntu run "bash -c '{ cat /etc/issue; ls /mnt/c; }'"
Ubuntu 22.04.3 LTS \n \l

'$Recycle.Bin'  'Documents and Settings'   PerfLogs        'Program Files (x86)'   Recovery                     Users     hiberfil.sys   swapfile.sys
'$SysReset'      DumpStack.log.tmp        'Program Files'   ProgramData           'System Volume Information'   Windows   pagefile.sys   wsl_update_x64.msi
PS C:\WINDOWS\system32>

Diagnostic Logs

No response

Copy link

github-actions bot commented Feb 4, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@aheinzel
Copy link
Author

aheinzel commented Feb 4, 2024

This issue is a partial duplicate of #9453 and #10882 but I decided to keep it open as it includes steps to reproduce the problem on a fresh copy of Windows 11 without the involvement of any third party software.

@craigloewen-msft
Copy link
Member

Can you please collect WSL logs of this issue? /logs

And also can you try installing the latest WSL release by downloading the msi from the 'releases' page: https://github.com/microsoft/WSL/releases and manually installing it?

@aheinzel
Copy link
Author

aheinzel commented Feb 9, 2024

I collected as you asked logs during the various steps. I include short comments on the state of the system before each log.

not installed: windows subsystem for linux, VirtualMachinePlatform, kernel
attempt wsl --install -d Ubuntu
WslLogs-2024-02-09_20-00-53.zip

after
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
and restart
attempt wsl --install -d Ubuntu
WslLogs-2024-02-09_20-05-34.zip

now wsl_update_x64 installed in addition
attempt wsl --install -d Ubuntu
WslLogs-2024-02-09_20-07-44.zip

subsequent Remove-AppxPackage -Packag "MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.14.0_x64__8wekyb3d8bbwe"
note: ubuntu was already installed once before
attempt wsl --install
WslLogs-2024-02-09_20-11-11.zip

wsl now works
WslLogs-2024-02-09_20-12-34.zip

this logs were collected during update attempt (--update) which resulted in "catastrophic failure" (this is new)
WslLogs-2024-02-09_20-13-29.zip

invocation of wsl --status after failed update attempt
WslLogs-2024-02-09_20-15-08.zip

after Remove-AppxPackage -Package "MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.14.0_x64__8wekyb3d8bbwe"
wsl works again
WslLogs-2024-02-09_20-16-07.zip

rebooted and repeated wsl --update
this time no "catastrophic failure" msg occured but wsl --status still results in
Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG
WslLogs-2024-02-09_20-18-15.zip

@aheinzel
Copy link
Author

aheinzel commented Feb 11, 2024

Not sure what is going on... As mentioned I back than had this problem on a freshly installed Windows 11 machine. To be more precise Windows 11 was actually reinstalled (reset this pc -> remove everything -> cloud). I also tried reinstalling from the recovery environment instead of the cloud download, but both resulted into the same problem.

Installing WSL was not the only problem as I for instance I couldn't access Windows Defender from the Security Center. After finding no fix for the Windows Defender problem I downloaded the Microsoft Surface recover image which brought me back to Windows 10 and from there updated to Windows 11 followed by a final reset this PC and install from cloud step. Now I'm back where I was before in terms of Windows 11 version
OS Name Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
but this time I was able to install WSL without any problems.

@qserve
Copy link

qserve commented Feb 13, 2024

I am experiencing exact the same beahvior. I did a PC Reset via Cloud Install. After finishing Install I tried to configure wsl as mentioned above an came across the same error:

Class not registered
Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

I tried the fast line by directly uninstalling the via

Remove-AppxPackage -Package "MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.14.0_x64__8wekyb3d8bbwe"
and then
wsl --install
and then reboot.

The interesting part here is that the system shows the "Updates are underway" Screen, and after an automatic reboot, the Updates (the freshly activated WSL components) are being rolled back leaving me with a broken WSL.

Sidenote: I did another Clean-Install like above but with leaving WSL as is and instead activated Hyper-V Feature. After a reboot the same install and rollback behavior appears.
Maybe that there a deeper problem within here.

My Device is a Surface Laptop Studio 2 (1.Gen).

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 13, 2024

@aheinzel: Thank you for sharing all the logs. Based on the wsl --install logs it looks like the store is failing to download the WSL app.

Can you try manually installing the latest MSI package and see if that solves your issue ?

@dmelentyev
Copy link

Just in case: On Windows 10, same issue, receipts from here did help:

uininstall everything related to WSL (WSL, WSL Updates in Features And Apps)
uninstall all linux apps (AKA ubuntu, etc)
uninstall Rancher Desktop (in my case)

Reboot

In admin PowerShell:
Remove-AppxPackage -Package "MicrosoftCorporationII.WindowsSubsystemForLinux_2.0.14.0_x64__8wekyb3d8bbwe"
Dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Reboot

wsl --update --inbox
wsl --shutdown

Reinstall RancherDesktop (my case)

It finally works again.

@aheinzel
Copy link
Author

@OneBlue: Sorry I no longer have the machine available in this state. I know this is terrible timing, but that machine is my daily driver and I needed a working setup again.

@qserve
Copy link

qserve commented Feb 14, 2024

Maybe I can give some assistance. My System was left in the "Class not registered"-State. So I tried your approach by installing the msi-Package as provided. WSL now works for me:

> wsl --version
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3155

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 14, 2024

Ok thank you @aheinzel. I'll close this for now. Feel free to reopen if this happens again.

@OneBlue OneBlue closed this as completed Feb 14, 2024
@Church-17
Copy link

Church-17 commented Feb 20, 2024

I had the exact same issue as the author of this. As suggested by @OneBlue, I solved it by installing the MSI package of the WSL app published on GitHub, and everything is okay, but the lack of wsl commands remains.
Furthermore not only wsl --install, but also wsl --update is broken; in this case it download the app from the store, but the WSL app itself is broken: it cannot be opened via the "Open" button from the store, it doesn't show up any icon in the start menu, and from the settings app page it appears to have a size of only 8 KB. The same scenario appears when the WSL store app is installed manually.
I haven't done any further research, but it seems like the WSL store app isn't installing properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants