I would say this should be a bug for upstream to fix. It's usually a bad idea to use "sudo" within a script because suddenly the script is opaquely running as different users. Instead, the script should either require the user to be root (or within sudo); or handle the situation where the user is not root by e.g. not installing the debian package.
The usage for sudo also prevents automated installs in most cases. This flaw breaks the package for me, even if sudo is installed on the system. My sudoers configuration prevents root from running sudo - so the final step always fails. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org