this post was submitted on 04 Jul 2026
33 points (100.0% liked)

Linux

14216 readers
360 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

I don't want the system to shutdown in the middle of the upgrade, but I've already started the upgrade in the GUI.

Is there a better way, maybe involving the apt lock?

EDIT: Thank you for all the helpful suggestions. Hopefully this helps the next person. My upgrade actually finished on its own while I was posting. ๐Ÿ˜‚

you are viewing a single comment's thread
view the rest of the comments
[โ€“] onlinepersona@programming.dev 14 points 3 days ago* (last edited 3 days ago) (2 children)

If you started it in the terminal and are using bash hit "ctrl+z" to put the process to sleep and get your shell back, then use "fg ; sudo shutdown - c 1". "fg" puts a job back in the foreground.

Use "help fg" for more information. You also have "bg" (background) and "kill %1" to kill a specific job. ~~There's more, but I forget how to list tasks (maybe "tasks"?)~~ "jobs" to list jobs.

[โ€“] azimir@lemmy.ml 2 points 3 days ago

I did not know about the fg; (next command)

That's amazing! So cool.