How to change keyboard settings

Hi guys!

How can I change the keyboard settings from english to german? I’ve installed Debian Version for RockPi but I didn’t find anything in the settings.

Thanks for your help.

I wrote it down from memory and hope that’s right. :wink:

export LANG=de_DE.UTF-8						
sudo dpkg-reconfigure locales
[*] de_DE.UTF-8 UTF-8
de_DE.UTF-8
sudo dpkg-reconfigure tzdata						
sudo dpkg-reconfigure keyboard-configuration
set to German - no dead keys
sudo dpkg-reconfigure console-data
sudo reboot

If this doesn’t work, you may be missing some of the necessary packages, then install them and try again.

sudo apt update
sudo apt upgrade
sudo apt install console-data 
sudo apt install console-setup
sudo apt install console-locales
sudo apt install keyboard-configuration
3 Likes

Written down from memory: I am impressed.

And it worked too :slightly_smiling_face:
Now everything’s in German.

Thank you very much.

I’m trying to configure the keyboard to Spanish but I can’t, I get errors>
linaro@linaro-alip:~$ sudo dpkg-reconfigure console-data
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “es_ES.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “es_ES.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

And when I try to run the command (sudo apt install console-locales) I get
sudo apt install console-locales
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package console-locales