When using WSL in the morning, an error was reported:
root@PC0:/home/zhang# systemctl start ssh.service
System has not been booted with systemd as init system (PID 1). Can't operate.
This error report is easy to solve. The solution is to use Service code>:
root@PC0:/home/zhang# service ssh status
* sshd is running
Then I try to shut down:
root@sidanzhang-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.
True pit, shut down all report wrong.
According to this answer: rebooting Ubuntu on windows without rebooting windows?- super user
the solution is to open a new window of PowerShell and run the command:
wsl --shutdown
If your win10 system has not been updated, the administrator can run the following command:
net stop LxssManager
Read More:
- Failed to talk to init daemon appears during reboot
- Modify the tomcat configuration in docker, causing javaagent to report agent library failed to init instrument
- The first day of OpenGL [vs2017 + OpenGL environment configuration]
- Problems in the second day of Android learning
- Solution to the failure of ROS noetic initialization (rosdep init)
- Error starting day: SELinux is not supported with the overlay 2
- OpenLDAP main: TLS init def ctx failed: -1
- Ultimate solution to error reporting of sudo rosdep init of ROS
- Linux_ day07_ 05_ Configure common add, delete, modify and query commands in network
- PHP error: call to undefined function curl_ init() window
- insmod: init_module ‘hello.ko’ failed (Exec format error)
- RT-thread assertion failed at function:rt_application_init
- An error is reported for the new Android project. Rejecting re init on previously failed
- appear pygame.error : font not initialized problem, remember to check whether the program calls pygame.init ()
- RuntimeError: Default process group has not been initialized, please make sure to call init_process_
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- Docker run failed with the following error in logs, standard_ init_ linux.go:211 : exec user process caused “exec format error“
- XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_InterfaceNotFound:
- XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_PathRegistryNotFound
- Troubleshooting of ROS rosdep init / update