Even if you install Ubuntu with the proper keyboard, it could happen that the terminal application is still set to EN-USA Layout.
To change the keyboard at the terminal level, login as root and issue this command from in the terminal:
dpkg-reconfigure keyboard-configuration
Then reboot Linux.