• Bug#1025147: unattended-upgrades: Migration scripts triggered by empty

    From Jan Moebius@21:1/5 to All on Wed Jul 23 15:30:01 2025
    Package: unattended-upgrades
    Version: 2.12
    Followup-For: Bug #1025147

    Dear Maintainer,

    we use some scripts to migrate from the old sources.list format to the new format
    and split the config into the sources.list.d directory. Therefore we don't need the old sources.list file anymore. Sadly the sources.list file is recreated as an empty file on every run of unattended-upgrades which in turn triggers the upgrade.
    The program should not recreate the config file when it is not existing. Especially
    not creating an empty file.

    Best Regards,
    Jan

    *** Reporter, please consider answering these questions, where appropriate ***

    * What led up to the situation?
    * What exactly did you do (or not do) that was effective (or
    ineffective)?
    * What was the outcome of this action?
    * What outcome did you expect instead?

    *** End of the template - remove these template lines ***


    -- System Information:
    Debian Release: 13.0
    APT prefers testing-security
    APT policy: (500, 'testing-security'), (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.33+deb13-amd64 (SMP w/20 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages unattended-upgrades depends on:
    ii debconf [debconf-2.0] 1.5.91
    ii lsb-base 11.6
    ii lsb-release 12.1-1
    ii python3 3.13.5-1
    ii python3-apt 3.0.0
    ii python3-dbus 1.4.0-1
    ii python3-distro-info 1.13
    ii sysvinit-utils [lsb-base] 3.14-4
    ii ucf 3.0052
    ii xz-utils 5.8.1-1

    Versions of packages unattended-upgrades recommends:
    ii anacron 2.3-43
    ii cron [cron-daemon] 3.0pl1-197
    ii systemd-sysv 257.7-1

    Versions of packages unattended-upgrades suggests:
    pn bsd-mailx <none>
    ii exim4-daemon-light [mail-transport-agent] 4.98.2-1
    ii needrestart 3.11-1
    ii powermgmt-base 1.38
    ii python3-gi 3.50.0-4+b1

    -- debconf information:
    * unattended-upgrades/enable_auto_updates: true

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)