I finally found the cause of the problem!
It seems that the DBus service (or the whole DBus) is not running in a UTF-8 locale, thus causing errors in UTF-8 strings.
The workaround is to edit softwareproperties/SoftwareProperties.py and add:
path = path.encode('utf-8')
in method "def add_key(self, path)" around line 800 before the line:
if not os.path.exists(path):
This encoding issue may be causing problems in other parts of the program, and other programs.
Meanwhile, I found another bug:
Dragging and dropping a key file to the list doesn't work, raising an exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 759, in on_auth_drag_data_received
keydata = selection.data.strip()
AttributeError: 'SelectionData' object has no attribute 'data'
I finally found the cause of the problem!
It seems that the DBus service (or the whole DBus) is not running in a UTF-8 locale, thus causing errors in UTF-8 strings.
The workaround is to edit softwarepropert ies/SoftwarePro perties. py and add: 'utf-8' ) exists( path):
path = path.encode(
in method "def add_key(self, path)" around line 800 before the line:
if not os.path.
This encoding issue may be causing problems in other parts of the program, and other programs.
Meanwhile, I found another bug: python3/ dist-packages/ softwarepropert ies/gtk/ SoftwarePropert iesGtk. py", line 759, in on_auth_ drag_data_ received data.strip( )
Dragging and dropping a key file to the list doesn't work, raising an exception:
Traceback (most recent call last):
File "/usr/lib/
keydata = selection.
AttributeError: 'SelectionData' object has no attribute 'data'