/usr/bin/gnome-language-selector:SystemError:on_activate:__init__:updateLanguageView:openCache:__init__:__init__:open

Bug #1386559 reported by errors.ubuntu.com bug bridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned
language-selector (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding language-selector. This problem was most recently seen with version 0.135, the problem page at https://errors.ubuntu.com/problem/a23abebe0fac9728fd8b935f6fcf1df705ab81b8 contains more details.

Revision history for this message
Brian Murray (brian-murray) wrote :

Here is the traceback:

Traceback (most recent call last):
  File "/usr/bin/gnome-language-selector", line 22, in on_activate
    options=options)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 196, in __init__
    self.updateLanguageView()
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 709, in updateLanguageView
    self.openCache(progress)
  File "/usr/lib/python3/dist-packages/LanguageSelector/LanguageSelector.py", line 33, in openCache
    self._cache = LanguageSelector.LangCache.LanguageSelectorPkgCache(self._localeinfo, progress)
  File "/usr/lib/python3/dist-packages/LanguageSelector/LangCache.py", line 76, in __init__
    apt.Cache.__init__(self, progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
    self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 151, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_i18n_Translation-en, E:パッケージリストまたはステータスファイルを解釈またはオープンすることができません。

Revision history for this message
Brian Murray (brian-murray) wrote :

It looks like it is really a problem with apt's processing of the files on the user's system.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Closing this bug due to its age. Please file a new report, if the problem can be reproduced on a current Ubuntu version.

Changed in language-selector (Ubuntu):
status: New → Invalid
Changed in apt (Ubuntu):
status: New → Invalid
Revision history for this message
atarito (ferrangar) wrote :

Xubuntu16.04 23May2016 :(

$ gnome-language-selector
Traceback (most recent call last):
  File "/usr/bin/gnome-language-selector", line 22, in on_activate
    options=options)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 202, in __init__
    self.check_input_methods()
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 57, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 453, in check_input_methods
    currentIM = self.ImConfig.getCurrentInputMethod()
  File "/usr/lib/python3/dist-packages/LanguageSelector/ImConfig.py", line 41, in getCurrentInputMethod
    or locale.getlocale(locale.LC_CTYPE)[0][:3] in ['zh_', 'ja_', 'ko_', 'vi_']:
TypeError: 'NoneType' object is not subscriptable
$ uname -a
Linux pegasus 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

atarito: If you can reproduce that error, please file a new bug report instead of using this old and unrelated one. Also, if so, please show the output of the locale command.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.