Oh, before that there's another error: 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. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in Ubuntu. https://bugs.launchpad.net/bugs/1383289 Title: Dropping a key into the list of keys fails Status in “software-properties” package in Ubuntu: New Bug description: When I drag a key text/file and drop it into the list of keys in the "Authentication" list, it fails silently (sometimes an apport bug report appears), throwing 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' ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: software-properties-gtk 0.92.37.1 ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7 Uname: Linux 3.13.0-37-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.5 Architecture: amd64 CurrentDesktop: Unity Date: Mon Oct 20 14:01:10 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-10-13 (6 days ago) InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2) PackageArchitecture: all SourcePackage: software-properties UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1383289/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp