更新系统后键盘坏了!我无法添加键盘布局!“添加”按钮已禁用!
如何恢复系统?
$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"
$ apt-cache policy mate-control-center
mate-control-center:
Installed: 1.20.2-2ubuntu1
Candidate: 1.20.2-2ubuntu1
Version table:
*** 1.20.2-2ubuntu1 500
500 http://ru.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
您必须使用下面的单个长命令更改
/etc/default/keyboard
为正确的值:然后运行
sudo dpkg-reconfigure keyboard-configuration
,然后您可以从 Keyboard Preferences (
mate-keyboard-properties
) 设置键盘布局。