19

System has not been booted with systemd as init system (PID 1). Can't operate....

 2 years ago
source link: https://www.oschina.net/question/2507499_2324530
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

System has not been booted with systemd as init system (PID 1). Can't operate. 问题怎么解决?

颖辉小居 发布于 今天 13:59

想用命令重启ubuntu的时候,出现下面错误,请问怎么解决,网上查了很多资料,别人遇到这个错误都是在执行 systemctl命令的时候,用SysV init的命令代替systemd即可。但是我没有用systemctl

root@DESKTOP-1U8UV73:~# reboot
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.
root@DESKTOP-1U8UV73:~# cat /etc/issue
Ubuntu 20.04.3 LTS \n \l

我是在win10中的WSL2下安装的ubuntu 20.04

root@DESKTOP-1U8UV73:~# ps -p 1 -o comm=
init

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK