Do an apt-get update before installing packages.
Correctly place 'DEBIAN_FRONTEND=noninteractive' variable before commands requiring it.