LoginSignup
3
1

WSLではsudo rebootしてはいけない

Last updated at Posted at 2024-01-08
  • WSL2のUbuntuでsudo rebootした。
  • PowerShellからwsl -lなどのコマンドを打っても反応しなくなった。
  • コントロールパネル>プログラム>プログラムと機能>Windowsの機能の有効化または無効化 をチェックすると、Linux用Windowsサブシステムのチェックボックスが消えている。。。
  • チェックボックスを入れ直し、再起動するとWSLが復活した!
  • WSLを再起動したい場合は、PowerShellからwsl --shutdownを行う
3
1
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
3
1