Post History
If snap-store itself is preventing the update, it's straightforward: snap-store --quit sudo snap refresh snap-store But sometimes it might be something else, in which case the above solution w...
Answer
#3: Post edited
- If snap-store itself is preventing the update, it's straightforward:
- snap-store --quit
- sudo snap refresh snap-store
- But sometimes it might be something else, in which case the above solution won't work. In which case the general solution is
- to first run `snap refresh snap-store`. It will complain with something like
- ```
- cannot refresh "snap-store": snap "snap-store" has running apps
- (ubuntu-software), pids: 4386
- ```
- Then kill the offending process, in this case `kill 4386`, and try the command again, this time it should succeed.
- If your problem doesn't fit in an already reported [bug](https://bugs.launchpad.net/snap-store-desktop/+bug/1989011), do [file a new one](https://bugs.launchpad.net/snap-store-desktop/+filebug).
- If snap-store itself is preventing the update, it's straightforward:
- snap-store --quit
- sudo snap refresh snap-store
- But sometimes it might be something else, in which case the above solution won't work. In which case the general solution is
- to first run `snap refresh snap-store`. It will complain with something like
- ```
- cannot refresh "snap-store": snap "snap-store" has running apps
- (ubuntu-software), pids: 4386
- ```
- Then kill the offending process, in this case `kill 4386`, and try the command again, this time it should succeed.
- [This Ubuntu Discourse post](https://discourse.ubuntu.com/t/how-to-close-the-snap-store-to-allow-snapd-to-update-it/30627) from Canonical should also be helpful.
- If your problem doesn't fit in an already reported [bug](https://bugs.launchpad.net/snap-store-desktop/+bug/1989011), do [file a new one](https://bugs.launchpad.net/snap-store-desktop/+filebug).
#2: Post edited
This is a [snap store bug](https://bugs.launchpad.net/snap-store-desktop/+bug/1989011).To fix it, run `snap refresh snap-store`. It will complain with something like- ```
- cannot refresh "snap-store": snap "snap-store" has running apps
- (ubuntu-software), pids: 4386
- ```
So `kill 4386` and try the command again, this time it should succeed.
- If snap-store itself is preventing the update, it's straightforward:
- snap-store --quit
- sudo snap refresh snap-store
- But sometimes it might be something else, in which case the above solution won't work. In which case the general solution is
- to first run `snap refresh snap-store`. It will complain with something like
- ```
- cannot refresh "snap-store": snap "snap-store" has running apps
- (ubuntu-software), pids: 4386
- ```
- Then kill the offending process, in this case `kill 4386`, and try the command again, this time it should succeed.
- If your problem doesn't fit in an already reported [bug](https://bugs.launchpad.net/snap-store-desktop/+bug/1989011), do [file a new one](https://bugs.launchpad.net/snap-store-desktop/+filebug).
#1: Initial revision
This is a [snap store bug](https://bugs.launchpad.net/snap-store-desktop/+bug/1989011). To fix it, run `snap refresh snap-store`. It will complain with something like ``` cannot refresh "snap-store": snap "snap-store" has running apps (ubuntu-software), pids: 4386 ``` So `kill 4386` and try the command again, this time it should succeed.