Distribua suas opções com debconf
e execute DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration
.
man debconf-set-seleções (1) :
NAME
debconf-set-selections - insert new default values into the debconf database
SYNOPSIS
debconf-set-selections file
debconf-get-selections | ssh newhost debconf-set-selections
Isso mostra suas configurações atuais:
$ debconf-show keyboard-configuration
keyboard-configuration/modelcode: pc105
keyboard-configuration/unsupported_config_options: true
keyboard-configuration/unsupported_config_layout: true
keyboard-configuration/toggle: No toggling
....