No need for anything so complex. This should work: $ fakeroot debian/rules binary Or sudo if you don't have fakeroot.