Comment 3 for bug 1018353

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.