Quit the application -- in this case, snap-store (a.k.a. Ubuntu Software). Since snap-store auto-starts upon login, you might not recall that you have it open...but you do.
Closing the window is not enough to terminate the application.
One way: On the command line, run snap-store --quit
Another way: Open Ubuntu Software, look at the top bar, find "Ubuntu Software" on the left side of the top bar. Click it, and select "Quit".
Run sudo snap refresh
. Let the command complete.
If, instead of a refresh, you still get a pop-up that the application needs to be refreshed, then run sudo snap refresh firefox
.
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.
sudo apt update & sudo apt upgrade
. In my case only restarting Ubuntu worked. After rebooting Ubuntu the Firefox snap package was updated from 100 to 101 right away. – karel Jun 02 '22 at 05:54pgrep
that it was terminated,sudo snap refresh firefox
worked smoothly. I wonder why they chose to move tosnap
with the firefox package. It's all worked so smoothly withapt
over the past years. :) – mfg Aug 25 '22 at 06:26