[WSL]Windows Subsystem for Linux
2018, Dec 06
使用MicrosoftStore 安裝 Ubuntu 子系統
Windows10 組建大於 14393時 可安裝 Ubuntu 子系統
查看組建版本
開始 -> 設定 -> 系統 -> 關於
至 Michosoft Store 尋找 ubuntu -> 安裝
出現
error:0x8007019e
Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again. See https://aka.ms/wslinstall for details. Press any key to continue...
原因:未安裝 Windows子系統支持
1.Win + x, 選擇Windows PowerShell(管理員)
2.輸入:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3.Enter,輸入Y,重新啟動!
4.重新打開已經安裝的子系統,等幾分鐘,輸入帳號和密碼,完成。