A way to fix this is to change line 161 of /usr/sbin/popularity-contest
Old version: open PACKAGES, "dpkg-query --show --showformat='\${status} \${package}\\n'|";
New version: open PACKAGES, "dpkg-query --show --showformat='\${status} \${packagespec}\\n'|";
I don't know if that's the proper approach, but it seems to be working.
A way to fix this is to change line 161 of /usr/sbin/ popularity- contest
Old version: '\${status} \${package}\\n'|";
open PACKAGES, "dpkg-query --show --showformat=
New version: '\${status} \${packagespec} \\n'|";
open PACKAGES, "dpkg-query --show --showformat=
I don't know if that's the proper approach, but it seems to be working.