我是认真的,为什么人们不回答这个问题
我不知道如何修复此错误,因为在 Windows 更新出现严重问题后我已经 2 年没有使用 WSL... 任何人都可以解决这个问题吗?
Microsoft Windows [Version 10.0.19045.3930]
(c) Microsoft Corporation. All rights reserved.
C:\Users\user>wsl -l -v
NAME STATE VERSION
* Ubuntu Stopped 1
C:\Users\user>wsl
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount I:\, see dmesg for more details.
Failed to mount K:\, see dmesg for more details.
Failed to mount L:\, see dmesg for more details.
<3>WSL (9) ERROR: CreateProcessEntryCommon:331: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:502: execvpe /bin/sh failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:505: Create process not expected to return
C:\Users\user>wsl
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount I:\, see dmesg for more details.
Failed to mount K:\, see dmesg for more details.
Failed to mount L:\, see dmesg for more details.
<3>WSL (9) ERROR: CreateProcessEntryCommon:331: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:502: execvpe /bin/sh failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:505: Create process not expected to return
C:\Users\user>
另外,我的电脑规格是:
我尝试使用 YouTube 来解决这个问题,但还是没有解决。
我也有同样的问题。使用以下命令修复它。
C:\Users\Usr> wsl --set-default Ubuntu
The operation completed successfully.
C:\Users\Usr> wsl -l -v
NAME STATE VERSION
* Ubuntu Running 2
docker-desktop Running 2
PS C:\Users\Usr> wsl
希望这有帮助!