Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

When I run the command:

dpkg -b myprog


sudo dpkg -i myprog.deb

The file in /usr/bin and /usr/share/, etc. stay with my username as owner and creator of the file when all the other are with root as owner and creator. What am I doing wrong?

share|improve this question

migrated from Feb 23 '11 at 16:50

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

Try chown'ing all the files to root before running dpkg -b.

Packages are normally created with dpkg-buildpackage because it can use fakeroot to insure all files are owned by root.

share|improve this answer
Thankyou very must. I did it with: "fakeroot dpkg -b qtgameoflife-1.2/" – petermlm Feb 23 '11 at 17:47

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.