sudo preserves not all existing environment variables by default
and that's why export DEBIAN_FRONTEND=noninteractive in the Makefile
did not affect anything while installing build dependencies actually.
To propagate this setting to sudo we should use the special arg
(--preserve-env=DEBIAN_FRONTEND), but unfortunately it is missing on
Debian < 10 and Ubuntu < 16.04 due to old sudo version.
So passing DEBIAN_FRONTEND=noninteractive directly.
sudo
preserves not all existing environment variables by default and that's whyexport DEBIAN_FRONTEND=noninteractive
in the Makefile did not affect anything while installing build dependencies actually. To propagate this setting tosudo
we should use the special arg (--preserve-env=DEBIAN_FRONTEND), but unfortunately it is missing on Debian < 10 and Ubuntu < 16.04 due to oldsudo
version.So passing
DEBIAN_FRONTEND=noninteractive
directly.Follows up #7