Manage Interactive Input: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(→‎References: +subsection "More reading")
Line 21: Line 21:
== References ==
== References ==
* [https://lists.uni-koeln.de/pipermail/linux-fai/2007-May/004965.html "Install Sun Java on etch"] (discussion on linux-fai mailing list, 09-May-2007)
* [https://lists.uni-koeln.de/pipermail/linux-fai/2007-May/004965.html "Install Sun Java on etch"] (discussion on linux-fai mailing list, 09-May-2007)
=== More reading ===
* [http://www.debian.org/releases/lenny/example-preseed.txt example-preseed.txt] (sample from Debian/lenny)
* [https://help.ubuntu.com/8.04/installation-guide/i386/preseed-using.html Using preseeding] (Ubuntu documentation)
* [http://www.emdebian.org/release/grip/a1106.html Automating the installation using preseeding] (Embedded Debian documentation)




[[Category:Howto]]
[[Category:Howto]]

Revision as of 14:59, 6 May 2010

Some Debian packages request interactive input by a user for installation. This how-to describes how to handle such situations that usually produce an error in the installation process.

Problem (Example)

When installing Java (Debian package sun-java6-bin) the package requests you to accept Sun's license before the installation is effectively performed. If you have this package (or a package having a dependency to it) in a FAI class the installation may result in the following error:

sun-dlj-v1-1 license could not be presented
try 'dpkg-reconfigure debconf' to select a frontend other than noninteractive
dpkg: error processing ...

Note: The problem is debconf must ask for acceptance of the Java license. As aptitude runs in non-interactive mode it aborts installing the package.

Solution

Questions by debconf can be answered in the FAI config space in the debconf folder. This is called "debconf preseeding".

Debconf preseeding is done by adding to debconf/DEFAULT (or the like) something like:

sun-java6-bin   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jdk   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jre   shared/accepted-sun-dlj-v1-1    boolean true

References

More reading