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 have some files that need to be installed in /usr/share/wallpapers when the deb package is installed. I have created the changelog, control files etc. However I don't know how to put the files in it. I have tried using dh_install however I get:

cp can not stat directory debian/tmp//usr/share/wallpapers

How can I go about extracting the wallpapers from the deb file to /usr/share/wallpapers?

share|improve this question
up vote 1 down vote accepted

Folders are handled in the same way as files. Add a line to the your_application.install file, like your_wallpapers /usr/share/, to install the your_wallpapers folder into the directory /usr/share/.

share|improve this answer
What do i have in the rules file – Isaacm Mar 7 '14 at 7:31
ok, pasting code in a comment does not work, but are you sure the directory /usr/share/wallpapers exists? if not, you should create a folder wallpapers and install it into /usr/share – Jacob Vlijm Mar 7 '14 at 7:38
Do I need any special entries for the .install file – Isaacm Mar 7 '14 at 7:40
No, it is basically a list of files and directories, followed by the locations they should be copied into. My guess is that something is wrong there – Jacob Vlijm Mar 7 '14 at 7:48
Thanks for the link. I followed the instructions and build the deb and all is working now. – Isaacm Mar 7 '14 at 19:46

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.