sudo dpkg-reconfigure keyboard-configuration
或者
或者
sudo vim /etc/default/keyboard
# documentation on what to do after having modified this file.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="logitech_base"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
:wq
sudo reboot