WSL 独立安装
https://docs.microsoft.com/en-us/windows/wsl/install-manual
关键步骤
curl.exe -L -o ubuntu-2004.appx https://aka.ms/wslubuntu2004
Add-AppxPackage .\ubuntu-2004.appx
Protocol not supported
wsl2 使用nfttables ,所以需要转到 iptables-legacy
报错:
"WSL" Failed to initialize nft: Protocol not supported
解决:
wsl2 更新内核
wsl --update
转成iptables
~]# sudo update-alternatives --config iptables
There are 2 choices for the alternative iptables