#1143584 apt: Missing check-valid-until translation in apt modernize-sources

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Samuel Thibault
Date:
2026-08-04 13:41:02 UTC
Severity:
normal
#1143584#5
Date:
2026-08-04 13:38:34 UTC
From:
To:
Hello,

Apparently apt modernize-sources misses translating the
check-valid-until option:

$ cat /etc/apt/sources.list
[...]
deb [check-valid-until=no trusted=yes] https://snapshot.debian.org/archive/debian/20210101T000000Z/ unstable main

$ apt modernize-sources
[...]

$ cat /etc/apt/sources.list.d/debian.sources
# Modernized from /etc/apt/sources.list
Types: deb
URIs: https://snapshot.debian.org/archive/debian/20210101T000000Z/
Suites: unstable
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Trusted: yes

The trusted option was translated, but the check-valid-until option was
not, while it is really needed for snapshot which is expected to have
expired certificates.

Samuel