# If you have an old version installed, remove it first sudo apt autoremove bluez # Install necessary build packages sudo apt install build-essential libreadline-dev libical-dev libdbus-1-dev libudev-dev libglib2.0-dev python3-docutils # Set the current bluez version # Check https://github.com/bluez/bluez/releases for the most recent version BLUEZ_VERSION=5.77 wget http://www.kernel.org/pub/linux/bluetooth/bluez-$BLUEZ_VERSION.tar.xz # Download, unzip, build and install the bluez version tar -xf bluez-$BLUEZ_VERSION.tar.xz && cd bluez-$BLUEZ_VERSION ./configure make sudo make install