software-properties-gtk crashed with UnicodeDecodeError in record(): 'utf-8' codec can't decode byte 0x92 in position 1017: invalid start byte

Bug #1030471 reported by Roger
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

clicked 'settings' in software updater (xubuntu)

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: software-properties-gtk 0.91
ProcVersionSignature: Ubuntu 3.5.0-6.6-generic 3.5.0
Uname: Linux 3.5.0-6-generic i686
ApportVersion: 2.4-0ubuntu6
Architecture: i386
Date: Sun Jul 29 10:26:40 2012
ExecutablePath: /usr/bin/software-properties-gtk
InstallationMedia: Xubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120724)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3.2 /usr/bin/software-properties-gtk --open-tab 2
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-properties-gtk', '--open-tab', '2']
SourcePackage: software-properties
Title: software-properties-gtk crashed with UnicodeDecodeError in record(): 'utf-8' codec can't decode byte 0x92 in position 1017: invalid start byte
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip fuse lpadmin plugdev sambashare sudo vboxusers

Revision history for this message
Roger (rogeralexanderdean) wrote :
tags: removed: need-duplicate-check
Changed in software-properties (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

The first crash occurs in ubuntu-drivers-common.

affects: software-properties (Ubuntu) → ubuntu-drivers-common (Ubuntu)
information type: Private → Public
Martin Pitt (pitti)
affects: ubuntu-drivers-common (Ubuntu) → python-apt (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Gaétan QUENTIN (gaetan-quentin) wrote :

ubuntu 16.04:

sudo software-properties-gtk -m -d
/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py:40: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gdk, Gtk, Gio, GLib
/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py:40: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gdk, Gtk, Gio, GLib
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 101, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 172, in __init__
    self.show_keys()
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 867, in show_keys
    for key in self.apt_key.list():
  File "/usr/lib/python3/dist-packages/softwareproperties/AptAuth.py", line 78, in list
    for line in p:
  File "/usr/lib/python3.5/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdf in position 3182: invalid continuation byte

Revision history for this message
Julian Andres Klode (juliank) wrote :

Locale wrongly configured. Needs to be UTF-8.

Changed in python-apt (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Gaétan QUENTIN (gaetan-quentin) wrote :

NO.

I don't think this is the root problem. There is a file read by software-property* somewhere which is not utf-8 compliant. This problem came after a long working fine system with 16.04. locale didn't changed.

Could it be possible to output in the softawre-properties-tgk* code , the read failure "file name" which is in failure ? Telling it in the output could be helpfull to track problem.

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.