Some packages installations require user interaction. If you are installing/upgrading packages using the apt command, add the next option at the beginning of your apt command: DEBIAN_FRONTEND=noninteractiveFor example:
DEBIAN_FRONTEND=noninteractive apt-get -y install <package name>