automatically set DEBIAN_FRONTEND=noninteractive for sudo installs

I already tried to do that here: 0dcd0342

But I just noticed (fdroiddata!4524 (comment 145510634)) that this doesn't actually propagate to sudo calls.

Edited by Marcus