First, let's talk about the EASIEST way to make the notification go away:
Quit the application (in this case, snap-store [a.k.a. Ubuntu Software]). You might not recall that you have it open, but you do. Maybe it's minimized. Find it and Quit the application. You can do that by opening system monitor.
Run sudo snap refresh. Let the command complete.
If, instead of a refresh, you get a pop-up that the application needs to be refreshed, then run sudo snap refresh <application-name>. The output of that command will return the PID causing the block. Use kill <pid> to remove the block.
Run sudo snap refresh again. This time it should work.
It's now safe to re-launch your application.
If you were not using the application before, or you don't know how to launch the application, then you can safely ignore this step.
Second, let's talk about WHY it's happening:
Snapd detects when a new version is available. If the application is currently running, snapd will inhibit updating that application for up to 14 days.
With most applications, this works fine. You Quit out of an application, a few hours later snapd updates the application (it checks several times each day). and the next time you open the application you don't even notice that it's been updated. Great!
But some applications are open for a long time that runs up against that 14-day window. Like web browsers on laptops that get closed/suspended instead of quit/restarted. Unfortunately, when the 14-day window expires, snapd will kill the application in order to implement the upgrade. To the user, this looks like Firefox crashed unexpectedly, losing whatever they were doing.
Snapd MUST refresh snaps. That's a legacy of the original design; snaps were originally designed for phones and IOT devices that MUST work reliably and MUST update reliably without user input. You can disable it if you know how...but it's a bad idea for most users -- disabling updates means no security patches and insecure applications.
Third, let's talk about why you are suddenly getting these notifications NOW.
The Snap developers were dissatisfied with those two choices (kill the application to force the upgrade -or- disable upgrades entirely), so they created a better path: Remind the user to Quit the application. That is the notification you are seeing. It's new (turned on by default) in Ubuntu 22.04.
If you ignore it, then when the countdown reaches zero snapd will terminate the application and refresh that snap automatically.
Finally, there's one obvious question remaining: Why isn't this automatic? or perhaps Why doesn't snapd download the update before nagging you?
Well, that's a work in progress. The snapd developers welcome code contributions to help make that happen safely. Snapd is Open Source.
Then in the terminal kill that process and run it again:
kill 2452
sudo snap refresh snap-store
and it should succeed.
The currently highest rated answer suggests that you have this running or minimized, but it seems to me it is just running without a user starting it and it does not show running in the dock.
It looks like a bug to me.
As mentioned, it should fix itself after 14 days by killing the application, which may just be inconvenient if you're in the middle of using it.
There are a couple things happening.
First, let's talk about the EASIEST way to make the notification go away:
Quit the application (in this case, snap-store [a.k.a. Ubuntu Software]). You might not recall that you have it open, but you do. Maybe it's minimized. Find it and Quit the application. You can do that by opening system monitor.
Run
sudo snap refresh
. Let the command complete.sudo snap refresh <application-name>
.The output of that command will return the PID causing the block.
Use
kill <pid>
to remove the block.Run
sudo snap refresh
again. This time it should work.It's now safe to re-launch your application.
Second, let's talk about WHY it's happening:
Snapd detects when a new version is available. If the application is currently running, snapd will inhibit updating that application for up to 14 days.
With most applications, this works fine. You Quit out of an application, a few hours later snapd updates the application (it checks several times each day). and the next time you open the application you don't even notice that it's been updated. Great!
But some applications are open for a long time that runs up against that 14-day window. Like web browsers on laptops that get closed/suspended instead of quit/restarted. Unfortunately, when the 14-day window expires, snapd will kill the application in order to implement the upgrade. To the user, this looks like Firefox crashed unexpectedly, losing whatever they were doing.
Third, let's talk about why you are suddenly getting these notifications NOW.
The Snap developers were dissatisfied with those two choices (kill the application to force the upgrade -or- disable upgrades entirely), so they created a better path: Remind the user to Quit the application. That is the notification you are seeing. It's new (turned on by default) in Ubuntu 22.04.
Finally, there's one obvious question remaining: Why isn't this automatic? or perhaps Why doesn't snapd download the update before nagging you?
Well, that's a work in progress. The snapd developers welcome code contributions to help make that happen safely. Snapd is Open Source.
Works for me:
I had the same issue, the notification shows that the snap involved is snap-store.
If you run this in terminal, you will get a process ID (PID):
Then in the terminal kill that process and run it again:
and it should succeed.
The currently highest rated answer suggests that you have this running or minimized, but it seems to me it is just running without a user starting it and it does not show running in the dock. It looks like a bug to me. As mentioned, it should fix itself after 14 days by killing the application, which may just be inconvenient if you're in the middle of using it.
Seems a work in progress, so perhaps some patience is in order, but if you don't have that, file a bug as described here: https://help.ubuntu.com/community/ReportingBugs
Close all apps in your Ubuntu. Open Ubuntu Software app, under updates section, update the apps one by one. This trick worked for me.
In my case was a "Pending update of 'deja-dup" snap...'" so my two penny solution is open a terminal and type:
(latest command runs deja-dup's GUI so that deja-dup-monitor is automatically restarted)
This worked for me:
I needed sudo in front of snap refresh to get it to work. This was the only option that worked for me. I also had to start Ubuntu Software app twice.
This also cleared a Snap Store pending update that could no be updated because the Snap Store was running.
I solved the issue following these steps:
sudo apt update && sudo apt upgrade
and thensudo snap refresh
.I suppose that the issue is related to the gnome session which seems to run on snap.
I'm using Ubuntu 20.04 and for me works:
It will be downloading the necessary packages and at the end it should show you a message like:
I hope this helps someone else!