58

i've started to use Ubuntu last month. I'm getting this error in the terminal while i'm trying to refresh snap-store

$ sudo snap refresh snap-store 
error: cannot refresh "snap-store": snap "snap-store" has running apps
       (ubuntu-software)

Any ideas how to solve this?

  • 1
    why do you need to refresh snap store ? It'll be automatically refreshed – ConMan77 Jun 02 '22 at 03:57
  • 1
    sudo snap refresh try this instead – ConMan77 Jun 02 '22 at 04:04
  • 1
    snap packages that are open or running, cannot be refreshed. You need to close the running snap package before you can update/refresh it (ie. close ubuntu-software) – guiverc Jun 02 '22 at 04:38
  • 2
    @ConMan77 no, it is not. When I open software center it itself shows a message that snap-store cannot be upgraded because of running processes. I would not notice this problem otherwise. – Petr Gladkikh Jun 06 '22 at 17:25
  • 1
    @guiverc When I run "snap refresh" no process named "ubuntu-software" is running. – Petr Gladkikh Jun 06 '22 at 17:30
  • 1
    @guiverc The message is INCORRECT. Snap pretends the program in parentheses is running. Closing ubuntu-software is not possible because it is not running. The pids it names belong to processes dbus-launch and /usr/bin/dbus-daemon. – Quigi Jul 06 '22 at 13:54

4 Answers4

108

Working for me:

ps -e | grep snap-store #id blocking process
kill #id
sudo snap refresh
cbond
  • 1,196
22

I had the same error.

First: sudo killall snap-store

Then: sudo snap refresh snap-store

After this, open your snap store (or "Ubuntu Software") again and you will see it's updated.

Seboudry
  • 105
Pau
  • 229
2
killall snap-store
snap refresh

Note: You don't need to type these comments with sudo. In fact it is encouraged not to use sudo here

0

Snaps will be automatically updated according to the documentation.

ConMan77
  • 155