Package: apt-cacher-ng Version: 3.2-2 Severity: minor Right now apt-cacher-ng ships with TWO sets of default values: the ones hard-coded into the binary, and the ones in the default config file.
They don't match. This is confusing. Please make them match, and then (ideally) make the default acng.conf be just comments. # mkdir fnord # empty directory, i.e. compiled-in config # /usr/lib/apt-cacher-ng/acngtool printvar -c fnord LogDir /var/tmp # /usr/lib/apt-cacher-ng/acngtool printvar -c fnord CacheDir /var/tmp # /usr/lib/apt-cacher-ng/acngtool printvar -c fnord SupportDir /usr/lib/apt-cacher-ng Those first two defaults are clearly dumb, and should be fixed. Hopefully this is straightforward to do. These also don't match the default acnf.conf. # /usr/lib/apt-cacher-ng/acngtool printvar -c fnord ExThreshold 20 # /usr/lib/apt-cacher-ng/acngtool printvar -c fnord ReportPage # /usr/lib/apt-cacher-ng/acngtool printvar -c fnord Remap-debrep # The reason I want this is because I want apt-cacher-ng to allow *only* these: http://apt-cacher-ng.example.net:3142/debian http://apt-cacher-ng.example.net:3142/debian-security ...but AFAICT to achieve that I have to DELETE "Remap"-gentoo &c from acng.conf. I don't think I can do that from a dropin, e.g. this doesn't work: # cat /etc/apt-cacher-ng/zzz_cyber.conf Remap-gentoo: # /usr/sbin/apt-cacher-ng SocketPath=/run/apt-cacher-ng/socket -c /etc/apt-cacher-ng ForeGround=1 WARNING: No configuration was read from file:sfnet_mirrors Invalid entry, no configuration: Remap-gentoo: Error reading main options, terminating. So I have to edit acng.conf itself. augtool doesn't have a lens for acng.conf, because it's a weird "unique snowflake" format. So I have to replace acng.conf entirely. But LogDir and CacheDir have the wrong "default defaults". So I have to set those back to the "non-default defaults" explicitly. But that's ugly. So I am writing this bug report. :-) -- System Information: Debian Release: 10.1 APT prefers stable APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled