Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

General Questions • Re: [Software] Debian security updates

$
0
0
unattended-upgrades used to be a default install with Gnome, but isn't any more, yet Gnome still alerts users of updates. How? I don't know - the chain seems to be broken.
[...]
I don't understand the Systemd timer well enough to understand if it is actually configured in Gnome/KDE to update the package list without an Apt config file. fabien posted some script here which may be the missing link.

viewtopic.php?p=799782#p799782
Yes, the idea was that the update was triggered by these services. This is a good opportunity to test if this disables updates in KDE.

Code:

#> systemctl stop apt-daily-upgrade.timer#> systemctl stop apt-daily.timer#> systemctl disable apt-daily-upgrade.timer#> systemctl disable apt-daily.timer
That is what I thought when I read your original post, but then I saw a topic where it was suggested that Apt config settings are necessary too, I think this one.

https://askubuntu.com/questions/1408639 ... n-20auto-u

I recently installed Debian 12 XFCE and observed that the timers were present, but I didn't observe any update notifications with my update script, which basically runs

Code:

aptitude search '~U' | wc -l
until I installed apt-config-auto-update and had APT::Periodic::Update-Package-Lists "1"; in 10periodic.

My methodology in testing this may well have been wrong.

The script /usr/lib/apt/apt.systemd.daily has this:

Code:

# This file understands the following apt configuration variables:# Values here are the default.# Create /etc/apt/apt.conf.d/10periodic file to set your preference.## All of the n-days interval options also accept the suffixes# s for seconds, m for minutes, h for hours, d for days or# the "always" value to do the action for every job run,# which can be used with systemd OnCalendar overrides to# define custom schedules for the apt update/upgrade jobs.##  Dir "/";#  - RootDir for all configuration files##  Dir::Cache "var/cache/apt/";#  - Set apt package cache directory##  Dir::Cache::Archives "archives/";#  - Set package archive directory##  APT::Periodic::Enable "1";#  - Enable the update/upgrade script (0=disable)#
Which suggests that the default for APT::Periodic::Enable "1"; is inactive, and 10periodic is necessary to change the default.

Is there some change to the Systemd script that Gnome and KDE make to enable an update check, or is my understanding of how apt-daily.time works wrong? Quite possible the latter, and my knowledge of scripting is very basic.

Statistics: Posted by FreewheelinFrank — 2024-07-07 06:11



Viewing all articles
Browse latest Browse all 2901

Trending Articles