Bug#1125317: apt: 'show -a' command shows the same outdated Description for all package versions

Michael Prokop <[email protected]> Sun, 22 Mar 2026 14:59:46 +0100
Newsgroups gmane.linux.debian.apt.devel
Message-ID <2026-03-22T12-23-18__42500.199358777$1774188092$gmane$org@devnull.michael-prokop.at>
* Yuriy Darnobyt [Mon Jan 12, 2026 at 01:49:04PM +0000]:

> It happens we put package version also in the 'Description' field.
> And we noticed that when we list all available versions
> (via 'apt show openvpn-as -a' ) the Description is always the same.
> This is easy to track by comparing versions in the Description field in
> 'openvpn-as' package. All of them will have '3.0.1-84b60e70-Debian13'
> (which is not the latest btw).
>
> This issue is also reproducible on Ubuntu 24.04 with the apt version
> 2.8.3.
> But it is not reproducible on older distributives, like Debian 12 or
> Ubuntu 22.04
>
> Steps to reproduce:
>
>     DEBIAN_FRONTEND=noninteractive apt -y -qq install ca-certificates wget net-tools gnupg
>     mkdir -p /etc/apt/keyrings
>     wget https://packages.openvpn.net/as-repo-public.asc -qO /etc/apt/keyrings/as-repository.asc
>     uname -m
>     echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/as-repository.asc] http://packages.openvpn.net/as/debian trixie main" > /etc/apt/sources.list.d/openvpn-as-repo.list
>     apt update
>     apt show openvpn-as -a

I also stumbled upon this, with apt v3.0.3 on trixie, because a
transitional package wasn't displayed as such, given the wrong
package description showed up.

It's not only about apt, also apt-cache is broken.

Further STR:

  podman run --pull=always --rm -i -t -v $(pwd)/:/code:rw debian:trixie bash

  apt --update -y install grml-keyring
  ln -s /usr/share/grml-keyring/grml.sources /etc/apt/sources.list.d/
  apt update
  apt-cache show grml-scripts  # displays unexpected package description
  sed -i 's/Suites: grml-stable grml-testing/Suites: grml-testing/' /etc/apt/sources.list.d/grml.sources
  apt-cache show grml-scripts  # only now displays the expected package description, as only the newest grml-scripts package version is available then

Proper output would be:

  # apt-cache show grml-scripts | grep Description:
  Description: transitional package
  Description: Collection of little tools

While we get:

  # apt-cache show grml-scripts | grep Description:
  Description: Collection of little tools
  Description: Collection of little tools

Same behavior also with apt v3.1.16 as present in current
testing/unstable.

regards
-mika-
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEM8yxNkAa/shDo4djlqh4crfqNzcFAmm/9dAACgkQlqh4crfq
Nzc0dg//bFv35QDHavxUoC5sgxVVP6ChqHeQVegdyG6Lt88pq8DM1oL6iFCiwZP2
9bnALOol9IkuL+psKR3+KRsY0JXcvHLQTe/3wYauwKk5F26L4K10v5/3n/61Bl9m
d3W1K0ObPRJPBVzEpeKAiznVHZj1izzFG/GK9r9eDIlpVxQ3g7RmFPBPmqMXs8TL
yxjkUPtNyvkZ+3StlJfbsZ08oCFIGSZz74NAioxTJvf+WSzLR5PI0eBlObs7z5ni
HJEV9/S74jCjIQmGyx3/3amLiHmembrm4Nq59nyvgeNwWGLTJOAqZaMKnW1V9KIH
sdOkBDgFaUjHBRT98EqQsdJ1W/V0OriKj2lfwaY+Wxx+dIN2UOcQFBYNHLacc8HP
2f1MAmCwD6o0f+4B9E++YlSmfkpf3646nxZ8bz8spPwU8tqg+pqc1FWtGVuUQTA4
Q1kpAcynoUN0fnhrSMhQKSFf49F7B12ChYam0ZSPWgIZ4s5PJr6hrbIkNJoxFaoF
WprHhn7LmyUy/LvsqFH4LTWBgIAjViCyfD3QHbZ6w4iAmq5HHMRx+k6U3vF8HoXN
DFOn3q51viCnPgbxxycWmK9Ui0LzHE3TGL8bQB+qMkadqyH5iuNH6Zne4Ba1iCwM
lGbcwZTZsNSo2iwyXGJvs/m7CTEPj5Ci+KyOI0nx7FCjAy45TSA=
=r9V5
-----END PGP SIGNATURE-----