I just upgraded from 10.04 LTS to 12.04 LTS on my server (DELL Intel XEON). By SSH login from my mac (OS X Lion) everything is fine (no issues with command lines) but when I open a window through X11, the keyboard layout is now completely messed up. As an owner of a french mac keyboard, I got used to such issues and could deal by guessing the "QUERTY" keys, but this time it's worse.
To fix it, I tried:
sudo dpkg-reconfigure keyboard-configuration
=> no effect
then change the keyboard settings, however adding a couple of keyboard layouts did not change anything.
I feel there is something to do with the X11 forwarding. Any hints?