On Fri, Jun 20, 2025 at 2:28 AM <[email protected]> wrote: > > On Thu, Jun 19, 2025 at 05:40:24PM -0400, Jeffrey Walton wrote: > > [...] > > > It might be worth mentioning that if the package owns sources.list, > > then you should not edit it. You should allow the package maintainer > > to edit or replace sources.list. Place your changes in > > /etc/apt/sources.list.d/. > > tomas@caliban:~$ dpkg -S /etc/apt/sources.list > dpkg-query: no path found matching pattern /etc/apt/sources.list > > It seems no package "owns" sources.list. Besides, it's in /etc, so by > convention it would be a conffile [1], i.e. Debian expects the sysadmin > to change things and copes with it.
SSH config files are located in /etc, too. But admins are expected to make changes to /etc/ssh/sshd_config.d/, and not /etc/ssh/sshd_config. That allows the SSH package maintainer to update or replace sshd_config. Jeff

