I am trying to run a basic code of c in linux[ubuntu] to search bluetooth device, but i am facing some problem.
By using command sudo apt-get install bluez,
sudo apt-get install bluez
You need to install the linux-headers package. On Ubuntu or Debian this is done by doing this:
sudo apt install linux-headers