In order to install any core software like device drivers and the like on linux systems you need to install the kernel headers first. By default the kernel headers are not installed. The Linux operating system that you generally run is the kernel in a binary format alongwith the standard device drivers and other general software that is part of any operating system.
$ls -l /lib/modules/`uname -r`/build/
If the output of the above code gives you the .config file as well as the include directories then you already have the kernel headers installed and you can happily skip the rest of this post.
$sudo apt-get install build-essential
Now repeat step 1) and you should be done.
$uname -r
It will give the version number of the kernel that you are using.
Download the rpm kernel-source-<your version>.<your comp arch>.src.rpm from here. Install it using the following command,
$rpm --ivh kernel-source-<your version>.<your comp arch>.src.rpm
P.S. :- if you do not have rpm installed in your system then u must install it.