Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I run the command:

dpkg -b myprog

and

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 stackoverflow.com Feb 23 '11 at 16:50

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

1 Answer 1

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

 
discard

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.