Windows Server 2019上无法安装WSL发行版的问题求助
Windows Server 2019上无法安装WSL发行版的问题求助
我在Windows Server 2019上通过以下命令启用了WSL功能:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
执行完成后我重启了服务器,看起来整个过程是成功的。
但现在wsl命令虽然能运行,却好像功能不完整——标准的命令行选项都没法用。比如我尝试执行:wsl --install -d Ubuntu
结果直接报错:
Invalid command line option: --install
我还试过手动下载发行包,用这个命令:curl.exe -L -o ubuntu-2004.appx https://aka.ms/wslubuntu2004
接着用Add-AppxPackage安装了这个包,但安装完成后运行wsl仍然提示:
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
我实在搞不懂哪里出问题了,我的最终需求其实只是想用rsync而已,有没有大佬能指点一下我漏掉了什么步骤?
备注:内容来源于stack exchange,提问作者Coder1




