【已解决】This update only applies to machines with the windows Subsytem for Linux 怎么办
【已解决】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%servicingPackages*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
保存为bat后缀
最重要的一点:管理员运行
就解决了
问题可能是因为没有正确开启 Hyper-v
解决方案来自这个链接