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

How to solve this?

7
  1. First you need to check if systemd package is installed - sudo dpkg -l | grep systemd.
  2. 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 it sudo apt-get install --reinstall systemd.
  3. 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.
6
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest