Suddenly, shutdown command can't be found anymore The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!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

Did God make two great lights or did He make the great light two?

Do warforged have souls?

What can I do if neighbor is blocking my solar panels intentionally?

How to delete random line from file using Unix command?

Semisimplicity of the category of coherent sheaves?

Are spiders unable to hurt humans, especially very small spiders?

What aspect of planet Earth must be changed to prevent the industrial revolution?

First use of “packing” as in carrying a gun

What information about me do stores get via my credit card?

Did the new image of black hole confirm the general theory of relativity?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

Python - Fishing Simulator

How to prevent selfdestruct from another contract

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

When did F become S? Why?

Derivation tree not rendering

how can a perfect fourth interval be considered either consonant or dissonant?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

How did passengers keep warm on sail ships?

How are presidential pardons supposed to be used?

Simulating Exploding Dice

Empty set is subset of every set? If yes, why that...

Working through the single responsibility principle (SRP) in Python when calls are expensive

Why can't devices on different VLANs, but on the same subnet, communicate?



Suddenly, shutdown command can't be found anymore



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!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




















          2 Answers
          2






          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























            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

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            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,923512




            2,923512












            • 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



























                    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

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos