not found SHUTDOWN - POWEROFF - Halt[SOLVED]

New to Debian (Or Linux in general)? Ask your questions here!

Re: not found SHUTDOWN - POWEROFF - Halt

Postby L_V » 2019-07-29 14:16

Thiago wrote: # apt policy net-tools / N: Unable to find net-tools package

It is not the subject but ...... what say this
Code: Select all
grep -rh ^d /etc/apt/sources*

(strange idea to look for net-rools in a power subject).
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: not found SHUTDOWN - POWEROFF - Halt

Postby Thiago » 2019-07-29 14:26

L_V wrote:
Thiago wrote: # apt policy net-tools / N: Unable to find net-tools package

It is not the subject but ...... what say this
Code: Select all
grep -rh ^d /etc/apt/sources*

(strange idea to look for net-rools in a power subject).

root@debian10:/home/thiago# 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
Thiago
 
Posts: 16
Joined: 2019-03-08 21:55

Re: not found SHUTDOWN - POWEROFF - Halt

Postby L_V » 2019-07-29 14:28

When did you modify your sources.list....
It is certainly not the one you have had during installation.
Really not the subject here.
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: not found SHUTDOWN - POWEROFF - Halt

Postby Thiago » 2019-07-29 14:39

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.

Excuse me,
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.
Thiago
 
Posts: 16
Joined: 2019-03-08 21:55

Re: not found SHUTDOWN - POWEROFF - Halt

Postby L_V » 2019-07-29 14:44

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
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: not found SHUTDOWN - POWEROFF - Halt

Postby Dai_trying » 2019-07-29 15:26

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
Dai_trying
 
Posts: 833
Joined: 2016-01-07 12:25

Re: not found SHUTDOWN - POWEROFF - Halt

Postby Thiago » 2019-07-29 15:41

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

Postby Thiago » 2019-07-29 16:20

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.?
Thiago
 
Posts: 16
Joined: 2019-03-08 21:55

Re: not found SHUTDOWN - POWEROFF - Halt

Postby Dai_trying » 2019-07-29 19:29

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.
Dai_trying
 
Posts: 833
Joined: 2016-01-07 12:25

Re: not found SHUTDOWN - POWEROFF - Halt

Postby Thiago » 2019-07-29 19:52

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
Thiago
 
Posts: 16
Joined: 2019-03-08 21:55

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

Postby Dai_trying » 2019-07-29 21:13

You're welcome, there have been a lot of posts recently about this feature.
Dai_trying
 
Posts: 833
Joined: 2016-01-07 12:25

Previous

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable