WSL 啟用後,開始下載安裝 Ubuntu,首次啟動出現以下錯誤:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800701bc
Error: 0x800701bc WSL 2 ???????????????????? visit https://aka.ms/wsl2kernel
Press any key to continue...
解決方式?ChatGPT 表示:
這個錯誤可能是由於 WSL 2 核心缺失或損壞所致。您可以嘗試以下步驟來解決問題:
- 瀏覽 https://aka.ms/wsl2kernel 並下載 WSL 2 核心更新包。
- 安裝更新包後,重新啟動電腦。
- 打開 Windows 功能並確認已啟用“虛擬機器平台”和“Windows 子系統適用於 Linux”功能。
- 打開 PowerShell 以系統管理員身份運行,然後執行以下命令:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- 重新啟動電腦。
- 下載和安裝最新版本的 WSL 發行版。
如果以上步驟無法解決問題,您可以嘗試解除和重新安裝 WSL。請注意,這樣做可能會刪除您在 WSL 中安裝的所有應用程式和資料,因此請務必提前備份重要資料。