Currently running Lubuntu 16.10. I have tried to open the language support menu many times, meaning to add Hebrew to my input languages (assuming that's the menu I should be looking at). Every time I open Language Support I get another window that opens saying "Checking available language support". A progress bar then quickly fills up and the window closes along with the language support window. Is there a way for me to fix this problem and access language support? Alternatively, is there a way to add Hebrew to my keyboard without having to open the language support menu?

  • The first window ought to be kept open when the other has checked for available language support. Can you please open a terminal window, run the command gnome-language-selector and let us know possible error messages by editing your question. – Gunnar Hjalmarsson Nov 29 '16 at 14:52
  • @GunnarHjalmarsson ValueError: unknown locale: en_IL – Alon G. Nov 29 '16 at 16:25
  • Ok... Then please show us the output of the locale command. – Gunnar Hjalmarsson Nov 29 '16 at 16:31
  • Looks ok. This is odd; I'm not able to reproduce the problem with the en_IL locale. Can you please try the gnome-language-selector command again and show us the full output you see in the terminal window when it fails. – Gunnar Hjalmarsson Nov 29 '16 at 21:12

The paste of the terminal output shows where in the code the error happens. It's a Python bug, and related to the fact that the en_IL locale is relatively new.

$ python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14) 
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_CTYPE, 'en_IL')
>>> mylocale = locale.getlocale(locale.LC_CTYPE)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/locale.py", line 577, in getlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.5/locale.py", line 486, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL
>>> quit()

This means that with the current locale setting you might encounter problems also with other Python applications, so I would suggest a workaround for now: Replacing en_IL with en_IL.UTF-8 makes Python shut up.

  • Open a terminal window and run

    sudo update-locale LANG=en_IL.UTF-8
  • Log out and log in again

  • Open Language Support without a crash

I reported the issue in bug #1646260.

  • The menu now opens without crashing. Upon marking Hebrew and clicking "Apply" in the Install/Remove Languages window, I get: "Failed to download package files Check you internet connection Details: Failed to fetch http:// " Should I post a separate question for this and mark this one as answered or keep working on it under this question? – Alon G. Nov 30 '16 at 13:39
  • @AlonG.: I suggest that you first try again. If you get the same error, then open Software & Updates and change the download server to something else but "Server for Israel", for instance "Main server". – Gunnar Hjalmarsson Nov 30 '16 at 14:03
  • Tried again but problem persisted. Changing the download server worked. Thank you! – Alon G. Dec 1 '16 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.