Bug 392713 - ubiquity install breaks when using non-English keyboard
Summary: ubiquity install breaks when using non-English keyboard
Alias: None
Product: neon
Classification: KDE Neon
Component: Live/Install images (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
Depends on:
Reported: 2018-04-04 12:47 UTC by Jonathan Riddell
Modified: 2018-04-13 13:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Riddell 2018-04-04 12:47:48 UTC
OEM install does not work when set to Spanish in neon-useredition/20180329-1021

It crashes when trying to set up the keyboard
Comment 1 Jonathan Riddell 2018-04-04 12:49:11 UTC
Comment 2 Jonathan Riddell 2018-04-04 12:52:57 UTC
Installing in English with English UK keyboard is fine
Comment 3 Jonathan Riddell 2018-04-04 12:54:28 UTC
Traceback (most recent call last):
  File "/usr/lib/ubiquity/plugins/ubi-console-setup.py", line 348, in set_keyboard
    ly = keyboard_names.layout_id(lang, misc.utf8(layout))
  File "/usr/lib/ubiquity/ubiquity/keyboard_names.py", line 142, in layout_id
    return kn.layout_id(lang, value)
  File "/usr/lib/ubiquity/ubiquity/keyboard_names.py", line 90, in layout_id
    return self._layout_by_human[value]
KeyError: 'Español'
Comment 4 Jonathan Riddell 2018-04-04 13:01:12 UTC
Other reports
Comment 5 Jonathan Riddell 2018-04-04 13:26:14 UTC
Works fine in user image from February
No packages are missing between the two
The version of Ubiquity has changed
console-setup verson has changed in the ubiquity
Comment 6 Jonathan Riddell 2018-04-04 13:43:45 UTC
Problem is that /usr/lib/ubiquity/console-setup/kdbnames.gz does not contain all the tranlated names.  Now whyever could that be? ...
Comment 7 Jonathan Riddell 2018-04-04 13:53:05 UTC
-ubiquity ( xenial; urgency=medium
+ubiquity ( xenial; urgency=medium

old one works, new one does not, source has no changes
Comment 8 Jonathan Riddell 2018-04-04 14:19:10 UTC
ubiquity debian/rules runs
d-i/source/console-setup/Keyboard/kbdnames-maker d-i/source/console-setup/Keyboard/KeyboardNames.pl | gzip -9c > debian/kbdnames.gz

This gets list of languages from xkb-data-i18n and its installed xkeyboard-config.mo files

which does install fine in the latest ubiquity build
Comment 9 Jonathan Riddell 2018-04-04 16:34:08 UTC
Building ubiquity locally is fine but using the docker image on drax to build it I end up with /usr/share/locale/ empty except for en en_GB which explains why kbdnames.gz is mostly empty.
Comment 10 Jonathan Riddell 2018-04-04 16:37:00 UTC
This could be it
cat /etc/apt/apt.conf.d/docker-no-languages 
Acquire::Languages "none";
Comment 11 Jonathan Riddell 2018-04-04 17:12:37 UTC
Hmm there's also a 00aptitude which sets the same setting but removing them doesn't make any difference, still only en in /usr/share/locale/
Comment 12 Jonathan Riddell 2018-04-11 22:08:51 UTC
Meh dunno why Docker is not installing the translations so I just did a workaround of including the keyboard names file directly in the packaging.  I'm working on a n openqa test to check this problem doesn't re-occur automatially