Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu under VirtualBox on my Windows 7 machine. All is working okay, except that when I type a hyphen - I get an apostrophe ' instead. This happens on the command line, in the browser, and elsewhere.

Where can I change the keyboard settings to apply the correct character when keys are pressed?

I'm using VirtualBox 4.1.14 and Ubuntu 12.04.

share|improve this question
Could you tell us which type of keyboard do you have and which layout you choose. Note: there are several QWERTY keyboard, try to be more specific if you can. – Huygens May 8 '12 at 20:50
up vote 6 down vote accepted

If you open up the launcher and search for keyboard layout, you get the system dialog which controls what layout you're using. Add your keyboards layout to the list and then set it as the default :)

share|improve this answer
That was it. For some weird reason it was set to "Italian". – user237815 May 8 '12 at 22:52
  1. Select the large cog in the bottom left hand corner for System Settings.
  2. Select Keyboard layout (not Keyboard).
  3. Use the plus button to add your keyboard.
  4. The minus button to deselect Italian.
share|improve this answer
This saved me some tome, as the downloaded vbox image had italian. – RainDoctor Aug 15 '14 at 23:02

If you do not have a GUI installed then you can also fix this via the command line:

sudo dpkg-reconfigure keyboard-configuration

The keyboard type on the first screen will likely be correct ("Generic") then when you hit OK (Enter) the other screens will prompt you for language etc. Use arrow keys to scroll up and down between options and "Enter" for OK.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .