[Bug 1309062] Re: dpkg-query does not allow tilde characters

Jean-Baptiste Lallement jean-baptiste.lallement at ubuntu.com
Thu Apr 17 15:28:25 UTC 2014


Thanks for your report.

You didn't protect * and your shell expanded the command line to a file
in the current directory called linux-
image-3.2.0-55-generic_3.2.0-55.84~lp1233175v201310021603_amd64.deb
which is indeed illegal for the name of a package.

I'm closing this report because it is not a bug.

** Changed in: dpkg (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1309062

Title:
  dpkg-query does not allow tilde characters

Status in “dpkg” package in Ubuntu:
  Invalid

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1309062/+subscriptions



More information about the foundations-bugs mailing list