LoginSignup
3
2

More than 3 years have passed since last update.

Windows に WSL を 有効せずに 入れた とき に 出た エラー の 解決法

Last updated at Posted at 2019-08-22

目的

  • うっかりしてWSLを有効にせずにUbuntu18.04を入れたときに出たエラーの解決法を知る。

症状と解決法

下記画像のようなエラーが出た

~エラー文~

```
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...
```

WSL_01.png

  1. Windowsのスタートボタンを右クリック→アプリと機能をクリックすると下記画面が開く
    WSL_02.png

  2. プログラムと機能をクリック
    WSL_03.png

  3. Windowsの機能の有効化または無効化をクリック
    WSL_04.png

  4. windows Subsystem for LinuxにチェックをいれてOK
    WSL_05.png

  5. PCを再起動する
    WSL_06.png

  6. もう一度Ubuntuを立ち上げる

  7. 画像のようなメッセージが出るので待つ
    WSL_07.png

  8. Ubuntuでのユーザ名を入力
    WSL_08.png

  9. PWを入力エンター

  10. PWを入力エンター

  11. 画像みたいになればOK
    WSL_09.png

原因

  • 目的にもすでに書いてあるが今回のエラーの原因は、WSLを有効にせずにMicrosoft storeでUbuntuをインストールしてしまったことだった。
3
2
1

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
3
2