Bug#1100397: apt: Changelog unavailable for package (when not latest version)
Package: apt
Version: 2.9.33
Severity: normal
X-Debbugs-Cc: sidtosh4@gmail.com
When installed package is not latest version and index is out of date, "apt
changelog <pkg>" fails as below:
Considering "apt" as package (installed=2.9.32, update=2.9.33)
$ apt changelog apt
Err:1 https://metadata.ftp-master.debian.org apt 2.9.32 Changelog
Changelog unavailable for apt=2.9.32 (404 Not Found [IP: X.X.X.X 443])
Error: Failed to fetch https://metadata.ftp-
master.debian.org/changelogs/main/a/apt/apt_2.9.32_changelog Changelog
unavailable for apt=2.9.32 (404 Not Found [IP: X.X.X.X 443])
After "apt update", it works showing 2.9.33, 2.9.32 etc. in "apt changelog".
Expected behaviour:
It should not throw error.
-- Package-specific info:
-- (/etc/apt/preferences present, but not submitted) --
-- (/etc/apt/preferences.d/apt-listbugs present, but not submitted) --
-- (/etc/apt/sources.list present, but not submitted) --
-- (no /etc/apt/sources.list.d/* present) --
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.17-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apt depends on:
ii adduser 3.145
ii base-passwd 3.6.6
ii debian-archive-keyring 2023.4
ii libapt-pkg7.0 2.9.33
ii libc6 2.41-4
ii libgcc-s1 14.2.0-17
ii libseccomp2 2.5.5-2+b1
ii libssl3t64 3.4.1-1
ii libstdc++6 14.2.0-17
ii libsystemd0 257.4-1
ii sqv 1.2.1-6+b1
Versions of packages apt recommends:
ii ca-certificates 20241223
Versions of packages apt suggests:
ii apt-doc 2.9.33
ii aptitude 0.8.13-7
ii dpkg-dev 1.22.18
ii gnupg 2.4.7-4
ii gnupg2 2.4.7-4
ii powermgmt-base 1.38
ii synaptic 0.91.5+nmu2
ii wajig 4.1.3
-- no debconf information
Reply to: