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
[–] undefined@lemmy.hogru.ch 3 points 3 days ago (1 children)

This should be the highest rated answer. The others are complete overkill.

In fact if you really don’t care whether the upgrade was successful it could even be upgrade ; shutdown.

[–] sem@piefed.blahaj.zone 5 points 3 days ago (1 children)

The context of the question was what could you do if you've already started the upgrade in the GUI. I can accept that it would have been better to upgrade via the terminal if i wanted to shutdown after, but the situation i was in was waiting for the gui update. So this wouldn't be my highest rated answer, even if it is true.

[–] thingsiplay@lemmy.ml 4 points 3 days ago (1 children)

Can't you stop the upgrade process from the GUI?

[–] sem@piefed.blahaj.zone 3 points 3 days ago* (last edited 3 days ago) (1 children)

I hadn't thought of that. Can pressing cancel also leave the system in a broken state, or is it safe?

[–] thingsiplay@lemmy.ml 3 points 3 days ago* (last edited 2 days ago) (1 children)

If you are not sure, then its best to leave it run. My "assumption" would be that it is safe to cancel during the download period. I am actually not familiar how Linux Mint GUI operates, as I am using the upgrade and update commands on an Archlinux* system in the terminal. So I can see exactly what it is doing, and when it enters into installation phase after downloading all necessary packages. During installation I wouldn't cancel the process. My suggestion was for you to look into.

*EndeavourOS

Edit: Typo

[–] forestbeasts@pawb.social 3 points 3 days ago

Linux Mint uses apt for the regular system stuff.

with apt, canceling during the download phase is totally safe.

canceling during the install phase is ALSO fairly safe. apt tries to make sure you're never in an unbootable state if you have to cancel it, or your power cuts out, or whatever. It will, however, put apt into an "ack things are half-done!" state and you'll need to run sudo dpkg --configure -a after you're booted up, which is "finish installing the half-installed packages that apt was in the middle of doing before".

I think we've heard apt is better about this than most other package managers. So it might not be a good idea on EndeavourOS (Arch-based).

-- Frost