After updating to Ubuntu 16.04, from 14 I am getting a

Failed to apply network settings.

I found this https://github.com/blueman-project/blueman/issues/513 but I am running the latest version of Ubuntu. The suggestions I found from stack overflow do not seem related.

The full error:

org.freedesktop.DBus.Python.UnicodeDecodeError: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, *args, **keywords) File "/usr/lib/python3/dist-packages/blueman/main/DbusService.py", line 36, in wrapper return method(*args[1:], **kwargs) File "/usr/lib/python3/dist-packages/blueman/plugins/mechanism/Network.py", line 63, in ReloadNetwork nc = NetConf.get_default() File "/usr/lib/python3/dist-packages/blueman/main/NetConf.py", line 219, in get_default obj = pickle.load(f) UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)


Here is the workaround from ubuntu launchpad

The patch for /usr/lib/python3/dist-packages/blueman/main/NetConf.py is

diff --git a/blueman/main/NetConf.py b/blueman/main/NetConf.py
index 61f5a63..24268df 100644
--- a/blueman/main/NetConf.py
+++ b/blueman/main/NetConf.py
@@ -299,7 +299,7 @@ def get_default(cls):
         NetConf.default_inst = obj
         return obj
- except IOError:
+ except (IOError, UnicodeDecodeError):
         n = cls()
  • 1
    The patch wasn't working so I manually changed /usr/lib/python3/dist-packages/blueman/main/NetConf.py on line 225. – OrigamiEye Aug 11 '16 at 18:19

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.