Added export DEBIAN_FRONTEND=noninteractive to all the apt-get operations in the kali box.