5

After using the Microsoft Store app to update all apps (including WSL), WSL fails to run when run without admin privilege.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\mslin> wsl Element not found. Error code: Wsl/ERROR_NOT_FOUND

If I run PowerShell with administrator privileges then I can start it by typing wsl. Ubuntu is still intact. In the following I launched PowerShell with admin privilege, otherwise this command would also fail:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> wsl -l Windows Subsystem for Linux Distributions: Ubuntu (Default)

What should I do to fix this?

2 Answers2

1

There is some ongoing issue with WSL.

Currently seen two working workarounds:

  • run whatever you are using to start WSL as admin
  • remove recent update - details
lukee
  • 111
0

The current WSL preview resolves this problem. In Cmd or PowerShell, type:

wsl --update; wsl --update --pre-release

For more information, see https://devblogs.microsoft.com/commandline/windows-subsystem-for-linux-september-2023-update/