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?

link|improve this question
feedback

migrated from stackoverflow.com Feb 23 '11 at 16:50

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

1 Answer

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.

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

Your Answer

 
or
required, but never shown

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