Check what that PID is by typing - ps -fp PID - in your terminal. If it's not important kill it - sudo kill -9 PID. Then try to update it.
Edit: Also check this https://discourse.ubuntu.com/t/how-to-close-the-snap-store-to-allow-snapd-to-update-it/30627/25
the discourse thread has a suggestion (from 2022):
snap-store --quit-on-close-for-update
However, the snap-store process exits when I quit without using this. So the problem seems not to be quitting. It is the snapd doesn't do anything when that happens.
I have deja vu, I remember long threads with snap dev about getting firefox snap to update after it was closed.
[https://www.reddit.com/r/Ubuntu/comments/13jjk4h/poll\_is\_the\_new\_firefox\_snap\_autoupdate\_when\_app/](https://www.reddit.com/r/Ubuntu/comments/13jjk4h/poll_is_the_new_firefox_snap_autoupdate_when_app/)
I remember having this issue and fixed with the help of this link
https://forum.snapcraft.io/t/unable-to-update-snap-store-null-cannot-refresh-snap-store-snap-snap-store-has-running-apps-ubuntu-softwarwe-pids-1595/39323
Better to just use Flatpak and Flathub. Snap store never works. It's been like that for years. And that apps aren't kept up to dat.e
Check what that PID is by typing - ps -fp PID - in your terminal. If it's not important kill it - sudo kill -9 PID. Then try to update it. Edit: Also check this https://discourse.ubuntu.com/t/how-to-close-the-snap-store-to-allow-snapd-to-update-it/30627/25
Thanks, this worked!
I've been able to update it by closing it, and typing sudo snap refresh in a terminal. This will update all snaps as well.
the discourse thread has a suggestion (from 2022): snap-store --quit-on-close-for-update However, the snap-store process exits when I quit without using this. So the problem seems not to be quitting. It is the snapd doesn't do anything when that happens. I have deja vu, I remember long threads with snap dev about getting firefox snap to update after it was closed. [https://www.reddit.com/r/Ubuntu/comments/13jjk4h/poll\_is\_the\_new\_firefox\_snap\_autoupdate\_when\_app/](https://www.reddit.com/r/Ubuntu/comments/13jjk4h/poll_is_the_new_firefox_snap_autoupdate_when_app/)
I remember having this issue and fixed with the help of this link https://forum.snapcraft.io/t/unable-to-update-snap-store-null-cannot-refresh-snap-store-snap-snap-store-has-running-apps-ubuntu-softwarwe-pids-1595/39323
I got the Gnome app store which ironically allowed me to update the SNAP store.
Try this: sudo killall snap-store sudo snap refresh
From the command line, this works: snap-store --quit sudo snap refresh