Am I correct in thinking this is not classed as "tech support?"
I am running a VM with U20.04 for private stuff. We are in the boonies and very slow DSL (2.4mb/s on a good day) so I want all auto updates off so I can run them overnight when traffic is lighter. I use my own Cron job to do that.
I have therefore disabled "check and download," for all updates in the Manager, but saw that "Snap is updated automatically." I'd also like to hobble that to be run at night with the Cron.
Is there "apt" command or something-else to disable any/all downloads, including Snap?
Thanks
It doesn't necessarily give you an actionable answer, but this article by the inimitable Alan Pope gives a detailed run-through of some of the options:
https://popey.com/blog/2021/05/disabling-snap-autorefresh/
As the other poster said, scheduling it to run at the time of your choosing (overnight with your Cron job) is much easier and fully supported by the snapd developers, whereas disabling updates entirely needs you to get very hacky.
I don't know why your post got downvoted - this is a completely legitimate question and problem that snap doesn't completely have a way to work around.
I'd start here: https://snapcraft.io/docs/keeping-snaps-up-to-date
For your use case, there are methods to schedule when the updates happen.
Videos
There are a couple of options, depending on what you want exactly.
An update broke my application!
Run snap revert package-name to go back to the previous version of that application. You will stay on that version until the next version of the app gets released. If the next version is broken too, you can run snap revert again.
I want to stick with an older version of the app
Many software in the snap store uses tracks for major software releases. Most snaps default to using the latest/stable track, which will give you the latest updates of the application once they are released but users can choose a different track to stick with a specific version.
For the CLion IDE, for example, you can see the supported tracks by running snap info clion. You can switch to a different track by running snap refresh clion --channel=2020.2/stable. You will stay on that track until you manually change to a different track. You will still get automatic updates for the application but depending on which track you choose, you will only get the minor updates for that specific version of the software.
Publishers decide whether or not to enable tracks in their snap, so if a snap you like doesn't have a track for the version you need, be sure to contact the publisher!
I want to hold all updates until after my big presentation
The "hold" option is what you need. You specify an exact date and snap will hold any updates until that date. For example, this holds updates for the next 30 days.
snap refresh --hold='720h' <snap1> <snap2>
- If you specify no snaps, it will apply to the entire system
- Use
--hold=foreverif you want to disable updates indefinitely.
I don't want it to update during the weekdays
In this case, you probably want to change the refresh timer. For example, the following option sets the refresh timer to the last Saturday of the month, from 23:00 to 1:00 the next day.
sudo snap set system refresh.timer=sat5,23:00-01:00
You can use the CLI tools or the snap store to see which updates are available.
I want to disable updates when I'm paying for my download bandwidth
By default, snap will not update when NetworkManager detects a metered connection such as an LTE/3G/4G. If NetworkManager does not detect it correctly, you can set it manually.
I want to disable updates while the application is running.
This is already enabled by default. You'll get a notification when an update is scheduled for a running application. The next time you stop that application, it will get updated.
I want to do something else!
See the Controlling updates docs for more options.
It is at the time of this writing not possible (officially), which has stirred quite a debate. Better ways to control updates on the desktop are still being discussed.
Solution 1
Block the store in your /etc/hosts/ file:
127.0.0.1 api.snapcraft.io
For me what worked was sudo nano /etc/hosts, copy-pasted the line, then I hit F2, then Y, then ENTER.
Solution 2
Disable automatic updating if the network connection is metered.
First, go to your network settings.
Then, click on the cog wheels on the right side of both of your network interfaces and tick "restrict background data usage" - this marks the connection as being metered.
Finally, open a terminal and type (docs):
sudo snap set system refresh.metered=hold
this message pops up like every 5min
Thank you for your submission. Please note, scammers on this subreddit are targeting our visitors for their gain. You should be wary of anyone offering to have your account unlocked via Instagram, Telegram, WhatsApp, or anywhere else, as you will lose your account or money. All scammers have one thing in common, their primary goal is your money, and they often will make their scam look much more legitimate than it is in order to accomplish their goal. We encourage you to report these scammers if they send you a message via any social media channels. While we have safeguards in place, they are not always as effective as we would like.
If your Snapchat account has been temp locked, you may try to unlock it at this link: https://support.snapchat.com/a/locked.
You may also contact Snapchat using this link: https://support.snapchat.com/en-GB/i-need-help.
There is no other way to recover your account, other than through official channels.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Having the same problem. Have you solved it yet?