Skip to content

sources.list gets created as an empty file if it does not already exist #374

@Nihlus

Description

@Nihlus

I'm using unattended-upgrades 2.9.1 from Debian 12, and I've been having issues with /etc/apt/sources.list being recreated when I remove it. I manage all my sources through /etc/apt/sources.list.d/, and I remove sources.list as part of my system configuration to make this clear.

I've taken to linking it to /dev/null as a workaround, but I find it rather unexpected that unattended-upgrades would recreate this file when it does not exist. The problem was reported in the Debian bug tracker (https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=1025147) back in 2022 but didn't see any activity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions