Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #235810
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How do I permanently disable unattended downloads of software/security updates? |
| Date | 2021-06-02 21:50 +0200 |
| Message-ID | <ClF2h-63-3@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <ClxxL-46X-7@gated-at.bofh.it> <ClBUJ-6Ma-3@gated-at.bofh.it> <ClC4p-6Pa-1@gated-at.bofh.it> <ClCnM-6VW-5@gated-at.bofh.it> <ClEpz-8ks-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jun 02, 2021 at 09:03:23PM +0200, Linux-Fan wrote:
> alias systemctl='systemctl -l --no-pager'
> alias journalctl='journalctl --no-pager'
Hmm, that's handy because it preserves the underline/boldface terminal
markup, unlike the |cat trick.
> > systemctl list-timers | grep apt
>
> As far as I can tell, these ultimately lead to
> /usr/lib/apt/apt.systemd.daily which in turn claims to honor
> `APT::Periodic::Enable "1";` from /etc/apt/apt.conf.d.
I've just spent a few minutes reading /usr/lib/apt/apt.systemd.daily ...
it's not pretty.[1]
First thing I noticed is that in the absence of APT::Periodic::Enable
it *assumes* 1 (yes). It does this by setting a variable to 1, and then
running the following command:
apt-config shell AutoAptEnable APT::Periodic::Enable
capturing the output, eval-ing it (without quotes!), and then checking
whether that shell variable's value is still 1. On my system, where
there is no APT::Periodic::Enable in any part of apt's config, the
output of that apt-config command is empty. So the eval does nothing,
and the variable remains set to 1 (yes).
The next thing I noticed is that apt-daily-upgrade.service runs the same
script with "install" as its argument. The section of the script that
this triggers is basically a giant wrapper around unattended-upgrade.
If unattended-upgrade is not found in PATH (using a *terrible* check),
pretty much nothing happens. Of course, it doesn't bother logging that
unless it's running in debug mode.
> # journalctl -u apt-daily-upgrade.service
> -- Logs begin at Wed 2021-06-02 12:24:45 CEST, end at Wed 2021-06-02
> 20:47:39 CEST. --
> Jun 02 12:24:55 masysma-18 systemd[1]: Starting Daily apt upgrade and clean
> activities...
> Jun 02 12:24:56 masysma-18 systemd[1]: apt-daily-upgrade.service: Succeeded.
> Jun 02 12:24:56 masysma-18 systemd[1]: Started Daily apt upgrade and clean
> activities.
Mine is similar, albeit much longer. Note that on my system,
unattended-upgrade is not installed.
[1] Here's one example:
if which unattended-upgrade >/dev/null 2>&1 && env LC_ALL=C.UTF-8 unattended-upgrade --help | grep -q download-only && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $UnattendedUpgradeInterval; then
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-25 19:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Kenneth Parker <sea7kenp@gmail.com> - 2021-05-25 21:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-25 22:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-05-25 23:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-25 23:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Keith Bainbridge <keithrbaugroups@gmail.com> - 2021-05-26 01:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Jeremy Ardley <jeremy@ardley.org> - 2021-05-26 04:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-26 05:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-26 03:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Keith Bainbridge <keithrbaugroups@gmail.com> - 2021-05-26 06:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-05-26 14:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-27 08:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-05-27 22:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-28 02:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-29 08:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-29 19:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-30 09:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-05-28 13:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-05-28 14:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-28 20:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-05-28 21:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-29 01:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-29 09:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-05-29 11:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-30 13:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-05-30 15:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Charles Curley <charlescurley@charlescurley.com> - 2021-05-30 15:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Dan Ritter <dsr@randomstring.org> - 2021-05-30 17:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-06-02 09:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-02 13:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-06-02 13:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-02 18:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Reco <recoverym4n@enotuniq.net> - 2021-06-02 18:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-06-02 19:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Linux-Fan <Ma_Sys.ma@web.de> - 2021-06-02 21:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-06-02 21:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-03 21:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-06-03 04:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-04 02:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? "Thomas D. Dean" <tomdean@wavecable.com> - 2021-06-04 04:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-04 08:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? "Thomas D. Dean" <tomdean@wavecable.com> - 2021-06-04 12:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-04 12:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? David Wright <deblis@lionunicorn.co.uk> - 2021-06-04 17:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-06-04 14:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-06-04 14:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? David Wright <deblis@lionunicorn.co.uk> - 2021-06-04 17:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Reco <recoverym4n@enotuniq.net> - 2021-06-04 15:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-04 19:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-03 04:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-05-29 15:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-30 12:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-30 13:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? <tomas@tuxteam.de> - 2021-05-30 13:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-30 13:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-28 20:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-05-28 14:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-29 01:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-01 19:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Dan Ritter <dsr@randomstring.org> - 2021-06-01 20:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Reco <recoverym4n@enotuniq.net> - 2021-06-01 20:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-01 19:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Joe <joe@jretrading.com> - 2021-06-01 20:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-01 13:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Reco <recoverym4n@enotuniq.net> - 2021-06-01 15:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Joe <joe@jretrading.com> - 2021-06-01 15:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Charles Curley <charlescurley@charlescurley.com> - 2021-05-25 21:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-25 23:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Charles Curley <charlescurley@charlescurley.com> - 2021-05-25 23:40 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-05-25 23:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Tom Browder <tom.browder@gmail.com> - 2021-06-02 22:00 +0200
Re: How do I permanently disable unattended downloads of software/security updates? l0f4r0@tuta.io - 2021-06-02 22:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-03 21:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-03 03:50 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Tom Browder <tom.browder@gmail.com> - 2021-06-03 22:20 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Greg Wooledge <greg@wooledge.org> - 2021-06-03 22:30 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Stella Ashburne <rewefie@gmx.com> - 2021-06-04 02:10 +0200
Re: How do I permanently disable unattended downloads of software/security updates? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-04 11:10 +0200
csiph-web