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

So I tried following the steps here to create a package to upload to my PPA. I ran dh_make and edited the files. However, when my package gets generated by debuild, none of the programs files show up in the package.

Here is the output of debuild:

dpkg-source: warning: ignoring deletion of directory share
dpkg-source: warning: ignoring deletion of directory share/pixmaps

Here is what the filesystem looks like:

    - packagename_1.2.orig.tar.gz
    - packagename-1.2
         - debian
             - control

The application is written in Python, if that means anything.


Here is what the packagename_1.2.orig.tar.gz looks like:

     - src
     - images
         - test.png

Unfortunately, I'm still struggling...

Here is my debian/rules file:

#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

    dh  $@



...and here is my package.install file:

src/myapp.server /usr/lib/bonobo/servers
src/myapp /usr/lib/myapp
images/test.png /usr/share/test

share|improve this question
Are you using the CDBS or debhelper? Personally, I prefer debhelper. You can see the difference here: – Dariel Dato-on Aug 1 '10 at 3:34
@odd: I am using debhelper. – Nathan Osman Aug 1 '10 at 3:39
Does the package use distutils or something else for installation? – Ressu Aug 1 '10 at 3:50
@Ressu: No. The package consists of a couple Python scripts and 5 PNGs. That's basically it. Could the format of the package-1.2.orig.tar.gz be a problem? – Nathan Osman Aug 1 '10 at 4:17
@Ressu: I added that information to the question. – Nathan Osman Aug 1 '10 at 4:29
up vote 5 down vote accepted

You don't seem to use any build system, I think that's why you're not getting any files in your package. Have you tried looking at changing your debian/rules file?

It should be pretty easy to do if you simply put a mypackage.install file in debian/ and use the format specified in man dh_install. With appropriate substitutions, that file could look like this:

src/ usr/share/mypackage/
src/ usr/share/mypackage
bin/myexecutable usr/bin
image/test.png usr/share/icons/some/icon/dir/

If you do use a build system, override the dh_auto_* targets as explain in the link above (Python Packaging Guide) so that you're installing only these files and the build system (e.g distutils) doesn't interfere with files in your package.

share|improve this answer
If this doesn't help, please post your rules file, and list all the files in your debian/ dir. – Umang Aug 1 '10 at 5:02
@Umang: Thanks for the detailed advice... I didn't touch the rules file - I left it unmodified. Would that be the problem? – Nathan Osman Aug 1 '10 at 6:57
Did you try making a mypackage.install file inside debian/? If you still got a problem, try the override_dh_auto_* (as explained in the Python Packaging Guide) – Umang Aug 1 '10 at 14:31
@umang: I posted the contents above. Still can't get it working. – Nathan Osman Aug 1 '10 at 23:11
@umang: Never mind. I fixed it. Thanks for your help! – Nathan Osman Aug 2 '10 at 0:14

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.