How to close Snap Store Apps to allow SNAP to update in Linux Ubuntu
To update a snap app, first completely close the app by using killall [app-name] in the terminal. Then, use sudo snap refresh to update all snaps, or sudo snap refresh [app-name] to update a specific snap.
Step 1: Stop the running snap app
- Identify the process name: The process name is usually the name of the snap (e.g.,
snap-store,discord). - Close all instances: Open a terminal and run
killall [app-name]. For example, to stop the Snap Store, usekillall snap-store. This command will terminate all running instances of the app, ensuring it’s not using resources.
Step 2: Refresh the snap app
- Update a specific app: To update a single snap, use the command
sudo snap refresh [app-name]. For example, to updatesnap-store, you would runsudo snap refresh snap-store. - Update all snaps: To update all snaps on your system, run
sudo snap refresh.
How to stop automatic updates (if needed)
- Temporarily hold updates: To pause updates for a specific period, use
snap refresh --hold=24h. - Hold a specific app: To stop a particular snap from being updated automatically, use
snap refresh --hold [app-name]. - Hold all apps indefinitely: To disable all automatic snap updates, run
snap refresh --hold. - Re-enable updates: To re-enable automatic updates, use
snap refresh --unholdfor all snaps orsnap refresh --unhold [app-name]for a specific app.