1

After updating of system keyboard is broken! I can not add keyboard layout! Button "Add" is disabled!

How I can restore the system?

See here


$ 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
4
  • What is your Ubuntu version? What is your MATE version? What do you mean by "After updating of system keyboard "? Please add output of cat /etc/default/keyboard and apt-cache policy mate-control-center to the question by editing it.
    – N0rbert
    Dec 27, 2019 at 20:11
  • Also please add output of gsettings list-recursively org.mate.peripherals-keyboard-xkb.kbd to the question.
    – N0rbert
    Dec 27, 2019 at 20:19
  • $ cat /etc/default/keyboard # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="" XKBOPTIONS="" BACKSPACE="guess" Dec 29, 2019 at 7:43
  • $ 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 Dec 29, 2019 at 7:49

1 Answer 1

0

You have to change /etc/default/keyboard to correct values with single long command below:

cat <<EOF | sudo tee /etc/default/keyboard 
# KEYBOARD CONFIGURATION FILE 
# Consult the keyboard(5) manual page. 
XKBMODEL="pc105"
XKBLAYOUT="us,ru"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle"
BACKSPACE="guess"

EOF

and then run sudo dpkg-reconfigure keyboard-configuration
and then you can set keyboard layouts from Keyboard Preferences (mate-keyboard-properties) .

4
  • Thank you very much! It's working! Dec 29, 2019 at 8:04
  • Great, so you can accept my answer :)
    – N0rbert
    Dec 29, 2019 at 8:05
  • How can I mark your answer correctly? I do not see the corresponding button or link Dec 30, 2019 at 1:11
  • Thanks, you did it right :)
    – N0rbert
    Dec 30, 2019 at 10:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .