NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Some debconf tricks (Score:2)
It's a tricky topic because of the layers of software - dpkg handling the package format, apt handling the dependencies and debconf handling the configuration. What you need to do is pre-seed the debconf database with answers to the questions. The debconf-set-selections command seems to be the tool for the job.
The other thing you'll need to do is select the 'noninteractive' frontend to debconf to stop it asking questions. I use a command like this: