1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【エラー】WSL2をインストールできない

Posted at

エラーが起こったコード

PowerShell
wsl --install

エラー内容

PowerShell
Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS/HCS_E_SERVICE_NOT_AVAILABLE

エラーの意味

これは「WSL用の仮想マシン(VM)を作るサービスが動いていません」という意味です。

##解決策

手順1 PowerShellを管理者として実行

スタート →「PowerShell」と検索
**「管理者として実行」**を選ぶ

手順2 コマンドを1つずつ入力

PowerShell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
PowerShell
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

手順3 再起動する

手順4 再起動後に再び以下を実行

PowerShell
wsl --install
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?