mardi 5 avril 2022

Ideas for troubleshooting WSL/Ubuntu2004 (LxssManager service)

 If you try to start your Ubuntu 20.04 LTS instance in the WSL environment on Windows (10), then try to restart the LxssManager service through Powershell as follows :

powershell

Restart-Service LxssManager

Restart-Service LxssManager -force

The following article might help to understand the mechanics around starting and stopping services through Powershell, in case you need it :

https://social.technet.microsoft.com/Forums/windows/en-US/574d175f-c370-4bd5-9bf1-c5e400362dfa/powershell-script-to-restart-a-service-and-its-dependents-and-their-dependents?forum=ITCG

Basically, you should use the "Get-Service" function to list all services from Powershell.