Hi, On 2021-05-29 22:41:29 +0200, Adam Borowski wrote: > 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.
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). > With other bugs related to reading apt lists, perhaps you might want to > run "apt-cache dumpavail" instead of reading them manually? "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. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)