Package: aptly Version: 1.4.0+ds1-4+b4 Severity: normal Hello,
thanks for maintaining aptly! I stumbled on a quirk setting up a mirror of bullseye-security. The standard apt line would be something like: deb https://deb.debian.org/debian-security bullseye-security main contrib non-free However, the same in aptly does not work: $ aptly mirror create security http://deb.debian.org/debian-security/ bullseye-security main contrib non-free Downloading http://deb.debian.org/debian-security/dists/bullseye-security/InRelease... gpgv: Signature made Thu 10 Feb 2022 12:21:47 CET using RSA key ID E562B32A gpgv: Good signature from "Debian Security Archive Automatic Signing Key (10/buster) <ftpmas...@debian.org>" gpgv: Signature made Thu 10 Feb 2022 12:21:47 CET using RSA key ID BBB6E853 gpgv: Good signature from "Debian Security Archive Automatic Signing Key (11/bullseye) <ftpmas...@debian.org>" ERROR: unable to fetch mirror: component main not available in repo [security]: http://deb.debian.org/debian-security/ bullseye-security, use -force-components to override It turns out that https://deb.debian.org/debian-security/dists/bullseye-security/InRelease defines the components as: Components: updates/main updates/contrib updates/non-free And aptly needs them to be spelled out exactly that way, so this works: $ aptly mirror create security http://deb.debian.org/debian-security/ bullseye-security updates/main updates/contrib updates/non-free It's rather surprising behaviour, and there's a working workaround, although I did not dig into the root cause to figure out why Components are defined that way, how apt makes it work, and what the consequences of the work around could be. Thanks, Enrico -- System Information: Debian Release: 11.2 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-10-amd64 (SMP w/4 CPU threads) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages aptly depends on: ii bzip2 1.0.8-4 ii gnupg 2.2.27-2 ii gpgv 2.2.27-2 ii libc6 2.31-13+deb11u2 ii xz-utils 5.2.5-2 aptly recommends no packages. Versions of packages aptly suggests: ii graphviz 2.42.2-5 -- no debconf information