Naoki Aoyama
naa0yama's Blog

Follow

naa0yama's Blog

Follow

WSL2 をシャットダウンする方法

Naoki Aoyama's photo
Naoki Aoyama
·Oct 18, 2020·

1 min read

WSL1/2 では、 sudo shutdown now ではできないため調べた

$ sudo shutdown now
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to talk to init daemon.

cmd/powershell で wsl コマンドで対象のディストーションを指定してやべればできるみたい

> wsl -t Ubuntu-18.04
 
Share this