systemctl: command not found on ubuntu 16.04












20














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?










share|improve this question
























  • Try this on terminal: dpkg-query -S /bin/systemctl .
    – Liso
    Dec 21 '17 at 8:11












  • I tried this and i got "dpkg-query: no path found matching pattern /bin/systemctl."
    – Vignesh Ramamoorthy
    Dec 21 '17 at 8:23






  • 2




    @VigneshRamamoorthy: What does this command give you whereis systemctl?
    – Saurav Kumar
    Dec 21 '17 at 9:01










  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:09










  • whereis systemctl command gives "systemctl:"@saurav kumar
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:54
















20














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?










share|improve this question
























  • Try this on terminal: dpkg-query -S /bin/systemctl .
    – Liso
    Dec 21 '17 at 8:11












  • I tried this and i got "dpkg-query: no path found matching pattern /bin/systemctl."
    – Vignesh Ramamoorthy
    Dec 21 '17 at 8:23






  • 2




    @VigneshRamamoorthy: What does this command give you whereis systemctl?
    – Saurav Kumar
    Dec 21 '17 at 9:01










  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:09










  • whereis systemctl command gives "systemctl:"@saurav kumar
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:54














20












20








20


3





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?










share|improve this question















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?







16.04 server mongodb linux-headers






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 21 '17 at 8:09









Liso

6,33721842




6,33721842










asked Dec 21 '17 at 8:02









Vignesh Ramamoorthy

106113




106113












  • Try this on terminal: dpkg-query -S /bin/systemctl .
    – Liso
    Dec 21 '17 at 8:11












  • I tried this and i got "dpkg-query: no path found matching pattern /bin/systemctl."
    – Vignesh Ramamoorthy
    Dec 21 '17 at 8:23






  • 2




    @VigneshRamamoorthy: What does this command give you whereis systemctl?
    – Saurav Kumar
    Dec 21 '17 at 9:01










  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:09










  • whereis systemctl command gives "systemctl:"@saurav kumar
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:54


















  • Try this on terminal: dpkg-query -S /bin/systemctl .
    – Liso
    Dec 21 '17 at 8:11












  • I tried this and i got "dpkg-query: no path found matching pattern /bin/systemctl."
    – Vignesh Ramamoorthy
    Dec 21 '17 at 8:23






  • 2




    @VigneshRamamoorthy: What does this command give you whereis systemctl?
    – Saurav Kumar
    Dec 21 '17 at 9:01










  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:09










  • whereis systemctl command gives "systemctl:"@saurav kumar
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:54
















Try this on terminal: dpkg-query -S /bin/systemctl .
– Liso
Dec 21 '17 at 8:11






Try this on terminal: dpkg-query -S /bin/systemctl .
– Liso
Dec 21 '17 at 8:11














I tried this and i got "dpkg-query: no path found matching pattern /bin/systemctl."
– Vignesh Ramamoorthy
Dec 21 '17 at 8:23




I tried this and i got "dpkg-query: no path found matching pattern /bin/systemctl."
– Vignesh Ramamoorthy
Dec 21 '17 at 8:23




2




2




@VigneshRamamoorthy: What does this command give you whereis systemctl?
– Saurav Kumar
Dec 21 '17 at 9:01




@VigneshRamamoorthy: What does this command give you whereis systemctl?
– Saurav Kumar
Dec 21 '17 at 9:01












I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
– Vignesh Ramamoorthy
Dec 21 '17 at 10:09




I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
– Vignesh Ramamoorthy
Dec 21 '17 at 10:09












whereis systemctl command gives "systemctl:"@saurav kumar
– Vignesh Ramamoorthy
Dec 21 '17 at 10:54




whereis systemctl command gives "systemctl:"@saurav kumar
– Vignesh Ramamoorthy
Dec 21 '17 at 10:54










1 Answer
1






active

oldest

votes


















28















  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.






share|improve this answer























  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:04








  • 1




    What is the output of sudo apt-cache search systemd?
    – M. Dm.
    Dec 21 '17 at 10:31










  • This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:52






  • 1




    Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
    – M. Dm.
    Dec 22 '17 at 9:41










  • Please fix your Answer: apt-get install --reinstall systemd
    – Marco
    Dec 12 at 21:30











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f988266%2fsystemctl-command-not-found-on-ubuntu-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









28















  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.






share|improve this answer























  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:04








  • 1




    What is the output of sudo apt-cache search systemd?
    – M. Dm.
    Dec 21 '17 at 10:31










  • This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:52






  • 1




    Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
    – M. Dm.
    Dec 22 '17 at 9:41










  • Please fix your Answer: apt-get install --reinstall systemd
    – Marco
    Dec 12 at 21:30
















28















  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.






share|improve this answer























  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:04








  • 1




    What is the output of sudo apt-cache search systemd?
    – M. Dm.
    Dec 21 '17 at 10:31










  • This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:52






  • 1




    Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
    – M. Dm.
    Dec 22 '17 at 9:41










  • Please fix your Answer: apt-get install --reinstall systemd
    – Marco
    Dec 12 at 21:30














28












28








28







  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.






share|improve this answer















  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.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 14 at 14:24

























answered Dec 21 '17 at 8:14









M. Dm.

71428




71428












  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:04








  • 1




    What is the output of sudo apt-cache search systemd?
    – M. Dm.
    Dec 21 '17 at 10:31










  • This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:52






  • 1




    Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
    – M. Dm.
    Dec 22 '17 at 9:41










  • Please fix your Answer: apt-get install --reinstall systemd
    – Marco
    Dec 12 at 21:30


















  • I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:04








  • 1




    What is the output of sudo apt-cache search systemd?
    – M. Dm.
    Dec 21 '17 at 10:31










  • This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
    – Vignesh Ramamoorthy
    Dec 21 '17 at 10:52






  • 1




    Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
    – M. Dm.
    Dec 22 '17 at 9:41










  • Please fix your Answer: apt-get install --reinstall systemd
    – Marco
    Dec 12 at 21:30
















I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
– Vignesh Ramamoorthy
Dec 21 '17 at 10:04






I tried to install systemd package,i got the error "Package systemd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" E: Package 'systemd' has no installation candidate
– Vignesh Ramamoorthy
Dec 21 '17 at 10:04






1




1




What is the output of sudo apt-cache search systemd?
– M. Dm.
Dec 21 '17 at 10:31




What is the output of sudo apt-cache search systemd?
– M. Dm.
Dec 21 '17 at 10:31












This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
– Vignesh Ramamoorthy
Dec 21 '17 at 10:52




This is output of sudo apt-cache search systemd "live-config-systemd - Debian Live - System Configuration Scripts (systemd backend) nagios-plugins-contrib - Plugins for nagios compatible monitoring systems"
– Vignesh Ramamoorthy
Dec 21 '17 at 10:52




1




1




Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
– M. Dm.
Dec 22 '17 at 9:41




Did you run sudo apt-get update after the system was installed? I think you have some problem with your repositories.
– M. Dm.
Dec 22 '17 at 9:41












Please fix your Answer: apt-get install --reinstall systemd
– Marco
Dec 12 at 21:30




Please fix your Answer: apt-get install --reinstall systemd
– Marco
Dec 12 at 21:30


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f988266%2fsystemctl-command-not-found-on-ubuntu-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b