wsl2中的ubuntu使用systemctl报错问题

显示如下错误:System has not been booted with systemd as init system (PID 1). Can't operate

原因在于wsl中的ubuntu不完整,手动安装systemctl貌似也不好用,可以使用等同的sysvinit命令

替换关系如下:

wsl2中的ubuntu使用systemctl报错问题_第1张图片

 

你可能感兴趣的:(ubuntu,linux,运维)