Disable automatic refreshes

hi folks,

is it possible to disable the automatic refreshes on ubuntu core?

i tried it with
sudo systemctl disable snapd.refresh.timer

but it still does automatic refreshes. at least for the kernel snap.

the automatic refreshes can be annoying if you have internet access via gsm
modem which has a limited dataplan. in this case the ubuntu core update
eats up all amount of data and there is nothing left for the application.

thanks for any hints


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you receive
this in error, please contact the sender and delete the material from any
computer. This e-mail does not constitute a contract offer, a contract
amendment, or an acceptance of a contract offer unless explicitly and
conspicuously designated or stated as such.


Block the internet of snap in the hosts file
Or go to flatpak

you can completely disable Ubuntu Core refreshes when using a brand store, it gives full control over all aspects of upgrading.

If you use network-manager on your core device you can tell it to not refresh over metered connections and you can set refresh.hold with a time/date to delay a refresh.


1 Like

Flatpak doesn’t support Ubuntu Core devices IIRC :wink:


Block the internet of snap in the hosts file… Is a valid option at least for me… If I want to upgrade some snap I just unblock it.

1 Like

how do you know that you can update a snap though ? you wont easily get that information (snapd itself polls that info a few times a day from the url you blocked) …

given that Ubuntu Core is completely built out of snaps (kernel. bootloader, rootfs all are snaps, not only the applications) you are risking to run your OS with potentially serious gaping security holes …

the better idea is to simply pick a time window where you regulary do updates every two months via the builitn scheduler instead as described on the managing updates page above. refresh.hold allows you to hold the update until a date within the next 60 days… refresh.timer gives you the ability to pick a time where the system is idle anyway…

1 Like