2

I am trying to download Ubuntu on my windows machine via WSL, and facing difficulties.

I need to turn on Windows Subsystem for Linux in windows features. After I do that and restart the machine, it switches back off.

Now, people recommend to restart the LxssManager.dll service, which looks like it will actually solve the issue. The problem is my machine is missgine the LxssManager service...

The QUESTION:

Does anyone know where I might be able to download it again safely? Or where is it located within the machine (by default)? so I could add it manually via powershell (given it is there of course)

Any help is appreciated!!!

4 Answers4

3

I had a similar problem. With windows 11 24H2 (Build 26100.3037) LxssManager.dll no longer exists and has been replaced by WSLService.

I had to reinstall wsl. In an elevated powershell I performed the following operations:

wsl --uninstall

wsl --install

The new service for WSL is called WSLService

You can restart the service with

Restart-Service WSLService

Edit: You can also try

wsl --update 
3

Actually I had this problem today. What worked for me was to uninstall wsl --uninstall, then reinstall.

PS C:\WINDOWS\system32> wsl --install
Downloading: Windows Subsystem for Linux 2.4.11
Installing: Windows Subsystem for Linux 2.4.11
Windows Subsystem for Linux 2.4.11 has been installed.
The operation completed successfully.

The re-download of the Windows Subsystem for Linux 2.4.11 fixed the problem.

Velvet
  • 1,739
1

The LxssManager server really is Windows Subsystem for Linux (or at least a major part of it), so if the feature is getting disabled on reboot, that's also why the service is missing. So no, restarting the service isn't going to fix this.

What we really need to do is to solve your root issue of WSL being disabled after restart.

Your problem sounds very similar to these two Github issues:

In multiple cases, the solution has been to:

  • Start an Admin PowerShell

  • rmdir "$env:windir\System32\Tasks\Microsoft\Windows\Windows Subsystem For Linux\"

  • Restart the PC

  • Reenable Windows Subsystem for Linux. This can also be done from the commandline by starting an Admin PowerShell and:

    Dism /online /Get-FeatureInfo /FeatureName:Microsoft-Windows-Subsystem-Linux
    
  • Reboot

  • Pay close attention during the reboot. If there are any errors, please note them in an edit to the question.

But hopefully, there will be no errors or warnings and the feature will be enabled properly after that.

NotTheDr01ds
  • 28,025
0

For anybody for whom the above answers do not work, I had the same problem on a clean install of Windows for which I disabled Windows Update (because it is incredibly annoying). I had actually disabled 3 services, one being Windows Update (wuauserv) and the other two being WaaSMedicSvc and Update Orchestrator Service (UsoSvc). I had thought at first only these latter two make WSL not work, so I turned them back on, but I only managed to get WSL to work once I also started the Windows Update service (in my case, I had not installed it and I was getting an error when installing it, but since this question is about a WSL service, I am expecting that people can get this issue from Windows Update).