解决方法
使用debconf为您的选项设置种子并运行DEBIAN_FRONTEND = noninteractive dpkg-reconfigure keyboard-configuration.
man debconf-set-selections(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
这会显示您当前的设置:
$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 ....