問題描述
如何讓 WSL Ubuntu 1804 明白在 Windows 中啟用了 WSL? (How to make WSL Ubuntu 1804 understand that WSL is enabled in Windows?)
我嘗試在 Windows 10 上安裝 WSL,由於我沒有 Microsoft Store,我嘗試通過 網址。我嘗試使用 本手冊,我得到了一個問題。
首先,奇怪的是,當我嘗試從 URL,我實際上是下載 .zip 文件。然後我將它解壓到桌面並嘗試運行 ubuntu.exe(在設置中啟用了適用於 Linux 的 Windows 子系統)。我收到一個錯誤 Linux 可選組件的 Windows 子系統未啟用。請啟用它並重試。有關詳細信息,請參閱 https://aka.ms/wslinstall。
我做錯了什麼?如果有人幫助我解決這個問題,那對我很有幫助。
參考解法
方法 1:
Before being able to use WSL you need to enable the "Windows Subsystem for Linux" optional feature. You can enable it by running:
dism.exe /online /enable‑feature /featurename:Microsoft‑Windows‑Subsystem‑Linux /all /norestart
More installation instructions can be found here.
(by Сергей Лоптев、Ben Smith)
參考文件