Uncategorized

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, use killall 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 update snap-store, you would run sudo 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 --unhold for all snaps or snap refresh --unhold [app-name] for a specific app. 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.