Package: apt-show-versions Version: 0.22.7 Severity: important When querying uninstalled packages, "apt-show-versions" fails with the error message "Use of uninitialized value $arch":
# apt-show-versions -a linux-image-4.14.0-1-amd64 linux-image-4.13.0-1-amd64 linux-image-4.13.0-1-amd64:amd64 4.13.13-1 install ok installed No stable version No stable-updates version linux-image-4.13.0-1-amd64:amd64 4.13.13-1 testing ftp.us.debian.org linux-image-4.13.0-1-amd64:amd64 4.13.13-1 unstable ftp.us.debian.org No experimental version linux-image-4.13.0-1-amd64:amd64/testing 4.13.13-1 uptodate Use of uninitialized value $arch in concatenation (.) or string at /usr/bin/apt-show-versions line 370. Use of uninitialized value $arch in hash element at /usr/bin/apt-show-versions line 373. Use of uninitialized value $arch in hash element at /usr/bin/apt-show-versions line 385. No stable version No stable-updates version No testing version No unstable version No experimental version linux-image-4.14.0-1-amd64: not installed (This output would be easier to read if the program would insert a blank line between the sections for different packages.) However, if you restrict the query to a single package, it miraculously starts working: # apt-show-versions -a linux-image-4.14.0-1-amd64 No stable version No stable-updates version No testing version linux-image-4.14.0-1-amd64:amd64 4.14.2-1 unstable ftp.us.debian.org No experimental version linux-image-4.14.0-1-amd64:amd64 not installed This bug has persisted for a long time, although various other bug reports regarding it have previously been opened, and then closed, for some reason. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715314 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725107 "apt-show-versions" still doesn't know its own version number: # apt-show-versions -V Apt-Show-Versions v.0.22.6 (c) Christoph Martin # dpkg -s apt-show-versions | grep Version Version: 0.22.7 You would think that kind of thing could be automated, somehow. -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8), LANGUAGE=en_CA.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages apt-show-versions depends on: ii apt 1.6~alpha5 ii libapt-pkg-perl 0.1.33 ii libperl5.26 [libstorable-perl] 5.26.1-3 ii perl 5.26.1-3 apt-show-versions recommends no packages. apt-show-versions suggests no packages. -- no debconf information