Bug#1059954: apt: "apt changelog" may fail because it tries to fetch an old version

Vincent Lefevre <[email protected]> Tue, 17 Feb 2026 15:36:51 +0100
Newsgroups gmane.linux.debian.apt.devel
Message-ID <20260217143651.GA784014__354.515625961938$1771339058$gmane$org@cventin.lip.ens-lyon.fr>
On 2025-02-25 19:54:27 +0100, Julian Andres Klode wrote:
> Adjusting the severity based on the complexity on the request. This
> requires calculating multiple changepaths and URLs, setting up fallback
> URLs etc, such that we first try the installed version - as we must
> do - and then try the candidate.

Note that though apt-listchanges outputs an error about this issue,
it is able to display the expected changelog.

For instance, with "apt install linux-doc", it gives

apt-listchanges: Unable to retrieve changelog for package linux-doc; 'apt-get changelog' failed with: E: Failed to fetch https://metadata.ftp-master.debian.org/changelogs/main/l/linux/linux_6.18.10-1_changelog  Changelog unavailable for linux=6.18.10-1 (404  Not Found [IP: 146.75.118.132 443])

but then

apt-listchanges: Changelogs
---------------------------

linux (6.18.10-1) unstable; urgency=medium
[...]

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)