ubuntu-bug does not recognize lzh_TW locale

Bug #1730639 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
New
Undecided
Unassigned

Bug Description

While trying to upload the .crash file for bug 1730554, using command:

$ ubuntu-bug /var/crash/_usr_bin_gnome-shell.1000.crash

The tool crashes with unknown locale error:
ERROR: hook /usr/share/apport/general-hooks/generic.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/generic.py", line 48, in add_info
    if gtk_like and apport.hookutils.in_session_of_problem(report):
  File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 882, in in_session_of_problem
    orig_ctime = locale.getlocale(locale.LC_TIME)
  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: lzh_TW

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: apport 2.20.4-0ubuntu4.5
ProcVersionSignature: Ubuntu 4.10.0-38.42-generic 4.10.17
Uname: Linux 4.10.0-38-generic x86_64
ApportLog:
 ERROR: apport (pid 28299) Tue Nov 7 11:12:04 2017: called for pid 2068, signal 11, core limit 0
 ERROR: apport (pid 28299) Tue Nov 7 11:12:04 2017: executable: /usr/bin/gnome-shell (command line "/usr/bin/gnome-shell")
 ERROR: apport (pid 28299) Tue Nov 7 11:12:05 2017: debug: session gdbus call: (true,)

 ERROR: apport (pid 28299) Tue Nov 7 11:13:15 2017: wrote report /var/crash/_usr_bin_gnome-shell.1000.crash
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
CrashReports:
 600:111:119:0:2017-11-07 18:35:26.974509633 +0800:2017-11-07 18:33:17.310366228 +0800:/var/crash/_usr_bin_gnome-shell.1000.uploaded
 640:1000:119:42648617:2017-11-07 18:35:08.738488435 +0800:2017-11-07 18:35:13.822493362 +0800:/var/crash/_usr_bin_gnome-shell.1000.crash
 640:1000:119:58131:2017-11-07 18:36:03.870557135 +0800:2017-11-07 18:36:03.870557135 +0800:/var/crash/_usr_share_apport_apport-gtk.1000.crash
 644:1000:119:0:2017-11-07 18:35:24.294506287 +0800:2017-11-07 18:35:24.294506287 +0800:/var/crash/_usr_bin_gnome-shell.1000.upload
CurrentDesktop: GNOME
Date: Tue Nov 7 18:36:00 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-07-12 (117 days ago)
InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

As a workaround please try:

  env LANG=C ubuntu-bug /var/crash/_usr_bin_gnome-shell.1000.crash

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1677172, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.