Keyboard - Debian Wiki
https://wiki.debian.org/Keyboard
The keyboard settings are stored in /etc/default/keyboard file provided by the keyboard-configuration package.
# dpkg-reconfigure keyboard-configuration
# service keyboard-setup restart
Menu for Country of origin for the keyboard is presented. If not sure for this, choose:
“English (US)” for “QWERTY”-keyboard
“German” for “QWERTZ”-keyboard
“French” for “AZERTY”-keyboard
“Japanese” for “QWERTY”-keyboard with extra keys aimed for Japanese.
解决Ubuntu键盘错乱问题 - KD-VS-WB - 博客园
https://www.cnblogs.com/a963383404/p/6785836.html
step1:打开终端,输入sudo vim /etc/default/keyboard 就可以修改文本内容
step2:把里面XKBLAYOUT变量的值改为“us”,us一定要小写,否则会报错。
step3:改完之后回到shell主界面输入:setupcon
step4:最后让设置立即生效输入:sudo udevadm trigger –subsystem-match=input –action=change
最终的配置文件/etc/default/keyboard