Suddenly, shutdown command can't be found anymoreDebian package installation problems - Bus errors, dpkg...

extract characters between two commas?

Is there a name of the flying bionic bird?

Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore

Does bootstrapped regression allow for inference?

Finding files for which a command fails

Is this food a bread or a loaf?

LWC and complex parameters

What happens when a metallic dragon and a chromatic dragon mate?

What is it called when one voice type sings a 'solo'?

Does the average primeness of natural numbers tend to zero?

Email Account under attack (really) - anything I can do?

What causes the sudden spool-up sound from an F-16 when enabling afterburner?

aging parents with no investments

How can I fix this gap between bookcases I made?

Re-submission of rejected manuscript without informing co-authors

Symmetry in quantum mechanics

Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Where else does the Shulchan Aruch quote an authority by name?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Extreme, but not acceptable situation and I can't start the work tomorrow morning

Calculate Levenshtein distance between two strings in Python

Where to refill my bottle in India?

"My colleague's body is amazing"



Suddenly, shutdown command can't be found anymore


Debian package installation problems - Bus errors, dpkg post-installation exit status 135Anyone else experiencing high rates of Linux server crashes during a leap second day?Can't install anymore MySQL on debian after deletion of various foldersUbuntu samba/raid server shutdown failsMySQL from Deb changing configuration after installing perl packages?removed files from /tmp/ directory - can't login anymoreapt-get dist-upgrade wants to install x11 on a router?docker.io package reports missing only on EC2debian wheezy requiring libc6 >= 2.14Sending graceful shutdown via AMT to intel NUC






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







3















I logged in to my Debian 7 server, did an upgrade using apt and wanted to shutdown+reboot using shutdown -r now as i did a lot of times before. This time, the shutdown command can't be found anymore. I've already read somewhere that i can try it with the whole path /sbin/shutdown, but the programm isn't there, too. I also can't find the reboot command anywhere.



What went wrong? What can i do to restore the shutdown command?










