Keyboard layout switch issue in Ubuntu 18.04
Solution 1:
Besides running sudo dpkg-reconfigure keyboard-configuration
you probably need to remove it from the desktop settings too. Try this command:
gsettings reset org.gnome.desktop.input-sources xkb-options
After that the removal of the extra shortcut should survive a reboot.
Solution 2:
Two moments here:
- You should not remove
keyboard-configuration
package. It is used for console (dumb terminal) sessions. -
To save configuration produced by
sudo dpkg-reconfigure keyboard-configuration
you need to update initial RAM-drive for kernels withsudo update-initramfs -u -k all
and then reboot.