Use -y in apt-get install.