Hello,
After each boot, the equivalent of apt update is automatically done in background, through policykit (apt database is locked by
policykitd). So I think there is a timer triggroing this. I'd like to
disable this when my laptop is on expensive link (eg 4G link, or
abroad). So I'd like to disable this timer, but I did not find it. If
someone knws better than me...
On 19/02/2024 14:35, Erwan David wrote:
After each boot, the equivalent of apt update is automatically done
in background, through policykit (apt database is locked by
policykitd). So I think there is a timer triggroing this. I'd like to
disable this when my laptop is on expensive link (eg 4G link, or
abroad). So I'd like to disable this timer, but I did not find it. If
someone knws better than me...
Perhaps I missed something since I have no idea why policykit (or
polkit?) is involved.
You may disable apt timers
   systemctl disable --now apt-daily.timer apt-daily-upgrade.timer
Perhaps it is possible to write a script that will respect
connection.metered property set by NetworkManager.
Sorry il was packagekit, I made a mistake while writing.
I disable the timers, thanks
systemctl disable --now apt-daily.timer apt-daily-upgrade.timer
To avoid confusion, these timers are from the apt package, not from unattended-upgrades. So they are active on most Debian hosts.
Does anyone know when these things changed, and why on earth nobody
knew about it?! Did I miss a section in the release notes or something?
On Mon, Feb 19, 2024 at 10:21:24PM -0500, Greg Wooledge wrote:
Does anyone know when these things changed, and why on earth nobody
knew about it?! Did I miss a section in the release notes or something?
Why are you shocked by this? Most of it is disabled by default (no
update / upgrade / unattended-upgrade). You have to set things like APT::Periodic::Update-Package-Lists to 1.
It's been there since Debian 9 (stretch) IIRC.
The handbook has stuff about it.
https://debian-handbook.info/browse/stable/sect.regular-upgrades.html
Hi,
On Mon, Feb 19, 2024 at 08:35:18PM +0100, Erwan David wrote:
Sorry il was packagekit, I made a mistake while writing.If it's packagekit then isn't it going to be some part of your
desktop environment? Which desktop environment are you using?
GNOME will download updates and prompt you to install. To disable this open "GNOME software",m burger menu, "Update Preferences".
The default behaviour of GNOME Software is to only download upgrades when on an
unmetered connection so if you are using GNOME and this is what is happening, then as Max says telling NetworkManager that your connection is metered should
stop it.
I disable the timers, thanksI don't think it's any of the systemd timers or unattended-upgrades.
Thanks,
Andy
On 20/02/2024 02:35, Erwan David wrote:
Le 19/02/2024 à 18:00, Max Nikulin a écrit :
   systemctl disable --now apt-daily.timer apt-daily-upgrade.timer
Perhaps it is possible to write a script that will respect
connection.metered property set by NetworkManager.
I disable the timers, thanks
To avoid confusion, these timers are from the apt package, not from unattended-upgrades. So they are active on most Debian hosts. Desktop environments may display notifications after actions initiated by
these timers. Likely desktop environments may do more, e.g. to query
GNOME application shop for updates and initiate more frequent updates.
I'll have a look at connection.metered
Out of curiosity I have queried https://codesearch.debian.net. It
seems, apt has no notion of metered connection. Perhaps the effect can
be achieved by adding to unit configuration some Condition* mentioned
in systemd.directives(7)
https://stackoverflow.com/questions/43228973/detect-if-current-connection-is-metered-with-networkmanager
busctl get-property \
 org.freedesktop.NetworkManager \
 /org/freedesktop/NetworkManager \
 org.freedesktop.NetworkManager Metered
I'm not sure how to interpret this combination of things. Do these
default settings mean "the update/upgrade script will run, but it won't actually do anything"?
i very much dislike the fact that my systems do things i am not aware of.
I use KDE, and I do not know wether discover does an update by itself. I do not thind any setting about this
On Tue, Feb 20, 2024 at 10:17:17AM +0100, Michael wrote:
i very much dislike the fact that my systems do things i am not aware of.
I think one of the purposes of a Linux distribution is to pull
together a collection of disparate software of their choosing and
make default decisions for their users.
I find it hard to believe that you bother to delve into the
behaviour of your system in most other ways, but suddenly you've
become aware of a systemd timer and now it's a problem for you. None
of this is hidden. You've been able to read this script and work out
how it works.
For me, it's a combination of two things:
1) This apt-daily.timer stuff is quite complex and difficult to discover
and understand [...]
Hi,
On Tue, Feb 20, 2024 at 08:52:09AM +0100, Erwan David wrote:
I use KDE, and I do not know wether discover does an update by itself. I do >> not thind any setting about thisI think it is very likely that KDE has an equivalent to GNOME, which
does the equivalent of "apt update" every day and then notifies you
about available package upgrades.
Thanks,
Andy
This thing has no configuration file by default; you have to read the
comments in the software itself to figure out what it does.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 29:46:42 |
Calls: | 6,907 |
Calls today: | 1 |
Files: | 12,376 |
Messages: | 5,427,787 |
Posted today: | 1 |