Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235809

Re: How do I permanently disable unattended downloads of software/security updates?

From Linux-Fan <Ma_Sys.ma@web.de>
Newsgroups linux.debian.user
Subject Re: How do I permanently disable unattended downloads of software/security updates?
Date 2021-06-02 21:10 +0200
Message-ID <ClEpz-8ks-5@gated-at.bofh.it> (permalink)
References (1 earlier) <ClwV3-3V2-1@gated-at.bofh.it> <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>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Greg Wooledge writes:

> On Wed, Jun 02, 2021 at 07:33:32PM +0300, Reco wrote:
> > 	Hi.
> >
> > On Wed, Jun 02, 2021 at 06:27:45PM +0200, Stella Ashburne wrote:
> > > Output of systemctl list-timers

[...]

> > > 6 timers listed.
> > > Pass --all to see loaded but inactive timers, too.
> >
> > The most important parts of "systemctl list-timers" (your problem
> > considered) are UNIT and ACTIVATES columns, and your result lacks them
> > for some reason.
>
> The designers of systemctl made some odd choices.  They drop you into a
> weird interactive mode by default, and expect you to be willing and able
> to scroll around to see the fields of this report.  Worst of all is that
> you may not even *know* that you're supposed to do this.

[...]

> to work, you need to redirect or pipe systemctl's output so that it isn't
> going to a terminal.
>
> systemctl list-timers | cat
>
> Of course, this is still ugly as sin, because the designers of systemctl
> don't understand that terminals are 80 characters wide, always and forever.
> They just dump a bunch of longer-than-140-character lines and let them
> wrap as they will.  Well, at least the information is there, even if it's
> hard to read.

I have added the following aliases to all my systems:

	alias systemctl='systemctl -l --no-pager'
	alias journalctl='journalctl --no-pager'

But of course, I like that `cat` trick for systems which I do not own.
Much easier than remembering that it was `--no-pager` :)

[...]

> Anyway, I suspect that the OP might find some useful information from
> this command:
>
> 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.

Still it is worth checking the logs from the systemd timers, e.g.:

journalctl --no-pager -u apt-daily-upgrade.service
journalctl --no-pager -u apt-daily.service

It is also possible that there might be systemd user timers?

systemctl --user --no-pager -l list-timers

Here, the outputs are as follows:

~~~
# 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.

# journalctl -u apt-daily.service
-- Logs begin at Wed 2021-06-02 12:24:45 CEST, end at Wed 2021-06-02  
20:54:02 CEST. --
Jun 02 12:24:55 masysma-18 systemd[1]: Starting Daily apt download  
activities...
Jun 02 12:24:55 masysma-18 systemd[1]: apt-daily.service: Succeeded.
Jun 02 12:24:55 masysma-18 systemd[1]: Started Daily apt download activities.

$ systemctl --user --no-pager -l list-timers
0 timers listed.
Pass --all to see loaded but inactive timers, too.
~~~

I do not believe to have observed the automatic download behaviour the OP  
sees despite the timers obviously being active and the script running. From  
the timings (between start and completion of the `apt.systemd.daily`) it  
seems to not do anything out of the box.

I am leaning towards the "DE explanation" -- that the upgrades are not  
caused by APT's own mechanisms but rather triggered by some DE through  
opaque means not visible in cron or systemd timers. I am not sure how I  
would go about identifying the cause there, except for checking the GUI  
configuration that all related options are turned off?

HTH
Linux-Fan

öö

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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