Traceback (most recent call last):
File "/home/bruno/src/software-properties/software-properties/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 760, in on_auth_drag_data_received
if not self.add_key_from_data(keydata):
File "/home/bruno/src/software-properties/software-properties/softwareproperties/SoftwareProperties.py", line 815, in add_key_from_data
tmp.write(keydata.encode())
AttributeError: 'bytes' object has no attribute 'encode'
Just replace:
tmp.write(keydata.encode())
with:
tmp.write(keydata)
because keydata is already "bytes" at that point.
Oh, before that there's another error:
Traceback (most recent call last): bruno/src/ software- properties/ software- properties/ softwarepropert ies/gtk/ SoftwarePropert iesGtk. py", line 760, in on_auth_ drag_data_ received key_from_ data(keydata) : bruno/src/ software- properties/ software- properties/ softwarepropert ies/SoftwarePro perties. py", line 815, in add_key_from_data write(keydata. encode( ))
File "/home/
if not self.add_
File "/home/
tmp.
AttributeError: 'bytes' object has no attribute 'encode'
Just replace: write(keydata. encode( )) write(keydata)
tmp.
with:
tmp.
because keydata is already "bytes" at that point.