【已解决】This update only applies to machines with the windows Subsytem for Linux 怎么办

今天在安装docker的时候遇到一个问题
wsl安装时显示This update only applies to machines with the windows Subsytem for Linux
在网上看到了好多方案,只有一个方案有用
新建一个文本文档,编辑一下内容

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

保存为bat后缀
最重要的一点:管理员运行
就解决了
问题可能是因为没有正确开启 Hyper-v
解决方案来自这个链接

Logo

纵情码海钱塘涌,杭州开发者创新动! 属于杭州的开发者社区!致力于为杭州地区的开发者提供学习、合作和成长的机会;同时也为企业交流招聘提供舞台!

更多推荐