Keyboard Layout

I tried changing the keyboard layout by typing : dpkg-reconfigure console-data as mentioned in this post.
but it says that console data is not installed and that this dpkg query is not available.
what do i do?

you can try
sudo dpkg-reconfigure keyboard-configuration