エラーを解決します:initデーモンとの通信に失敗しました。
Solve Error Failed Talk Init Daemon
間違ったレポートを使用する場合のWSLの朝:
root@xxxxxPC0:/home/zhang# systemctl start ssh.service System has not been booted with systemd as init system (PID 1). Can't operate.
このエラーは解決するのが良いです、解決策は使用することですservice
:
root@xxxxxPC0:/home/zhang# service ssh status * sshd is running
それから私はシャットダウンしようとします:
root@xxxxx-PC0:/home/zhang# poweroff System has not been booted with systemd as init system (PID 1). Can't operate. Failed to talk to init daemon.
本当にピット、放り出されています。
この答えによると: Windowsを再起動せずにWindowsでUbuntuを再起動しますか? -スーパーユーザー
解決策は、新しいウィンドウのPowerShellを開き、次のコマンドを実行することです。
wsl --shutdown
コマンドを実行するためのwin10システム管理者権限を更新していない場合:
net stop LxssManager