Debian Package Tracker
Register | Log in
Subscribe

unattended-upgrades

automatic installation of security upgrades

Choose email to subscribe with

general
  • source: unattended-upgrades (main)
  • version: 2.14
  • maintainer: Michael Vogt (DMD)
  • arch: all
  • std-ver: 4.1.4
  • VCS: Git (QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 2.8
  • oldstable: 2.9.1+nmu3
  • stable: 2.12
  • testing: 2.14
  • unstable: 2.14
versioned links
  • 2.8: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 2.9.1+nmu3: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 2.12: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 2.14: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • unattended-upgrades (66 bugs: 0, 45, 21, 0)
action needed
4 bugs where the maintainer asks for help normal
The bug tracker contains 4 bugs tagged help: the maintainer asks for help with them.
Created: 2019-03-21 Last update: 2026-12-06 11:00
5 bugs with a patch to review in the bug tracker normal
The bug tracker contains patches fixing 5 bugs to review: include them, or remove the patch tag.
Created: 2026-11-25 Last update: 2026-12-06 11:00
12 new commits since last upload, is it time to release? normal
vcswatch reports that this package seems to have new commits in its VCS but has not yet updated debian/changelog. You should consider updating the Debian changelog and uploading this new version into the archive.

Here are the relevant commit logs:
commit bf69c008fd1bc058be074c112963b5fb357f057e
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Fri Dec 4 21:00:53 2026 +0100

    Use logging.warning() and fix a typo in a debug message
    
    logging.warn() is a deprecated alias of logging.warning() since Python
    3.3; replace it in the plugin loading and in test_in_chroot.py. Also fix
    "conffile ... in missing on the system" in a debug message.
    
    No translated message changes.
    
    Assisted-by: Claude Code:claude-opus-5-5

commit 8ec885273ad5543edfd889fcd18ca17816615db4
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Mon Nov 30 18:40:12 2026 +0100

    Update POT file
    
    Regenerated with "python3 setup.py build_i18n" from the current sources,
    so the translators can work from a complete and up-to-date template.
    
    It adds the only message that was missing, "The following packages
    require a reboot:" (d72e126, PR #471). No message became obsolete: the
    other changes are only the source line references, moved by the code
    changes since the last update (0c7f77a).
    
    Assisted-by: Claude Code:claude-opus-5-5

commit 629f13b97d6d21aadb0777f458c396c3399daf3f
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Tue Dec 1 21:40:53 2026 +0100

    Do not flood the log with stop signals at shutdown
    
    unattended-upgrade-shutdown sends SIGTERM to unattended-upgrade on every
    iteration until the run ends, and unattended-upgrade logs a warning for
    each one. The iterations were also twice as frequent as intended:
    start_iterations() checks iter_timer_set but never sets it, so
    PrepareForShutdown() and the SIGTERM from systemd each added a periodic
    timer.
    
    During a long step at shutdown, e.g. a DKMS build or a slow maintainer
    script with InstallOnShutdown, this filled unattended-upgrades.log and
    the journal with "Signal 15 received, will stop" every 1.5 s (50 lines
    in 75 s in a test VM; also seen in LP: #2167771).
    
    Add the periodic timer only once, still schedule an immediate iteration
    on every call so that the stop signal is acted upon at once, and log
    only the first stop signal. The signal is still sent on every iteration
    as before.
    
    Assisted-by: Claude Code:claude-opus-5-5

commit 3ec97b74acef6815ad708bcb5aaeb6b0e4181170
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Mon Nov 30 22:40:29 2026 +0100

    Do not pass "/" as rootdir to apt.Cache
    
    Since 8174871 (1.14) main() defaults to rootdir="/", and
    UnattendedUpgradesCache passes it on to apt.Cache. With a rootdir,
    apt.Cache reads its etc/apt/apt.conf and etc/apt/apt.conf.d on top of
    the config already loaded, so every unnamed list entry ends up twice:
    the DPkg::Pre-Invoke, DPkg::Pre-Install-Pkgs and DPkg::Post-Invoke hooks
    run twice for each dpkg run, the DPkg::Options are passed twice, and so
    on. It also creates the apt files and dirs missing in the rootdir, so an
    empty /etc/apt/sources.list on systems that only use sources.list.d.
    
    Do not pass "/" to apt.Cache anymore. The only part of that setup still
    needed was the creation of /var/cache/apt/archives/partial: apt creates
    it on its own runs but python-apt does not, so with /var/cache/apt on
    tmpfs the downloads failed (#202). Create it explicitly under the
    configured Dir::Cache::archives, which also makes a custom archives dir
    work.
    
    Fixes #316
    Fixes #374
    Closes: #1033276
    Assisted-by: Claude Code:claude-opus-5-5

commit e29890b00ec9dd7e550237a6dd2d41ed3df88312
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Mon Nov 30 20:57:44 2026 +0100

    Do not run the dpkg hooks of apt in dry-run mode
    
    With --dry-run, u-u sets Debug::pkgDPkgPM so that apt does not call
    dpkg, but apt still runs the DPkg::Pre-Invoke, DPkg::Pre-Install-Pkgs
    and DPkg::Post-Invoke hooks, unlike a simulation with "apt-get -s". So a
    dry-run has real side effects: for example dpkg-preconfigure (the hook
    of debconf) preconfigures the packages, etckeeper may commit the pending
    changes in /etc, and apt-listbugs queries the BTS and, when stdout is
    not a terminal, pins the buggy packages in
    /etc/apt/preferences.d/apt-listbugs.
    
    On a terminal it is worse: in dry-run the output of dpkg is not
    redirected to the log, so apt-listbugs sees a terminal on stdout and
    prompts, but stdin is /dev/null, and it prints its prompt and help
    forever.
    
    Clear the three hooks in dry-run mode, and add tests that they run on a
    real upgrade but not in dry-run mode.
    
    Closes: #1089592
    Assisted-by: Claude Code:claude-opus-5-5

commit d72e126edb6fc77220c913f42efe7cd3a614af1a
Author: Max Van Massey <mvmassey012@gmail.com>
Date:   Sun Nov 29 15:56:05 2026 +0000

    Include packages from reboot-required.pkgs in reboot warning
    
    When /var/run/reboot-required is present, read /var/run/reboot-required.pkgs
    (if available) and append the deduplicated list of packages requiring a
    reboot to the summary email notification.
    
    Closes: #812122
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

commit cf1166e899868d32943bfd50105b4b84054b5210
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Fri Nov 20 18:08:44 2026 +0100

    shutdown: use GLibUnix.signal_add() where available
    
    With newer GLib and pygobject (sid, Ubuntu 26.04) GLib.unix_signal_add()
    is deprecated and unattended-upgrade-shutdown logs
    "PyGIDeprecationWarning: GLib.unix_signal_add is deprecated; use
    GLibUnix.signal_add instead" at every start.
    
    Use GLibUnix.signal_add() when it exists and fall back to
    GLib.unix_signal_add() otherwise. Both take the same arguments, so the
    handler does not change. The fallback is needed on older systems:
    bookworm has no GLibUnix namespace (gi.require_version() raises
    ValueError there), and trixie and Ubuntu 24.04 have GLibUnix but only
    with signal_add_full(); on those GLib.unix_signal_add() is not
    deprecated.
    
    Closes: #1146262
    Thanks: Florian Neumeyer
    Assisted-by: Claude Code:claude-opus-5-5

commit f682c7ff54ab5dc9a9e547f3e4d868cb37ec9a2f
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Wed Nov 25 21:16:31 2026 +0100

    Explain that Dl-Limit is a global apt option
    
    The comment on Acquire::http::Dl-Limit in the templates and the README
    present it as a limit for the upgrades fetched by unattended-upgrades,
    but it is an apt option read from /etc/apt/apt.conf.d, so it limits
    every download done by apt on the system. Say so, and give the unit as
    KiB/s, since apt multiplies the value by 1024.
    
    Acquire::http::Dl-Limit also limits https sources, because the https
    method falls back to the http options, but apt downloads from one server
    at a time only when Dl-Limit is set for the scheme of the source. With
    only the http one, apt downloads from several https servers in parallel,
    each at the limit. Add Acquire::https::Dl-Limit to the example and
    explain why.
    
    Fixes #362
    Closes: #950494 #1136671
    Thanks: Lorenzo Simonelli
    
    Assisted-by: Claude Code:claude-opus-5-5

commit 0a29312906e2725d2646c9ed14a3488170c49f58
Author: Yudi Kurniawan <yudikur245@gmail.com>
Date:   Wed Nov 25 20:32:21 2026 +0100

    Add the Indonesian debconf translation
    
    Translation sent in Debian bug #1154970, using the corrected file from the follow-up message, which adds the missing spaces at the end of the continued lines.
    
    Closes: #1154970

commit b5e9248266e7a2447ae1f723d3b898b0734e2625
Author: Fabio Fantoni <fantonifabio@tiscali.it>
Date:   Fri Nov 20 17:49:13 2026 +0100

    Do not log the metered check at info level without NetworkManager
    
    Since 25a70c0 (GH: #404) is_metered_connection() reads the
    NetworkManager "Metered" property from the system bus and logs any
    GLib.Error at info level. On systems without NetworkManager, for example
    with ifupdown, or without a system bus at all, that is the normal case,
    yet every run adds "Checking if connection is metered is skipped because
    NetworkManager could not be queried: ... NameHasNoOwner ..." to the log
    and to the mail. With Gio.NetworkMonitor, used up to 2.12, nothing was
    logged there.
    
    Log these two cases, no system bus (G_IO_ERROR_NOT_FOUND) and no owner
    for org.freedesktop.NetworkManager (NameHasNoOwner), at debug level
    only. Other errors, for example a timeout from a running NetworkManager,
    are still logged at info level. The message is unchanged, so the
    translations are not affected.
    
    Closes: #1153415
    Assisted-by: Claude Code:claude-opus-5-5

commit e8cc4e7a942c4ce9f875b4d568c7509b0f4be692
Author: Pavlo Sukhanov <5265045+toothywalrus@users.noreply.github.com>
Date:   Thu Nov 12 14:16:29 2026 -0500

    Read conffiles from debs whose data.tar lacks the "./" prefix
    
    get_md5sum_for_file_in_deb() extracted the conffile with
    "tar -x -O ./etc/foo". Some tools, cargo-deb for example, store the
    data.tar members as "etc/foo", which dpkg accepts, but tar then finds no
    member and the function returned the md5sum of empty output. That never
    matches the md5sum in the dpkg status, so a package whose shipped
    conffile did not change was reported as having a conffile prompt and was
    kept back on every run, although dpkg upgrades it without asking
    (GH: #426).
    
    Read the dpkg-deb --fsys-tarfile stream with the tarfile module instead
    and compare the normalized member names, so "./etc/foo", "etc/foo" and
    "/etc/foo" all match. If the deb holds the conffile twice, the last copy
    is hashed, the one dpkg leaves on disk. As before, a missing member or
    an unreadable deb gives the md5sum of empty content, which is treated as
    a conffile prompt; both are now logged as warnings, where tar used to
    print its error, and so is a dpkg-deb failure. The rest of the stream is
    read before dpkg-deb is waited for, so that padding after the end of the
    archive does not make it fail on a closed pipe.
    
    In the loop over the package's conffiles, skip entries with flags, like
    "remove-on-upgrade /etc/foo", which are not files in the deb, and check
    the installed file first: without one there is no prompt, so the deb is
    not read.
    
    The test repacks conf-test-package_1.0.deb without the "./" prefix in
    test/packages/Makefile.

commit 5d4ae95eb07af6160e48a9bdd0dd09b429d4d2f0
Author: Pavlo Sukhanov <5265045+toothywalrus@users.noreply.github.com>
Date:   Thu Nov 12 14:16:19 2026 -0500

    Add an md5sum() helper for the apt_pkg.Hashes loop
    
    get_md5sum_for_file_installed() looks for the MD5Sum among
    apt_pkg.Hashes().hashes; move that into md5sum(), which takes bytes or a
    binary file object, so the next commit can use it for content read from
    the deb as well.
Created: 2026-09-29 Last update: 2026-12-05 20:02
lintian reports 7 warnings normal
Lintian reports 7 warnings about this package. You should make the package lintian clean getting rid of them.
Created: 2026-07-07 Last update: 2026-11-16 07:00
Standards version of the package is outdated. wishlist
The package should be updated to follow the last version of Debian Policy (Standards-Version 4.7.4 instead of 4.1.4).
Created: 2014-07-05 Last update: 2026-11-15 23:01
news
[rss feed]
  • [2026-11-18] unattended-upgrades 2.14 MIGRATED to testing (Debian testing watch)
  • [2026-11-15] Accepted unattended-upgrades 2.14 (source) into unstable (Michael Vogt)
  • [2026-08-31] unattended-upgrades 2.13 MIGRATED to testing (Debian testing watch)
  • [2026-07-06] Accepted unattended-upgrades 2.13 (source) into unstable (Michael Vogt)
  • [2026-01-26] unattended-upgrades 2.12+nmu1 MIGRATED to testing (Debian testing watch)
  • [2026-01-24] Accepted unattended-upgrades 2.12+nmu1 (source) into unstable (Colin Watson)
  • [2025-01-04] unattended-upgrades 2.12 MIGRATED to testing (Debian testing watch)
  • [2025-01-01] Accepted unattended-upgrades 2.12 (source) into unstable (Michael Vogt)
  • [2024-09-12] unattended-upgrades 2.11+nmu1 MIGRATED to testing (Debian testing watch)
  • [2024-09-10] Accepted unattended-upgrades 2.11+nmu1 (source) into unstable (Michael Biebl)
  • [2024-05-29] unattended-upgrades 2.11 MIGRATED to testing (Debian testing watch)
  • [2024-05-26] Accepted unattended-upgrades 2.11 (source) into unstable (Michael Vogt)
  • [2024-02-12] Accepted unattended-upgrades 2.10 (source) into unstable (Michael Vogt)
  • [2024-01-28] unattended-upgrades 2.9.1+nmu4 MIGRATED to testing (Debian testing watch)
  • [2024-01-24] Accepted unattended-upgrades 2.9.1+nmu4 (source) into unstable (Stefano Rivera)
  • [2023-01-09] unattended-upgrades 2.9.1+nmu3 MIGRATED to testing (Debian testing watch)
  • [2023-01-05] Accepted unattended-upgrades 2.9.1+nmu3 (source) into unstable (Paul Gevers)
  • [2022-10-29] unattended-upgrades 2.9.1+nmu2 MIGRATED to testing (Debian testing watch)
  • [2022-10-27] Accepted unattended-upgrades 2.9.1+nmu2 (source) into unstable (Boyuan Yang)
  • [2022-10-15] Accepted unattended-upgrades 2.9.1+nmu1 (source) into unstable (Michael Biebl)
  • [2022-07-27] unattended-upgrades 2.9.1 MIGRATED to testing (Debian testing watch)
  • [2022-07-21] Accepted unattended-upgrades 2.9.1 (source) into unstable (Balint Reczey)
  • [2021-03-02] unattended-upgrades 2.8 MIGRATED to testing (Debian testing watch)
  • [2021-02-19] Accepted unattended-upgrades 2.8 (source) into unstable (Balint Reczey)
  • [2020-08-08] unattended-upgrades 2.7 MIGRATED to testing (Debian testing watch)
  • [2020-08-05] Accepted unattended-upgrades 2.7 (source) into unstable (Balint Reczey)
  • [2020-08-04] Accepted unattended-upgrades 2.6 (source) into unstable (Balint Reczey)
  • [2020-07-24] unattended-upgrades 2.5 MIGRATED to testing (Debian testing watch)
  • [2020-07-21] Accepted unattended-upgrades 2.5 (source) into unstable (Balint Reczey)
  • [2020-05-13] unattended-upgrades 2.4 MIGRATED to testing (Debian testing watch)
  • 1
  • 2
bugs [bug history graph]
  • all: 71 74
  • RC: 0
  • I&N: 43 45
  • M&W: 20 21
  • F&P: 8
  • patch: 5
  • help: 4
  • NC: 4
links
  • lintian (0, 7)
  • buildd: logs, reproducibility
  • popcon
  • browse source code
  • other distros
  • security tracker
  • screenshots
  • l10n (94, 45)
  • debci
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 2.12ubuntu9
  • 105 bugs (2 patches)
  • patches for 2.12ubuntu9

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing