반응형

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

 

sudo systemctl 명령 실행할 때 제목과 관련된 에러가 발생하면 아래 명령들을 순서대로 적용하자.

 

sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig

sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target

exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME

snap version

 

 

반응형

+ Recent posts