当我尝试在Ubuntu 16.04上安装RocketChat时,在命令提示符中输入。
之后我遇到了这个问题。
怎么解决这个问题?
systemctl enable mongod
之后我遇到了这个问题。
systemctl: command not found
怎么解决这个问题?
systemctl enable mongod
systemctl: command not found
sudo dpkg -l | grep systemd
。sudo apt-get install systemd
。但如果已经安装了,可能会损坏,所以您可以尝试重新安装它 sudo apt-get install --reinstall systemd
。sudo dpkg -L systemd
。也许二进制文件位于未包含在$PATH变量中的目录中。sudo apt-cache search systemd
的输出是什么? - M. Dm.sudo apt-get update
吗?我觉得你的软件源有些问题。 - M. Dm.apt-get install --reinstall systemd
- Marcoapt-get install --reinstall systemd
,然后查看 dpkg -L systemd
中的任何路径是否在你的 echo $PATH
中。 - pegasuspect
dpkg-query -S /bin/systemctl
。 - Lisowhereis systemctl
会给你什么结果? - Saurav Kumarcat /etc/os-release
和ls -al $(which init)
的输出。 - N0rbert