如何在 Windows 11 系统中安装/升级 WSL2?

如何在 Windows 11 系统中安装/升级 WSL2?

由于这是一台官方笔记本电脑,因此我无法访问BIOS我的系统。

我想WSL2在我的系统中安装。无论如何WSL Update对我没用。

PS C:\Users\anand.sathasivam> wsl.exe --update
Checking for updates.
The most recent version of Windows Subsystem for Linux is already installed.
PS C:\Users\anand.sathasivam> wsl -l -v
Windows Subsystem for Linux has no installed distributions.

Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.

Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND

我已经从Microsoft Store。当我打开它时,它说,

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...

甚至wsl.exe --install ubuntu失败了。

PS C:\Users\anand.sathasivam> wsl.exe --install ubuntu
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...
The installation process for distribution 'Ubuntu' failed with exit code: 1.
Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED

那么我能做些什么来解决这个问题呢?我已经完成了上述工作WSL2Ubuntu,我的Windows 11系统里没有WSL。看来我的组织限制我不要在他们的系统里有类似的东西group policy。但是我没有权限访问BIOS我有一个行政许可在我的系统中,这样我就可以运行gpedit.msc并进行必要的更改。

相关内容