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]

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: not found SHUTDOWN - POWEROFF - Halt

#21 Post by Dai_trying »

The answer is to get your environment set correctly, use

Code: Select all

su -
(NOTICE THE DASH) as you likely have used just su before as shown by the bad path in a previous post.
thagio wrote:root@debian10:/home/thiago# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Thiago
Posts: 16
Joined: 2019-03-08 21:55

Re: not found SHUTDOWN - POWEROFF - Halt

#22 Post by Thiago »

L_V wrote:
Thiago wrote: I just commented the lines of the cd-rom.
Not the subject but, this makes a difference.
add this line in your /etc/apt/sources.list

Code: Select all

deb http://ftp.de.debian.org/debian/ buster main contrib 
Then, as root

Code: Select all

apt update
and you should find your net-tools, assuming you have access to the network
well, I already had this one in the list, as you can see two others, but it did not return in the LS command, I checked because, at the beginning of them had space, I can only assume that this, I just took the spaces and it worked after update.

# for your mirror of choice.
#
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://ftp.de.debian.org/debian buster main
root@debian10:/home/thiago#


Despite being able to install, the (ifconfig) command did not work.
root @ debian10: / home / thiago # ifconfig
bash: ifconfig: command not found
root @ debian10: / home / thiago #

Thiago
Posts: 16
Joined: 2019-03-08 21:55

Re: not found SHUTDOWN - POWEROFF - Halt

#23 Post by Thiago »

Dai_trying wrote:The answer is to get your environment set correctly, use

Code: Select all

su -
(NOTICE THE DASH) as you likely have used just su before as shown by the bad path in a previous post.
thagio wrote:root@debian10:/home/thiago# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Hello Dai_trying

I'm sorry for my ignorance, I'm here to ask for help and new in the world linux, I didn't quite understand what you meant in "The answer to your environment set correctly, use" could tell me what's wrong.?

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: not found SHUTDOWN - POWEROFF - Halt

#24 Post by Dai_trying »

Thiago wrote:
Dai_trying wrote:Use

Code: Select all

su -
(NOTICE THE DASH) as you likely have used just su before as shown by the bad path in a previous post.
thagio wrote:root@debian10:/home/thiago# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Hello Dai_trying

I'm sorry for my ignorance, I'm here to ask for help and new in the world linux, I didn't quite understand what you meant in "The answer to your environment set correctly, use" could tell me what's wrong.?
If you get to root user by using the command su it does not set the environment correctly (paths to executable files etc) with Buster you need to use the command su - to get the path set correctly, this is not a bug but a design decision (apparently) and is not required in previous Debian versions.

Thiago
Posts: 16
Joined: 2019-03-08 21:55

Re: not found SHUTDOWN - POWEROFF - Halt

#25 Post by Thiago »

Dai_trying

Well I think you solved my final problem, as below, really worked by entering root with (su -), thank you all help.

Code: Select all

thiago@debian10:~$ su -
Senha:
root@debian10:~#
root@debian10:~#
root@debian10:~#
root@debian10:~# shutdown -r
Shutdown scheduled for Mon 2019-07-29 17:33:43 -03, use 'shutdown -c' to cancel.
root@debian10:~# shutdown -c
root@debian10:~# ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: not found SHUTDOWN - POWEROFF - Halt[SOLVED]

#26 Post by Dai_trying »

You're welcome, there have been a lot of posts recently about this feature.

Post Reply