Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3154  / 2 Years ago, mon, september 5, 2022, 4:07:23

When I attempt to shutdown with the gear icon, the login screen always comes back. When I Ctrl+Alt+F1 into a PTY, logon and run shutdown 0, it goes into single-user mode but remains there. Subsequent attempts produce the same result.



I grepped /var/log/* (as root) for "shutdown" but found nothing. man shutdown only mentions that it writes a record to /var/log/wtmp and utmp which are binary files, and which doesn't sound like it will help me much in this case since the docs indicates they appear to be about tracking logins and logouts, not attempts to shut down the system.



I can't write down all the messages that it dumps on the screen. How else can I debug this? Doesn't shutdown leave a trace somewhere?


More From » shutdown

 Answers
7

The command that I always have used to shutdown a Ubuntu machine is:



sudo halt


I hope this helps you.


[#30484] Tuesday, September 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tersle

Total Points: 342
Total Questions: 109
Total Answers: 99

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
;