On Fri, Mar 11, 2011 at 06:56:58PM -0300, Rogério Brito wrote: > Package: apt-show-versions > Version: 0.17 > Severity: important > > Hi. > > On my system, apt-show-versions started complaining with the message: > > Error: No information about packages! (Maybe no deb entries?) > > Of course, I do have deb entries in my system. Reading the source code, I > saw that there was this snippet of code: > > ,---- > | @files = map { $list_dir . $_} grep /Packages$/, readdir(DIR); > `---- > > right there in the initialization of the cache. Since my system only has > gzipped files as shown by "ls /var/lib/apt/lists/*Packages*", > apt-show-versions goes on to say that it found no informations about the > packages, but the files are there, only gzipped (that is, ending with > Packages.gz extension, instead of only Packages). > > If you need any further information, please let me know.
Please fix that and use apt-get indextargets 'Created-By: Packages' combined with /usr/lib/apt/apt-helper cat-file to read the file - I added the appropriate apt-internals usertag for de...@lists.debian.org in a separate messages. I expect to turn compressed indexes on by default this release cycle, this bug will become release-critical at that point. Users might want to use apt list instead which basically provides a similar output with colors. I'd also be happy to take over apt-show-versions and replace it with the fully compatible C++ version I developed 4 years ago (it's much faster and does not need a cache, it only needs access to the apt cache, output wise it's the same as 0.21 AFAICT), and move it into the apt team. Thanks. -- Debian Developer - deb.li/jak | jak-linux.org - free software dev Ubuntu Core Developer