Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently trying to upload a package onto Launchpad's PPA service but I'm having problems with a path name which includes a space character. I'm trying to make a file install into a directory with a space character in it. The following is an example of the kind of directory I'm trying to install files into using the Makefile:

(/usr/share/themes/Example Directory/gtk-3.0)

I've tried the \\ escape character and have tried putting the entire path name in single quotes ('/usr/share/themes/Example Directory/gtk-3.0') in the Makefile and debian/install file in the source of the package, but it's still failing to build on Launchpad's servers.

Does anyone know any escape character that I can use in order to make Launchpad successfully build the package and make it work when I'm installing the package to my computer or are spaces in directories not supported by the Debian package system?

Thanks in advance!

share|improve this question
Post your build log. And try to build the package locally first via dpkg-buildpackage -us -uc to troubleshoot it instead of going through the potentially slow PPA build process (because of the queue). – izx Jun 7 '12 at 22:28

"?" can be used as a glob character, which works for spaces as well.


Note however that installing into a directory with spaces may not be the best idea, since they tend to be inconvenient (although applications should work with spaces unless they are buggy).

share|improve this answer

You could try /usr/share/themes/Example\040Directory/gtk-3.0 it works in fstab, you never know.

share|improve this answer
Nope, that doesn't work. – arand Jun 28 '12 at 22:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.