Package: locales Version: 2.13-35 Followup-For: Bug #692777 I believe that a working fix would be changing to "dpkg-query -s" (with a lowercase s), as it returns dpkg-query: package 'locales-all' is not installed and no information is available and a return code of 1.