How to Update a Snap on Ubuntu

My Ubuntu machine nagged me with notifications like this one:

Pending update of chromium snap: Close the app to avoid disruption (5 days left)

That went on for days and I did multiple restarts of my machine where Ubuntu could have updated Chromium. Since I did not want to get a restart in the middle of a big download, I had to figure out what went wrong.

As it turns out, snaps like Chromium cannot be updated while they are in use. To make the situation more annoying, the service that updates the snaps only runs about 4 times a day. Therefore, when you stop the snap and restart your computer, you never going to hit the run of that update service.

Fortunately, we can enforce an update of the snaps when it fits our timetable. Stop the snap that is mentioned in the notification and then run this command:

After entering your password, you should see an output like this one:

chromium 116.0.5845.140 from Canonical ✓ refreshed

It is a pity that it needs this extra step for an update. But if you know how to do it, you can keep your system up to date with a little extra effort.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.