How to Update the Snap Store in Ubuntu 22.04

Short Version for Experts

Why do we want to update the Snap Store? Isn’t it done automatically?

Yes and no. We want the Snap Store to update (also called “refresh”) nicely. Ubuntu Software tells us that an update for Snap Store is pending. It tells us that 14 days in advance.

If we don’t update Snap Store nicely, Ubuntu will do it brutally. When an app is asked nicely to quit itself for an update, it can do any necessary housekeeping first. It can write files to disk, etc.

The brutal approach has Ubuntu just kill the app. There is no opportunity to do housekeeping. This can sometimes cause problems.

Hence the dual approach. There is a snap daemon that is running, and this daemon will not allow the snap-store app to close itself and update. The “Close the app to avoid disruptions” is asking us to close the app so it can be updated. If it isn’t done within the 14 day warning period, Ubuntu will forcibly, and brutally, close the app for us.

There are technical reasons why this app closure, etc., is not done automatically. These are beyond the scope of this article.

Ubuntu Pending update of snap-store warning

How to Update the Snap Store

First, remember the name of the app. In this case, it is snap-store.

Ubuntu Pending update of snap-store warning

Quit Ubuntu Software.

Ubuntu Quit Ubuntu Software

First, we will ask nicely to refresh snap. Run the following command in Terminal. It is better to ask nicely. We only want to kill processes when necessary. If we ask nicely and the app responds to our request, it will do any housekeeping necessary before quitting.

sudo snap refresh
Ubuntu sudo snap refresh

This might work, but will likely give you the same error message.

Ubuntu Pending Update Warning from Terminal

Sadly, we have to be brutal. We will use the kill command, with just stops the app. There is no housekeeping done.

Run the following command in Terminal.

Remember, snap-store is the name of the app that will not update.

sudo snap refresh snap-store
Ubuntu sudo snap refresh snap-store

This will also give an error message, but this error message gives us the PID for the snap-store app. Take note of the PID, which is right after “pids:”. In our example, the PID is 2295.

Get PID of running process that is interferring

Tell Terminal to kill that PID. This will brutally stop the running app with the process ID of 2295.

kill 2295
kill PID

With the interfering app out of the way, request a snap refresh, or update again.

sudo snap refresh
snap store refresh

This time the update, or refresh, command works! Wait for it to complete. This can take a few minutes.

download snap store
Ubuntu Handling refresh of snap-store
Ubuntu Fetch assertions for snap-store
Ubuntu Mount snap-store
Ubuntu stop snap-store services
Ubuntu Handling refresh of snap-store
Ubuntu copy snap-store data
Ubuntu Handling refresh of snap-store
Ubuntu Handling refresh of snap-store
Ubuntu Handling refresh of snap-store
Ubuntu run configure hook of snap-store snap
Ubuntu run health check of snap-store snap
Ubuntu Handling refresh of snap-store
Ubuntu snap-store from Canonical refreshed

Now snap has bee updated! Quit Terminal.

Quit Terminal

If you want to check your work, go back into Ubuntu Software.

Ubuntu Uninstall VS Code click ubuntu software icon

The software catalogue will be downloaded.

Ubuntu Software catalog is being downloaded

Click on the Updates tab.

Ubuntu software is up to date

The snap store is now updated!

Scroll to Top