Public bug reported: On a Ubuntu 12.04 install (at least) dpkg-query does not allow tilde characters, contradicting Ubuntu Policy Manual [1].
$ dpkg -l | grep linux-image | grep ^ii ii linux-image-2.6.32-57-server 2.6.32-57.119 Linux kernel image for version 2.6.32 on x86_64 ii linux-image-3.2.0-57-generic 3.2.0-57.87~lp1233175v201404142219 Linux kernel image for version 3.2.0 on 64 bit x86 SMP $ dpkg-query -W linux-image-3* dpkg-query: error: package name in specifier 'linux-image-3.2.0-55-generic_3.2.0-55.84~lp1233175v201310021603_amd64.deb' is illegal: character `~' not allowed (only letters, digits and characters `-+._') Although this works: $ dpkg-query -W linux-image-3.2.0-57-generic linux-image-3.2.0-57-generic 3.2.0-57.87~lp1233175v201404142219 So it looks like there is a problem with the filtering/globbing/expansion logic. === Upstream version: 3.2.0-55.84~lp1233175v201310021603 Policy states: "The upstream_version may contain only alphanumerics[38] and the characters . + - : ~ (full stop, plus, hyphen, colon, tilde) and should start with a digit. If there is no debian_revision then hyphens are not allowed; if there is no epoch then colons are not allowed." [1]: http://people.canonical.com/~cjwatson/ubuntu-policy/policy.html/ch- controlfields.html ** Affects: dpkg (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1309062 Title: dpkg-query does not allow tilde characters To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1309062/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs