Systemctl: Command Not Found on Ubuntu 16.04
When I Tried to Install Rocketchat in Ubuntu 16.04 in Command Prompt I Enter. Systemctl Enable Mongod After That I Got the Issue. Systemctl: Command Not Found...
when I tried to install RocketChat in Ubuntu 16.04
In Command Prompt I enter.
systemctl enable mongod
After That I got The issue.
systemctl: command not found
How to solve this?
1 Answer
- First you need to check if systemd package is installed -
sudo dpkg -l | grep systemd. - If not then install it by hands
sudo apt-get install systemd. But if it does it might be damaged, so you may try to reinstall itsudo apt-get install --reinstall systemd. - If the package is installed, even after reinstallation it does not work, list the full path of the files inside this package
sudo dpkg -L systemd. Maybe binary files are located in a directory that is not included into $PATH variable.