前言
Windows 10下支持安裝Ubuntu 18.04 LTS當然要試下了
步驟
安裝應用程序
-
打開應用商店
-
搜索並下載Ubuntu 18.0.4 LTS
啟動服務
遇到了第一個報錯:
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功能->適用於Linux的Windows子系統
-
設置->更新和安全->開發者選項->啟用開發人員模式
-
重啟電腦
正常使用
- 輸入當前用戶的密碼
輸入當前用戶的密碼
$sudo -i
重新設置root的密碼
#passwd
- 愉快使用