106

How to update snap-store .

I don't have Ubuntu advantage subscription.

Screenshot

Giacomo1968
  • 55,001
Ctf Ctf
  • 1,173
  • 2
  • 3
  • 5
  • Questions need text to be questions. Use the EDIT button and fix your... thing here to make it into an actual question. – music2myear May 30 '22 at 03:43
  • Have you run updates as suggested? I could see in Ubuntu SNAP being updated in the course of regular updates. Log into Live Patch. – John May 31 '22 at 12:41

6 Answers6

156

Go to terminal and kill the snap-store process before installing/refreshing snap-store.

Find process with ps aux | grep snap

Find for the snap-store process, which looks like this

... <process id> ... ... /snap/snap-store/???/usr/bin/snap-store.

Kill process using the above found process id:

kill <process id>

Install/refresh snap-store:

Close "Ubuntu software" gnome app if it open.

Refresh snap-store:

sudo snap refresh snap-store

Had the same problem and fixed it this way.

DogEatDog
  • 113
user11493159
  • 1,676
57

I had same issue.

$ killall snap-store
$ snap refresh

worked for me.

If this still doesn't work, it means that your snap-store isn't a fresh install. You already have snap desktop integration running on your machine. Stop the running process manually by using: $ ps -ef | grep snap (it gets you the running process id) $ sudo kill 1997 (replace your process id here)

let me know, if it works :-) your feedback helps us improve the answers.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Jun 11 '22 at 14:07
  • 2
    Simple and effective. – Gejun Sep 08 '22 at 21:15
  • 4
    @Community No, it couldn't. – Marcel Besixdouze Sep 10 '22 at 02:41
  • 1
    I still wonder: Is this a bug? Will the snap-store ever get its updates if we don't intervene? But I know it is very important that snaps are not updated while the app is running because it will most likely cause the app to crash. (refresh-app-awareness is a good thing.) – w-sky Sep 24 '22 at 12:54
  • 2
    2024 and I still needed to do this from command line – Joshua Besneatte Feb 25 '24 at 01:21
11

Other possible way:

Check the process, and note the id:

ps auxww | grep snap-store

Quit snap-store:

snap-store --quit

Check if the process is stopped

ps auxww | grep snap-store

If so, refresh snap-store:

sudo snap refresh snap-store
  • 1
    Appreciate using the built-in method snap-store --quit instead of randomly killing PIDs

    See also: https://askubuntu.com/a/1412580/25344

    – Greg Sep 12 '22 at 06:02
8

I have Ubuntu 20.04 and this worked perfect for me.

  • $ pkill snap-store
  • $ sudo snap refresh snap-store
Joel
  • 81
  • Welcome to SuperUser! How is your answer better than the accepted one? Please do not just copy someone else’s answer. – DarkDiamond Sep 12 '22 at 11:22
5

Just run this command:

sudo snap refresh snap-store

It will show the information about running snap apps

error: cannot refresh "snap-store": snap "snap-store" has running apps
       (ubuntu-software), pids: 2247

Then kill them. and run again same command:

kill 2247
sudo snap refresh snap-store

replace 2247 with whatever you see after pids:

Hamidreza
  • 272
0

Run Ubuntu Update (Left Icon bar or Applications ....).

If it updates, wait and then see settings. Go to and configure Live Patch.

If it is not updating, you will see settings right away and configure Live Patch

Live Patch

..

If already updating, you should see that Live Patch is configured (likely) and nothing left to do.

If not running you will need to enable it which probably means signing in (it did mean that for me)

Updates will update Snap (Updates Tab) automatically.

John
  • 49,923