1

I've recently upgraded my install of VirtualBox to 5.2.28, and while trying to reconfigure the VM's I find data entered into any field turns into gibberish. For arguments sake, I type in 23 and the field becomes 0- which of course isn't valid. The rest of the keyboard is similarly affected.

VirtualBox is the only thing affected by this problem. The original 14.04LTS install worked without a problem, and upgrade to 5.2.x broke it. The default install for 18.04LTS is also broken the same way at 5.2.18

Never seen anything like it before, any ideas?

Aenter image description here

In case this helps identify the current mapping, qwerty comes out as 4c.gvn

EDIT: Well its still going on, not only that, but a fresh install of 18LTS actually gives me the same result.

A.Adverse
  • 195

1 Answers1

0

I think you are using the wrong keyboard layout. Open your launcher and search for keyboard layout. From there you should be able to add your keyboards layout to the list. You should set it as the default keyboard.

step 1

step 2

step 3

Incorrect keyboard mapping on Ubuntu under VirtualBox


Edit:

If you only have CLI than you can try

# dpkg-reconfigure keyboard-configuration
# service keyboard-setup restart

When you run dpkg-reconfigure keyboard-configuration you should get a prompt for what keyboard layout you have/want, follow the prompts.

Source: Debian Keyboard configuration

From that I have seen this works for people using 14.04 though some say they had to use sudo when running it.

more information can be found here: how-to-permanently-configure-keyboard

Jeff
  • 1,674
  • whats a launcher? I don't see any kb mapping/layout options in VB – A.Adverse May 04 '19 at 22:33
  • For what its worth, this is running under VNC. It opens with a console, and VB and that's it. – A.Adverse May 04 '19 at 22:43
  • @A.Adverse I've added some images that I hope help clear things up for you. – Jeff May 05 '19 at 19:19
  • 1
    Thanks for the images, is there some way to do this from CLI the server has no GUI. VirtualBox is only running in a VNC session. – A.Adverse May 06 '19 at 09:31
  • The image I've added shows my VNC desktop. Until a recent "upgrade" it used to open a console as well. – A.Adverse May 06 '19 at 09:38
  • @A.Adverse Ah ok CLI only. What version of Ubuntu are you using? – Jeff May 06 '19 at 12:53
  • This particular server is on 14.04.6 – A.Adverse May 07 '19 at 17:39
  • @A.Adverse I've edited my answer to include a CLI section. If this works for you please accept and upvote my answer. If it does not, let me know I'll see what I can do. – Jeff May 07 '19 at 18:26
  • Odd I don't see any "result" from it... however off to see if did anything. No change, still gibberish. I haven't read your extra info yet though – A.Adverse May 08 '19 at 00:09
  • 1
    /etc/default/keyboard is showing pc105 and US for model and layout, and re running dpkg-reconfigure isn't making any change. Even after running udevadm trigger --subsystem-match=input --action=change for good measure – A.Adverse May 08 '19 at 00:23
  • Anyone else with any ideas? Its like VNC or VirtualBox is picking up the wrong keyboard from the system? – A.Adverse May 14 '19 at 03:23
  • @A.Adverse ok some things to try, turn on the onscreen keyboard see if the layout looks right of if there is a mismatch with what you are using. https://ccm.net/faq/35051-enable-the-on-screen-keyboard-on-ubuntu – Jeff May 14 '19 at 17:35
  • @A.Adverse Also, see if you can change the language to something else (french maybe). press some keys (ones that are give weird outputs) before you do so, note the result, then change the keyboard language, then press the same keys and see if you get the same result. – Jeff May 14 '19 at 17:37
  • 1
    Ok, no idea how to turn on a virtual keyboard, I did try changing the settings to DE for german, but also no change. – A.Adverse May 15 '19 at 09:41
  • 1
    following your link above at the moment, not sure it'll make much difference I don't have a full X install. On the server there is NO keyboard, my local keyboard is an Apple KB.

    No X keyboard found. WARNING: OnboardGtk: vk :XkbGetKeyboard failed.

    All keys have ? on them.

    – A.Adverse May 15 '19 at 09:46
  • oh right, sorry I forgot you were running a server version. there may still be a way to do a onscreen keyboard if you connect to it "remotely" but that link is not going to be helpful. – Jeff May 15 '19 at 11:47
  • @A.Adverse Ok, so this might be a bug. There is a possible work around in the bug report that may be worth a try. But it didn’t work for another user. they do have a bit of a different setup. https://bugs.launchpad.net/onboard/+bug/1001736 – Jeff May 15 '19 at 12:23
  • 1
    I can't find an xorg.conf, a du -a turns up a /usr/share/X11/xorg.conf.d but I can't find anything useful in there. The man page mentions an /etc/xorg.conf but creating one, and putting the entries in it, doesn't do anything either. – A.Adverse May 16 '19 at 07:08
  • Help..........! – A.Adverse Jun 29 '19 at 06:07
  • The default install from 14.04:LTS worked perfectly, as soon as it was "upgraded" it failed with this problem. The default install for 18.04LTS has the same keyboard problem. – A.Adverse Jun 30 '19 at 20:36