Thank you vanvugt, it works for me with Ubuntu 17.10 and your procedure.
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
wrong keyboard layout in gdm
To manage notifications about this bug go to:
ubuntu-bugs mailing list