Fix ‘Cannot refresh snap-store’ Error in Ubuntu 24.04
This blog post is the solution for the error ‘cannot refresh snap-store’ in Ubuntu 24.04 LTS. while trying to update the app store in Ubuntu.
Error message that might be popping up in your Ubuntu 24.04 LTS might look like this:
Unknown Snapd Exception cannot refresh “snap-store”: snap “snap-store” has running apps (snap-store), pids:5263
Let’s have a look into the reason behind this error:
Snap Store shows the updates available for all the snap packages installed on your system. Many of you might know that App Store is a snap package on itself. The catch is here, Because of its being a snap package, it shows update available for itself as well. So the error starts to pop up as when you try to update as you cannot update this snap-based app store from within the app store itself.
What is the solution?
Fix ‘Cannot refresh snap-store’ Error in Ubuntu 24.04
Only way to get rid of this problem is to manually update snap store from the command line. Yes, You need to close the snap store at first and update it. You can do it with the following commands.
killall snap-store && sudo snap refresh snap-store