Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
not found SHUTDOWN - POWEROFF - Halt[SOLVED]
not found SHUTDOWN - POWEROFF - Halt[SOLVED]
Hello,
I needed help!
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?
I needed help!
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?
Last edited by Thiago on 2019-07-29 20:03, edited 1 time in total.
- sunrat
- Administrator
- Posts: 6463
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 116 times
- Been thanked: 473 times
Re: not found SHUTDOWN - POWEROFF - Halt
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
https://packages.debian.org/buster/net-tools
Code: Select all
apt install net-tools
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Posts: 154
- Joined: 2019-04-29 01:17
- Been thanked: 2 times
Re: not found SHUTDOWN - POWEROFF - Halt
And how do you "know" this if you have used Debian before?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?
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: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: not found SHUTDOWN - POWEROFF - Halt
Code: Select all
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:~$
Why don't you just use the graphical logout application provided by GNOME? Or the power button, which is what I use.
deadbang
Re: not found SHUTDOWN - POWEROFF - Halt
Yes the problem is with gnome(year of linux desktop). try another DE. Or ruwolf's suggestion.Thiago wrote:Could you tell me what it could be?
Re: not found SHUTDOWN - POWEROFF - Halt
Hello,ruwolf wrote:And what about?Code: Select all
systemctl poweroff
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
All power on/off operations are managed by systemd.
/sbin/poweroff is same as 'systemctl poweroff'
/sbin/poweroff is same as 'systemctl poweroff'
Code: Select all
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
Hello sunrat,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 withhttps://packages.debian.org/buster/net-toolsCode: Select all
apt install net-tools
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.
and I'm not saying: https://wiki.linuxfoundation.org/networking/net-tools
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
And how do you "know" this if you have used Debian before?theblueplll wrote: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?
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.
Re: not found SHUTDOWN - POWEROFF - Halt
???
https://packages.debian.org/buster/net-tools
Code: Select all
apt policy net-tools
net-tools:
Installé : 1.60+git20180626.aebd88e-1
Candidat : 1.60+git20180626.aebd88e-1
Re: not found SHUTDOWN - POWEROFF - Halt
Hello Head_on_a_StickHead_on_a_Stick wrote:I think you need polkit to use them though.Code: Select all
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:~$
Why don't you just use the graphical logout application provided by GNOME? Or the power button, which is what I use.
I use virtual machines in production environment and terminal only access and these commands are essential for maintenance, in the case of this Debian 10 I installed to test and see what's new before using it in production.
root @ debian10: / home / thiago # which poweroff
root @ debian10: / home / thiago #
Re: not found SHUTDOWN - POWEROFF - Halt
Hello sickpigsickpig wrote:Yes the problem is with gnome(year of linux desktop). try another DE. Or ruwolf's suggestion.Thiago wrote:Could you tell me what it could be?
I'm sorry but I did not quite understand your answer, you said the problem is related to GNOME, ie should I use another graphic interface or not use it?
Re: not found SHUTDOWN - POWEROFF - Halt
What I need to do ?L_V wrote:All power on/off operations are managed by systemd.
/sbin/poweroff is same as 'systemctl poweroff'
Code: Select all
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
root@debian10:/home/thiago# poweroff
bash: poweroff: comando não encontrado
root@debian10:/home/thiago# halt
bash: halt: comando não encontrado
root@debian10:/home/thiago# shutdown
bash: shutdown: comando não encontrado
root@debian10:/home/thiago# ls -l1 /sbin/halt /sbin/poweroff /sbin/reboot /sbin/shutdown
lrwxrwxrwx 1 root root 14 mai 24 17:58 /sbin/halt -> /bin/systemctl
lrwxrwxrwx 1 root root 14 mai 24 17:58 /sbin/poweroff -> /bin/systemctl
lrwxrwxrwx 1 root root 14 mai 24 17:58 /sbin/reboot -> /bin/systemctl
lrwxrwxrwx 1 root root 14 mai 24 17:58 /sbin/shutdown -> /bin/systemctl
root@debian10:/home/thiago#
root@debian10:/home/thiago# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
root@debian10:/home/thiago#
Re: not found SHUTDOWN - POWEROFF - Halt
L_V wrote:???https://packages.debian.org/buster/net-toolsCode: Select all
apt policy net-tools net-tools: Installé : 1.60+git20180626.aebd88e-1 Candidat : 1.60+git20180626.aebd88e-1
root @ debian10: / home / thiago # apt policy net-tools
N: Unable to find net-tools package
root @ debian10: / home / thiago #
Re: not found SHUTDOWN - POWEROFF - Halt
It is not the subject but ...... what say thisThiago wrote: # apt policy net-tools / N: Unable to find net-tools package
Code: Select all
grep -rh ^d /etc/apt/sources*
Re: not found SHUTDOWN - POWEROFF - Halt
root@debian10:/home/thiago# grep -rh ^d /etc/apt/sources*L_V wrote:It is not the subject but ...... what say thisThiago wrote: # apt policy net-tools / N: Unable to find net-tools package(strange idea to look for net-rools in a power subject).Code: Select all
grep -rh ^d /etc/apt/sources*
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
Re: not found SHUTDOWN - POWEROFF - Halt
When did you modify your sources.list....
It is certainly not the one you have had during installation.
Really not the subject here.
It is certainly not the one you have had during installation.
Really not the subject here.
Re: not found SHUTDOWN - POWEROFF - Halt
Excuse me,L_V wrote:When did you modify your sources.list....
It is certainly not the one you have had during installation.
Really not the subject here.
I expected a solution answer to the problems mentioned, did not understand their placement. (Really not the subject here.)
"When did you modify your sources.list ...."
The source list is the way it is in the installation, I just commented the lines of the cd-rom.
Re: not found SHUTDOWN - POWEROFF - Halt
Not the subject but, this makes a difference.Thiago wrote: I just commented the lines of the cd-rom.
add this line in your /etc/apt/sources.list
Code: Select all
deb http://ftp.de.debian.org/debian/ buster main contrib
Code: Select all
apt update