WSL无法安装任何Linux发行版的问题求助
大家好,我目前在用一台Windows PC,配置信息如下:
- 版本:Windows 11 Home
- 系统更新版本:23H2
- OS内部版本:22631.2338
- 体验包版本:Windows Feature Experience Pack 100.22674.1000.0
- 处理器:Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz 2.90 GHz
- 安装内存:16.0 GB
- 系统类型:64位操作系统,基于x64的处理器
最近我在安装Linux发行版时遇到了一系列问题,尝试了多种方法都没能解决,想向大家求助:
微软商店与管理员CMD安装失败
不管是通过微软商店直接安装,还是在管理员权限的命令提示符里执行wsl --install -d <distro>命令,都会返回错误代码0x80070005。管理员PowerShell不识别wsl命令
在管理员权限的PowerShell里输入wsl命令时,会返回如下错误:
wsl : The term 'wsl' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and
try again. At line:1 char:1 wsl CategoryInfo :
ObjectNotFound: (wsl:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
- 手动安装Ubuntu后无法运行
我尝试手动下载Ubuntu的.AppxBundle文件安装成功后,运行时却弹出错误提示:
Windows cannot access the specified device, path or file. you may not
have the appropriate permissions to access the item
我已经尝试修改了对应安装文件夹(C:\Program Files\WindowsApps\CanonicalGroupLimited.Ubuntu_2204.1.7.0_x64__79rhkp1fndgsc)的权限,但没有任何效果。
我已经做过的排查操作:
- 确认已经启用了「Windows Subsystem for Linux」和「Virtual Machine Platform」这两个Windows功能
- 在管理员CMD里执行
wsl --set-default-version 2,成功将WSL默认版本设置为2 - 进入BIOS确认Intel CPU的虚拟化功能已经开启
目前我已经试过各种能想到的方法了,实在找不到解决思路,欢迎大家给我提任何建议,谢谢!
备注:内容来源于stack exchange,提问作者WillJ1312

