Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

77%
+5 −0
Q&A How do I deal with a "pending update to "snap-store" snap, close the app to avoid disruption" notification in Ubuntu 22.04?

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...

posted 2y ago by Quasímodo‭  ·  edited 2y ago by Quasímodo‭

Answer
#3: Post edited by user avatar Quasímodo‭ · 2022-10-08T16:28:09Z (about 2 years ago)
  • 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 by user avatar Quasímodo‭ · 2022-09-30T22:08:36Z (about 2 years ago)
  • 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 by user avatar Quasímodo‭ · 2022-09-25T14:36:55Z (about 2 years ago)
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.