Debian – How to install a system with apt-get without ncurses configuration screens

aptautomated-installdebianpreseed

I wrote a BASH script for doing an unattendend install on an ARM based Debian system. One of the packages being installed is samba.

I added

apt-get -y install samba

into my setup routine, but apt-get hangs due an ncurse configuration window for Samba workgroup.

How can I pass such windows? My script download the right smb.conf etc. after apt-get installed the packages.

Best Answer

-y or --assume-yes really should do it. Apparently not. :)

I think the thing to do is to put the answer in to the debconf database before installing the package. Then it'll already know the answer and shouldn't prompt. There's an example of doing that here.