Skip to content

Instantly share code, notes, and snippets.

@marcelrv
Created December 12, 2018 12:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelrv/6fb578cc0b58f0104fb25e57111ab9ec to your computer and use it in GitHub Desktop.
Save marcelrv/6fb578cc0b58f0104fb25e57111ab9ec to your computer and use it in GitHub Desktop.
Installation Bluez 5.46 on Ubuntu 16.04
Based on https://askubuntu.com/questions/883713/using-bluez-5-43-on-ubuntu-16-04
sudo apt-get install debhelper dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev devscripts
#unless you have already a gpg key
sudo apt-get install rng-tools
gpg --gen-key
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.46.orig.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.46-0ubuntu1.debian.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.46-0ubuntu1.dsc
tar xf bluez_5.46.orig.tar.xz
cd bluez-5.46
tar xf ../bluez_5.46-0ubuntu1.debian.tar.xz
debchange --local=~lorenzen 'Backport to Xenial'
debuild -b -j4 -k[your email address] note: no space between -k and your email]
cd ..
sudo dpkg -i *.deb
note: if stil having signing issues run
debuild -b -j4 -uc -us
@prebbz
Copy link

prebbz commented Apr 8, 2021

Many thanks - these instructions worked flawlessly!

@codingforfun
Copy link

Great. Solved my issue with BTLE on Ubuntu 16.04

@cb109
Copy link

cb109 commented Dec 7, 2021

Same here, this got me a working Bluetooth Low Energy setup on my Ubuntu 16.04 laptop to interface with my BangleJS 2 (http://www.espruino.com/Web+Bluetooth+On+Linux).

Don't forget to restart afterwards: sudo /etc/init.d/bluetooth restart

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment