1. Introduction
In this short tutorial, we'll show how to enable Bluetooth on Kali Linux. We'll go through the commons steps for setting up the Bluetooth and cover different situations and possible issues:
- check if you have all core system packages in place
- assure that your Bluetooth device is not blocked
- install Blueman package
- check service status and start it if it's not already started
- potential issues and solutions:
- an issue with libgcc-9-dev package - to solve this issue check out this tutorial
2. Check if you have all core system packages in place
If you installed the basic/core version of Kali Linux, it's good practice to do do the update and upgrade after the installation, so that you have a complete package list. For that purpose use the following commands:
sudo apt-get update
sudo apt-get upgrade
If these commands results say that everything is up to date and you're sure that you didn't do any updates on your new system, check the contents of the /etc/apt/sources.list fille. For this purpose, you can use any text editor, for example, nano:
sudo nano /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 2019.4 _Kali-rolling_ - Official Snapshot am>
#deb cdrom:[Debian GNU/Linux 2019.4 _Kali-rolling_ - Official Snapshot amd>
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://http.kali.org/kali kali-rolling main non-free contrib
3. Be sure that your Bluetooth device is not blocked
sudo rfkill list
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Assure that the Bluetooth device you're trying to use for the connection is not blocked. In case that it's blocked, use the following command to unblock it:
sudo rfkill unblock bluetooth
For a more detailed tutorial on rfkill tool, check out this tutorial.
3. Assure that Bluetooth service is started
If your Bluetooth device was blocked/disabled, it's a chance that the Bluetooth service is not started on your machine, so start it using:
sudo service bluetooth start
4. Install blueman package
Blueman is a Bluetooth manager with great UI that uses blueZ in the background. It will help you to easily manage your Bluetooth devices. If you don't have it already, install it using
sudo apt-get install blueman
In this step, I had the issue with package versions saying:
libc6-dev : Breaks : libgcc-9-dev (< 9.3.0.5~) but 9.2.1-19 is to be installed
5. Conclusion
In this tutorial, we showed how to enable Bluetooth on Kali Linux and troubleshoot the issues.