dpkg_resource crashed with UnicodeDecodeError in get_dpkg(): 'ascii' codec can't decode byte 0xc2 in position 7: ordinal not in range(128)

Bug #1018353 reported by Benedikt
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Fix Released
High
Daniel Manrique

Bug Description

Started checkbox. After I entered my password this error appeared. Checkbox continued to work.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: checkbox 0.14
ProcVersionSignature: Ubuntu 3.5.0-2.2-generic 3.5.0-rc4
Uname: Linux 3.5.0-2-generic i686
ApportVersion: 2.2.5-0ubuntu1
Architecture: i386
Date: Wed Jun 27 14:02:42 2012
ExecutablePath: /usr/share/checkbox/scripts/dpkg_resource
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
InterpreterPath: /usr/bin/python3.2mu
ProcCmdline: /usr/bin/python3 /usr/share/checkbox/scripts/dpkg_resource
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
PythonArgs: ['/usr/share/checkbox/scripts/dpkg_resource']
SourcePackage: checkbox
Title: dpkg_resource crashed with UnicodeDecodeError in get_dpkg(): 'ascii' codec can't decode byte 0xc2 in position 7: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Related branches

Revision history for this message
Benedikt (benedikt-klotz) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Daniel Manrique (roadmr) wrote :

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Daniel Manrique (roadmr) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

dpkg_resource parses the output of dpkg --version. Since you're using a de_DE locale, this contains non-ascii characters which are causing the problem.

Steps to reproduce:

1- sudo apt-get install language-pack-de{,-base}
2- LANGUAGE=de_DE LANG=de_DE.UTF-8 /usr/share/checkbox/scripts/dpkg_resource

Expected result:

version: 1.16.1.2
architecture: i386

Actual result:

Traceback (most recent call last):
  File "/usr/share/checkbox/scripts/dpkg_resource", line 56, in <module>
    sys.exit(main())
  File "/usr/share/checkbox/scripts/dpkg_resource", line 47, in main
    dpkg = get_dpkg()
  File "/usr/share/checkbox/scripts/dpkg_resource", line 38, in get_dpkg
    output.decode("ascii"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 7: ordinal not in range(128)

I'll set as triaged with importance: High as this will hit everyone not using an english locale.

Changed in checkbox (Ubuntu):
importance: Undecided → High
status: New → Triaged
Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
assignee: nobody → Daniel Manrique (roadmr)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package checkbox - 0.14.1

---------------
checkbox (0.14.1) quantal-proposed; urgency=low

  * New upstream release (LP: #1018571)

  [Brendan Donegan]
  * Fixed up a few things with the gpu_lockup tests. Removed depends,
    renamed to gpu_lockup_suspend to reflect behaviour and removed the
    requirement on Firefox
  * Changed suspend_advanced and suspend_advanced_auto to use less
    strict definition of fwts s3 test.

  [Javier Collado]
  * Make sure that jobs are topologically ordered (LP: #990075)
  * Keep job ordering as close to whitelist as possible (LP: #1017951)

  [Marc Tardif]
  * New version 0.14.1 for Quantal Quetzal development.
  * jobs/suspend.txt.in: Fixed trailing newline on otherwise empty line.
  * scripts/run_templates: Fixed calls to Popen to use universal_newlines
    to return strings instead of bytes (LP: #1018354)

  [Daniel Manrique]
  * Fixed duplicate suspend/bluetooth_obex_after_suspend job name.
  * scripts/dpkg_resource: Changed encoding from ascii to utf-8 to handle
    non-ascii locales (LP: #1018353)

  [Jeff Lane]
  * Migrated audio/external-HDMI-playback into checkbox. Modified the
    command to match our other audio tests that save and reset mixer
    levels.
 -- Javier Collado <email address hidden> Tue, 26 Jun 2012 16:07:04 +0200

Changed in checkbox (Ubuntu):
status: In Progress → Fix Released
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.