share|improve this question





























    3















    I logged in to my Debian 7 server, did an upgrade using apt and wanted to shutdown+reboot using shutdown -r now as i did a lot of times before. This time, the shutdown command can't be found anymore. I've already read somewhere that i can try it with the whole path /sbin/shutdown, but the programm isn't there, too. I also can't find the reboot command anywhere.



    What went wrong? What can i do to restore the shutdown command?










    share|improve this question

























      3












      3








      3


      4






      I logged in to my Debian 7 server, did an upgrade using apt and wanted to shutdown+reboot using shutdown -r now as i did a lot of times before. This time, the shutdown command can't be found anymore. I've already read somewhere that i can try it with the whole path /sbin/shutdown, but the programm isn't there, too. I also can't find the reboot command anywhere.



      What went wrong? What can i do to restore the shutdown command?










      share|improve this question














      I logged in to my Debian 7 server, did an upgrade using apt and wanted to shutdown+reboot using shutdown -r now as i did a lot of times before. This time, the shutdown command can't be found anymore. I've already read somewhere that i can try it with the whole path /sbin/shutdown, but the programm isn't there, too. I also can't find the reboot command anywhere.



      What went wrong? What can i do to restore the shutdown command?







      debian debian-wheezy shutdown






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 31 '14 at 14:58









      TheJeedTheJeed

      12117




      12117






















          3 Answers
          3






          active

          oldest

          votes


















          6














          $ dpkg -S /sbin/shutdown
          sysvinit-core: /sbin/shutdown


          You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed...



          EDIT:



          /sbin/shutdown should be available if you install the systemd-sysv package. It would be nice if systemd would recommend or even just suggest systemd-sysv.






          share|improve this answer


























          • You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

            – TheJeed
            Oct 31 '14 at 15:11











          • systemd breaking habits :(

            – Hrvoje Špoljar
            Oct 31 '14 at 15:12











          • @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

            – Håkan Lindqvist
            Oct 31 '14 at 15:13






          • 1





            Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

            – wurtel
            Oct 31 '14 at 15:47



















          3














          I found this post after an apt-get dist-upgrade from Debian stretch to Debian buster left me with no shutdown or reboot commands. I tried apt-get install systemd-sysv as suggested above and discovered it was already present.



          I was surprised to find that somehow my PATH had gotten mucked up and no longer
          included /sbin. So /sbin/reboot worked just fine.



          I answer here in case other folks run into this situation after an upgrade and become superstitious. The lack of similar concerns on the net suggests this is a rare occurrence. It is obvious that one should check one's path before concluding a command is missing. OTOH, I did a which reboot and got nothing. My goto tool failed me and so I missed the obvious.






          share|improve this answer































            0














            Dedian Buster (Gnome 3) command: $ whereis reboot





            share








            New contributor




            Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "2"
              };
              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%2fserverfault.com%2fquestions%2f641165%2fsuddenly-shutdown-command-cant-be-found-anymore%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              6














              $ dpkg -S /sbin/shutdown
              sysvinit-core: /sbin/shutdown


              You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed...



              EDIT:



              /sbin/shutdown should be available if you install the systemd-sysv package. It would be nice if systemd would recommend or even just suggest systemd-sysv.






              share|improve this answer


























              • You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

                – TheJeed
                Oct 31 '14 at 15:11











              • systemd breaking habits :(

                – Hrvoje Špoljar
                Oct 31 '14 at 15:12











              • @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

                – Håkan Lindqvist
                Oct 31 '14 at 15:13






              • 1





                Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

                – wurtel
                Oct 31 '14 at 15:47
















              6














              $ dpkg -S /sbin/shutdown
              sysvinit-core: /sbin/shutdown


              You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed...



              EDIT:



              /sbin/shutdown should be available if you install the systemd-sysv package. It would be nice if systemd would recommend or even just suggest systemd-sysv.






              share|improve this answer


























              • You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

                – TheJeed
                Oct 31 '14 at 15:11











              • systemd breaking habits :(

                – Hrvoje Špoljar
                Oct 31 '14 at 15:12











              • @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

                – Håkan Lindqvist
                Oct 31 '14 at 15:13






              • 1





                Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

                – wurtel
                Oct 31 '14 at 15:47














              6












              6








              6







              $ dpkg -S /sbin/shutdown
              sysvinit-core: /sbin/shutdown


              You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed...



              EDIT:



              /sbin/shutdown should be available if you install the systemd-sysv package. It would be nice if systemd would recommend or even just suggest systemd-sysv.






              share|improve this answer















              $ dpkg -S /sbin/shutdown
              sysvinit-core: /sbin/shutdown


              You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed...



              EDIT:



              /sbin/shutdown should be available if you install the systemd-sysv package. It would be nice if systemd would recommend or even just suggest systemd-sysv.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Oct 31 '14 at 15:50

























              answered Oct 31 '14 at 15:07









              wurtelwurtel

              2,853512




              2,853512













              • You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

                – TheJeed
                Oct 31 '14 at 15:11











              • systemd breaking habits :(

                – Hrvoje Špoljar
                Oct 31 '14 at 15:12











              • @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

                – Håkan Lindqvist
                Oct 31 '14 at 15:13






              • 1





                Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

                – wurtel
                Oct 31 '14 at 15:47



















              • You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

                – TheJeed
                Oct 31 '14 at 15:11











              • systemd breaking habits :(

                – Hrvoje Špoljar
                Oct 31 '14 at 15:12











              • @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

                – Håkan Lindqvist
                Oct 31 '14 at 15:13






              • 1





                Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

                – wurtel
                Oct 31 '14 at 15:47

















              You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

              – TheJeed
              Oct 31 '14 at 15:11





              You were right! I reinstalled systemd and I've got my shutdown command back where it belongs. Thanks a lot!

              – TheJeed
              Oct 31 '14 at 15:11













              systemd breaking habits :(

              – Hrvoje Špoljar
              Oct 31 '14 at 15:12





              systemd breaking habits :(

              – Hrvoje Špoljar
              Oct 31 '14 at 15:12













              @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

              – Håkan Lindqvist
              Oct 31 '14 at 15:13





              @wurtel As can be seen here the file /sbin/shutdown exists in sysvinit, systemd-sysv and upstart in Debian Wheezy.

              – Håkan Lindqvist
              Oct 31 '14 at 15:13




              1




              1





              Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

              – wurtel
              Oct 31 '14 at 15:47





              Ah, I apologize, I did search packages.debian.org first, but I think I was mentally grepping for something-systemd, not systemd-something. I'll edit my answer to reflect that.

              – wurtel
              Oct 31 '14 at 15:47













              3














              I found this post after an apt-get dist-upgrade from Debian stretch to Debian buster left me with no shutdown or reboot commands. I tried apt-get install systemd-sysv as suggested above and discovered it was already present.



              I was surprised to find that somehow my PATH had gotten mucked up and no longer
              included /sbin. So /sbin/reboot worked just fine.



              I answer here in case other folks run into this situation after an upgrade and become superstitious. The lack of similar concerns on the net suggests this is a rare occurrence. It is obvious that one should check one's path before concluding a command is missing. OTOH, I did a which reboot and got nothing. My goto tool failed me and so I missed the obvious.






              share|improve this answer




























                3














                I found this post after an apt-get dist-upgrade from Debian stretch to Debian buster left me with no shutdown or reboot commands. I tried apt-get install systemd-sysv as suggested above and discovered it was already present.



                I was surprised to find that somehow my PATH had gotten mucked up and no longer
                included /sbin. So /sbin/reboot worked just fine.



                I answer here in case other folks run into this situation after an upgrade and become superstitious. The lack of similar concerns on the net suggests this is a rare occurrence. It is obvious that one should check one's path before concluding a command is missing. OTOH, I did a which reboot and got nothing. My goto tool failed me and so I missed the obvious.






                share|improve this answer


























                  3












                  3








                  3







                  I found this post after an apt-get dist-upgrade from Debian stretch to Debian buster left me with no shutdown or reboot commands. I tried apt-get install systemd-sysv as suggested above and discovered it was already present.



                  I was surprised to find that somehow my PATH had gotten mucked up and no longer
                  included /sbin. So /sbin/reboot worked just fine.



                  I answer here in case other folks run into this situation after an upgrade and become superstitious. The lack of similar concerns on the net suggests this is a rare occurrence. It is obvious that one should check one's path before concluding a command is missing. OTOH, I did a which reboot and got nothing. My goto tool failed me and so I missed the obvious.






                  share|improve this answer













                  I found this post after an apt-get dist-upgrade from Debian stretch to Debian buster left me with no shutdown or reboot commands. I tried apt-get install systemd-sysv as suggested above and discovered it was already present.



                  I was surprised to find that somehow my PATH had gotten mucked up and no longer
                  included /sbin. So /sbin/reboot worked just fine.



                  I answer here in case other folks run into this situation after an upgrade and become superstitious. The lack of similar concerns on the net suggests this is a rare occurrence. It is obvious that one should check one's path before concluding a command is missing. OTOH, I did a which reboot and got nothing. My goto tool failed me and so I missed the obvious.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 13 '18 at 22:32









                  Richard SonnenfeldRichard Sonnenfeld

                  311




                  311























                      0














                      Dedian Buster (Gnome 3) command: $ whereis reboot





                      share








                      New contributor




                      Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        Dedian Buster (Gnome 3) command: $ whereis reboot





                        share








                        New contributor




                        Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          Dedian Buster (Gnome 3) command: $ whereis reboot





                          share








                          New contributor




                          Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          Dedian Buster (Gnome 3) command: $ whereis reboot






                          share








                          New contributor




                          Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          share


                          share






                          New contributor




                          Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 7 mins ago









                          MarcondesMarcondes

                          1




                          1




                          New contributor




                          Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Marcondes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Server Fault!


                              • 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%2fserverfault.com%2fquestions%2f641165%2fsuddenly-shutdown-command-cant-be-found-anymore%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

                              As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                              Список ссавців Італії Природоохоронні статуси | Список |...

                              Українські прізвища Зміст Історичні відомості |...