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. 😂

  • onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    3 days ago

    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.