1.分析原因有两个,一是没有虚拟平台,二是需要访问国外服务器。
2.解决办法:
2.1查阅其他博主资料,先设置windows自动更新,点击启动。
Windows11家庭版默认没有Hyper-V选项。这时在桌面上新建一个文本文档,复制以下命令粘贴进去。
pushd "%\~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
将文件另存为所有文件格式,文件名是Hyper-V.cmd,点击保存。
然后右击该文件以管理员身份运行,等待命令执行,成功后输入Y重启电脑。
依次点击开始—设置—应用—可选功能—更多windows功能,找到“Hyper-V”,勾选上,再找到“Virtual Machine Platform”勾选。(此处就是“虚拟机平台”英语含义)
2.2 https://cloud.tsinghua.edu.cn/d/df482a15afb64dfeaff8/ 下载fastgithub压缩包,选择win版本,解压缩后双击使用。界面如下
3. 下载wsl
wsl --install --web-download
多试几次,卡住了就ctrl+C退出