我在 Windows 11 上使用 WSL2。我想systemctl在 Ubuntu 20.04 中运行该命令,但它给了我以下错误:
System has not been booted with systemd as init system (PID 1).
Can't operate. Failed to connect to bus: Host is down
Run Code Online (Sandbox Code Playgroud)
我该如何修复它?
我是 WSL2-Ubuntu 的新手。我的电脑已经预装了20.04版本,但是我看到已经有22.04版本了,所以我想知道是否值得购买新版本。如果是这样,我该如何升级?
当我们想以 root 身份运行程序时,我们使用sudo, gksu,gksudo等等。现在我的问题是我们如何在终端中以 root 用户身份运行终端?
我尝试使用gksudo terminal,gksu terminal但没有任何反应。通过运行sudo terminal我得到错误sudo: terminal: command not found。