- Arch Linux
- #2 2013-05-27 00:59:22
- Re: systemctl reboot -vs- reboot . command not found [SOLVED]
- #3 2013-05-27 02:18:51
- Re: systemctl reboot -vs- reboot . command not found [SOLVED]
- Нет команд reboot и shutdown как вылечить?
- Debian User Forums
- not found SHUTDOWN — POWEROFF — Halt[SOLVED]
- not found SHUTDOWN — POWEROFF — Halt[SOLVED]
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- Re: not found SHUTDOWN — POWEROFF — Halt
- reboot: command not found
- reboot Command Examples
Arch Linux
On some more recent Arch installs, I noticed the «reboot» rather than «systemctl reboot» command worked. I was curious, but not enough to check out as to why until today.
Come to find out the core repo package systemd-sysvcompat was not installed and was the culprit. I have been using the following appended on the kernel line.
# (0) Arch Linux
title Arch Linux «systemd»
root (hd0,5)
kernel /boot/vmlinuz-linux root=/dev/sda6 ro
initrd /boot/initramfs-linux.img
I removed «init=/usr/lib/systemd/systemd» after installing systemd-sysvcompat to restore the «reboot» command function.
Just passing this on in case anyone else cares or has noticed.
Check out my website for info on the Arch Linux Installer
#2 2013-05-27 00:59:22
Re: systemctl reboot -vs- reboot . command not found [SOLVED]
I had no idea those commands had been removed; turns out I have systemd-sysvcompat installed still too. I’m happy for it to stay though lest the next version of systemd changes the command to «i’d-like-you-now-please-to reboot»
#3 2013-05-27 02:18:51
Re: systemctl reboot -vs- reboot . command not found [SOLVED]
Yeah, the systemd-sysvcompat package is built from the actualy sytemd PKGBUILD. But those symlinks were separated out to facilitate the ability for users to choose whether or not they want to have systemd as well as another init system on their machines. I imagine this was originally because there was the move from SysV initscripts, which required that systemd be moved to in a couple of steps, hence the required ability to have both on your system simutaneously. So ultimately, they are intended by upstream to be a part of the systemd package. no actual removal here.
Нет команд reboot и shutdown как вылечить?
Установил debina stretch на команды reboot и shutdown не реагирует. not found.
попробуй с sudo запустить
sudo: /sbin/shutdown: command not found
systemctl reboot systemctl halt etc
Failed to set wall message, ignoring: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to reboot system via logind: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to start reboot.target: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status reboot.target’ for details.
$ dpkg -S /sbin/shutdown systemd-sysv: /sbin/shutdown
В этом пакете. reboot там же
Вот это спасибо! получилось!
Зря дебину поставил, убунтину ставь
Ну и будет у него в убунте тот же результат от непривилегированного пользователя. Знаток.
И когда в убунте успели выпилить reboot? Знаток. Убунта бы ему сказала что прав нет, а не команду не знаю и не ту хрень что systemctl выдал.
sudo reboot sudo shutdown
Ну запусти reboot от пользователя.
В дебиане (с пакетом command-not-found) выдаёт
Command 'reboot' is available in '/sbin/reboot' The command could not be located because '/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative priviledges associated with your user account. reboot: command not found
Т.е. про права ни слова, потому что sbin не входит в path обычного пользователя.
Где я такое сказал? Ты хочешь сказать, что в дебиане выпилили reboot? Или ты просто не знаешь, что такое sudo и парочка свистоперделок вокруг него, которые дают подсказки о пакетах, к которым ты не имеешь прав.
А, да. Ты же круть-знаток и не в курсе, что такое права в линуксах.
Ты обосрался. Признай и смирись.
Ты сначала изучи предмет как следует. В Ubuntu 16.04 и более позних действительно выпилены reboot, shutdown и некоторые другие, теперь
# ls -l /sbin/reboot /sbin/shutdown lrwxrwxrwx 1 root root 14 фев 15 2017 /sbin/reboot -> /bin/systemctl lrwxrwxrwx 1 root root 14 фев 15 2017 /sbin/shutdown -> /bin/systemctl
# dpkg -S /sbin/shutdown /sbin/reboot systemd-sysv: /sbin/shutdown systemd-sysv: /sbin/reboot
user@ubuntu:~$ uname -a Linux ubuntu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux user@ubuntu:~$ id uid=1000(user) gid=1000(user) groups=1000(user),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),115(lpadmin),116(sambashare) user@ubuntu:~$ reboot Failed to set wall message, ignoring: Interactive authentication required. Failed to reboot system via logind: Interactive authentication required. Failed to start reboot.target: Interactive authentication required. See system logs and 'systemctl status reboot.target' for details. Failed to open /dev/initctl: Permission denied Failed to talk to init daemon.
Это как бы подсказка, не? «This is most likely caused by the lack of administrative priviledges associated with your user account.»
Debian User Forums
not found SHUTDOWN — POWEROFF — Halt[SOLVED]
not found SHUTDOWN — POWEROFF — Halt[SOLVED]
#1 Post by Thiago » 2019-07-26 21:57
I installed Debian 10, GNOME, by DVD media, well I found some difficulties, where it does not find basic command to shut down or reboot (shutdown, poweroff, halt), I was wanting to use package commands (net-tools), I I know this package has not been in Debian since previous versions, the earlier it was possible to download, but now it cannot download too (apt install net-tools).
Could you tell me what it could be?
ruwolf Posts: 438 Joined: 2008-02-18 05:04 Location: Banovce nad Bebravou Has thanked: 3 times
Re: not found SHUTDOWN — POWEROFF — Halt
#2 Post by ruwolf » 2019-07-26 23:16
sunrat Administrator
Posts: 5534 Joined: 2006-08-29 09:12 Location: Melbourne, Australia Has thanked: 89 times Been thanked: 305 times
Re: not found SHUTDOWN — POWEROFF — Halt
#3 Post by sunrat » 2019-07-27 01:29
I don’t know anything about Gnome, but net-tools is in the repo so something is wrong with your packaging setup if you can’t install it with
“ computer users can be divided into 2 categories:
Those who have lost data
. and those who have not lost data YET ” Remember to BACKUP!
Re: not found SHUTDOWN — POWEROFF — Halt
#4 Post by theblueplll » 2019-07-27 05:11
Thiago wrote: I was wanting to use package commands (net-tools), I I know this package has not been in Debian since previous versions, the earlier it was possible to download, but now it cannot download too (apt install net-tools).
Could you tell me what it could be?
And how do you «know» this if you have used Debian before?
I have 3 machines with Debian installed 1 Stretch and 2 Buster and that package is installed in all 3.
Did you possibly not give apt root access? If you don’t it isn’t going to install anything.
Those other 3 commands also need root access or they will say command not found.
Head_on_a_Stick Posts: 13942 Joined: 2014-06-01 17:46 Location: /dev/chair Has thanked: 53 times Been thanked: 82 times
Re: not found SHUTDOWN — POWEROFF — Halt
#5 Post by Head_on_a_Stick » 2019-07-27 11:37
E485:~$ which poweroff E485:~1$ sudo which poweroff /usr/sbin/poweroff E485:~$ ls -l $(sudo which poweroff) lrwxrwxrwx 1 root root 14 May 24 21:58 /usr/sbin/poweroff -> /bin/systemctl E485:~$
I think you need polkit to use them though.
Why don’t you just use the graphical logout application provided by GNOME? Or the power button, which is what I use.
Il semble que la perfection soit atteinte non quand il n’y a plus rien à ajouter, mais quand il n’y a plus rien à retrancher.
Re: not found SHUTDOWN — POWEROFF — Halt
#6 Post by sickpig » 2019-07-27 11:49
Re: not found SHUTDOWN — POWEROFF — Halt
#7 Post by Thiago » 2019-07-29 13:10
This was the only command that worked, I had already tested.
however only the poweroff command does not work.
Re: not found SHUTDOWN — POWEROFF — Halt
#8 Post by L_V » 2019-07-29 13:24
All power on/off operations are managed by systemd.
/sbin/poweroff is same as ‘ systemctl poweroff ‘
ls -l1 /sbin/halt /sbin/poweroff /sbin/reboot /sbin/shutdown /sbin/halt -> /bin/systemctl /sbin/poweroff -> /bin/systemctl /sbin/reboot -> /bin/systemctl /sbin/shutdown -> /bin/systemctl
Re: not found SHUTDOWN — POWEROFF — Halt
#9 Post by Thiago » 2019-07-29 13:28
sunrat wrote: I don’t know anything about Gnome, but net-tools is in the repo so something is wrong with your packaging setup if you can’t install it with
Hello sunrat,
My area is network, so I am looking for this package, referring to other versions, yes already used other versions of Debian, which is not installed anymore I had no problem to install, and it is not news that this package is no longer kept entered as deprecated, and hasn’t been updated for some time, and he has replacement however I like his commands.
test done
root @ debian10: / home / thiago # dpkg -l | grep net-tools
root @ debian10: / home / thiago # apt-cache search net-tools
iproute2 — networking and traffic control tools
root @ debian10: / home / thiago # apt install net-tools
Reading package lists . Ready
Building dependency tree
Reading status info . Ready
E: Unable to find net-tools package
root @ debian10: / home / thiago #
Re: not found SHUTDOWN — POWEROFF — Halt
#10 Post by Thiago » 2019-07-29 13:35
Thiago wrote: I was wanting to use package commands (net-tools), I I know this package has not been in Debian since previous versions, the earlier it was possible to download, but now it cannot download too (apt install net-tools).
Could you tell me what it could be?
And how do you «know» this if you have used Debian before?
Yes, not only other versions of Debian, but other Distro.
https://wiki.linuxfoundation.org/networking/net-tools
I have 3 machines with Debian installed 1 Stretch and 2 Buster and that package is installed in all 3.
root@debian10:/home/thiago# dpkg -l | grep net-tools
root@debian10:/home/thiago# apt-cache search net-tools
iproute2 — networking and traffic control tools
root@debian10:/home/thiago# apt install net-tools
Lendo listas de pacotes. Pronto
Construindo árvore de dependências
Lendo informação de estado. Pronto
E: Impossível encontrar o pacote net-tools
root@debian10:/home/thiago#
Did you possibly not give apt root access? If you don’t it isn’t going to install anything.
As you can see from the previous answer, I am root.
reboot: command not found
The “reboot” command is a system administration utility used to restart a computer’s operating system. It is a command-line tool that can be executed from a terminal or console session.
When the “reboot” command is executed, the system will shut down all running processes, terminate all active user sessions, and then perform a system restart. This allows the operating system to reload its components, apply any updates or changes that may have been made, and prepare for a fresh start.
It’s important to note that executing the “reboot” command will result in the immediate termination of all active processes, which can result in data loss or corruption if any unsaved work is present. Therefore, it is recommended to save all open files and close any running applications before issuing the reboot command.
Additionally, the “reboot” command should be used with caution as it can potentially cause system damage or instability if executed improperly or in an inappropriate context. It is generally recommended that only system administrators or those with appropriate privileges should use the “reboot” command.
If you encounter the below error while running the command reboot:
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install sysvinit |
Ubuntu | apt-get install upstart-sysv |
Arch Linux | pacman -S systemd-sysvcompat |
Kali Linux | apt-get install runit-init |
CentOS | yum install usermode |
Fedora | dnf install systemd |
Raspbian | apt-get install upstart |
reboot Command Examples
2. Power off the system (same as `poweroff`):
3. Halt the system (same as `halt`):
4. Reboot immediately without contacting the system manager:
5. Write the wtmp shutdown entry without rebooting the system: