I am trying to configure Bluetooth PAN on raspberry in order to be able to access it over bluetooth from android ssh client. I was following tutorial. All works fine until the command sdptool get Lan that gives me Failed to connect to SDP server on FF:FF:FF:00:00:00: No such file or directory. How to solve it?

1 Answer 1


This might help

sdptool is broken in Bluez 5

You need to run the blue tooth daemon in compatibility mode to provide deprecated command line interfaces. You're running Bluez5 and you need some Bluez4 functions. You can do this by editing this file


and changing this line


to this

ExecStart=/usr/lib/bluetooth/bluetoothd --compat

and then restarting bluetooth like this

sudo systemctl daemon-reload
sudo systemctl restart bluetooth

and you'll also have to change permissions on /var/run/sdp

sudo chmod 777 /var/run/sdp
  • Huh. This seems to have still fixed bluetooth A2DP sink on my box. It's 2 years later...
    – sehe
    Jul 15, 2017 at 21:56
  • 3
    Solved my issue :D bluetooth.btcommon.BluetoothError: (2, 'No such file or directory') Nov 28, 2017 at 9:35
  • This also fixes the same issue on Debian (desktop).
    – ceremcem
    Jan 1, 2019 at 14:42
  • This edit gets reverted when Blue Z get's updated. Is this ever going to be permanently fixed? Is there a better workaround? Nov 17, 2019 at 11:02
  • 2
    This fix stopped working on 2021-01-11-raspios-buster-armhf.img. Could RaspberryPi and Debian PLEEEZE get their sh*t together on this? A bot closed the GitHub issue for this bug
    – Phlip
    Feb 17, 2021 at 14:53

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