#989234 apt-show-versions: shows abandoned apt lists

#989234#5
Date:
2021-05-29 20:41:29 UTC
From:
To:
Package: apt-show-versions
Version: 0.22.12
Severity: normal

Hi!
If the machine had an apt source removed for whatever reason (dist-upgraded
from a past Debian release, a foreign architecture removed, etc), apt leaves
the obsolete lists in /var/apt/lists/.  While I find purpose of that
behaviour questionable, it's how things currently are, and even if this
changes in the future, you may expect cruft from past apt versions.

apt-show-version shouldn't read those files.

With other bugs related to reading apt lists, perhaps you might want to
run "apt-cache dumpavail" instead of reading them manually?


Meow!

#989234#10
Date:
2023-07-11 11:53:00 UTC
From:
To:
Hi,

This seems to be the same bug as 855428 (note that the user is not
using a foreign architecture, otherwise this would be signaled by
"apt-cache policy"; as he says, the archives "happen to be on the
same disk" -- perhaps a foreign architecture removed or some other
reason).

"apt-cache dumpavail" doesn't seem to list the different versions
(and the -a option doesn't work with it). This is necessary at least
for "apt-show-versions -a". It doesn't show the provenance either.