software-properties-gtk crash if accentuated characters in apt-key list

Bug #1395327 reported by Swâmi Petaramesh on 2014-11-22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)

Bug Description

software-properties-gtk crashes badly if one of the apt keys listed in apt-key list contains an accentuated char.

Here I have retraced it to having a key name containing a "ç".

$ /etc/apt$ software-properties-gtk

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/", line 169, in __init__
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/", line 846, in show_keys
    for key in self.apt_key.list():
  File "/usr/lib/python3/dist-packages/softwareproperties/", line 75, in list
    for line in p:
  File "/usr/lib/python3.4/", line 313, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2553: invalid continuation byte

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: software-properties-gtk
ProcVersionSignature: Ubuntu 3.13.0-39.66-generic
Uname: Linux 3.13.0-39-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: i386
CurrentDesktop: Unity
Date: Sat Nov 22 15:34:45 2014
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: Upgraded to trusty on 2014-04-20 (215 days ago)

Launchpad Janitor (janitor) wrote :

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

Changed in software-properties (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers