[Bug 482386] Re: ValueError: unknown locale: en_NG

Kayode Odusote odusote.kayode at gmail.com
Wed Jun 15 00:39:05 UTC 2016


*** This bug is a duplicate of bug 223281 ***
    https://bugs.launchpad.net/bugs/223281

This bug persists in python2.7.  The solution given by @bigbrovar

"A fix to this problem is adding

'en_ng': 'en_GB.ISO8859-1',
'en_ng.iso88591': 'en_GB.ISO8859-1', 

to usr/lib/python2.6/locale.py" works with phthon2.7 as well.

Hope this would be fixed permanently to save Nigerians the headache of
failed upgrade, etc.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/482386

Title:
  ValueError: unknown locale: en_NG

Status in python2.6 package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: software-center

  Hi

  When I try to run Ubuntu Software Center from the application menu, I
  get the timer for a while and then nothing.

  Ubuntu 9.10

  software-center:
    Installed: 1.0.2
    Candidate: 1.0.2
    Version table:
   *** 1.0.2 0
          500 http://nl.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status
  kennacurl at kennacurl-laptop:~$ 


  Is there a work around for me in the meantime? Can I change my locale?
  - if so how?

  From the command line I get:

  kennacurl at kennacurl-laptop:~$ /usr/bin/software-center
  Traceback (most recent call last):
    File "/usr/bin/software-center", line 80, in <module>
      app = SoftwareCenterApp(datadir, xapian_base_path)
    File "/usr/share/software-center/softwarecenter/app.py", line 140, in __init__
      self.icons, datadir)
    File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 58, in __init__
      SoftwarePane.__init__(self, cache, db, icons, datadir)
    File "/usr/share/software-center/softwarecenter/view/softwarepane.py", line 92, in __init__
      self.datadir)
    File "/usr/share/software-center/softwarecenter/view/appdetailsview.py", line 102, in __init__
      self.aptd_client = client.AptClient()
    File "/usr/lib/python2.6/dist-packages/aptdaemon/client.py", line 382, in __init__
      self._locale = "%s.%s" % locale.getdefaultlocale()
    File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
      return _parse_localename(localename)
    File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
      raise ValueError, 'unknown locale: %s' % localename
  ValueError: unknown locale: en_NG
  kennacurl at kennacurl-laptop:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/482386/+subscriptions



More information about the foundations-bugs mailing list