If this still does not work for you, this is a very likely cause:
The GNOME session _only_ applies the setting from gdm if you don't have any other configured layout in your gconf settings for the same language (like "us" vs. "us dvorak"). This is because of gnome-settings-daemon trying to find a "closest match" amongst the already configured layouts before actually applying $GDM_KEYBOARD_LAYOUT. This is discussed in detail in https://bugzilla.gnome.org/show_bug.cgi?id=585290, and so far it is not clear whether this is a bug or a feature.
If this still does not work for you, this is a very likely cause:
The GNOME session _only_ applies the setting from gdm if you don't have any other configured layout in your gconf settings for the same language (like "us" vs. "us dvorak"). This is because of gnome-settings- daemon trying to find a "closest match" amongst the already configured layouts before actually applying $GDM_KEYBOARD_ LAYOUT. This is discussed in detail in https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 585290, and so far it is not clear whether this is a bug or a feature.
To verify this, please check that
gconftool -g /desktop/ gnome/periphera ls/keyboard/ kbd/layouts
is nonempty, and has a non-variant layout already which you consider the "wrong" one. If you reset it with
gconftool -u /desktop/ gnome/periphera ls/keyboard/ kbd/layouts
things should work for you again.
(Oh, and thanks to you all for testing Ubuntu prior to release, and having to wade through those configuration juggling!)