[Bug 1086997] [NEW] apt-get fails if a package has a space in its Filename

Daniel Hartwig mandyke at gmail.com
Thu Dec 6 01:44:57 UTC 2012


On 6 December 2012 05:09, Thomas Bushnell, BSG
<1086997 at bugs.launchpad.net> wrote:
> If a package has a space in its Filename: entry in the Packages file,
> you get errors on HTTP resolution.

Why are there spaces, is it due to a service that munges filenames
with “s/+/ /g” on upload?  Provide example.  Issue on Amazon S3 has
already been reported; is a wontfix bug in their system; and has the
work-around of percent-encoding the filename during upload (IIRC).

> Normal Debian repos don't have a case like that, but the Packages file
> should work even if packages are not stored in the pool in the most
> usual way.

There is very little restriction on directory structure, however,
format of filenames is effectively restricted by the combination of
debian-policy and the names that dpkg-deb generates.  Note that
dpkg-deb is the only supported tool for creating binary packages.
Other tools rely on the naming scheme used by dpkg-deb, especially in
contexts where Filename is not available.

Further, filenames with spaces can not appear in the Filename field as
space is used to separate multiple filenames.

Ref: debian-policy appendices B through D

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

Title:
  apt-get fails if a package has a space in its Filename

Status in “apt” package in Ubuntu:
  New

Bug description:
  If a package has a space in its Filename: entry in the Packages file,
  you get errors on HTTP resolution.

  Normal Debian repos don't have a case like that, but the Packages file
  should work even if packages are not stored in the pool in the most
  usual way.

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




More information about the foundations-bugs mailing list