Hi There …
Welcome to Kali World or let’s say Linux Big world
things in windows was much easier you can install a Software with few Clicks
you can install Drivers with few clicks !

but in Linux is not like that, there is always work to do commands to write simply in Linux you have to do things by your self and yes you have to learn to do it,
so windows was better ? for sure no because here we learn things and there is no virus to be scared off, with Linux everything is under control.
So let’s start
few days ago i got kali Linux 1.7 and i wanted to install Nvidia Driver
i went to docs in Kali.org and i did follow the step they write in the page of installing Nvidia drivers in Kali
So i start with
apt-get update
Then
apt-get dist-upgrade
and
apt-get install -y linux-headers-$(uname -r) ! here the problem start
i got this message E: Unable to locate package linux-headers-3.14-kali1-686-pae
So i searched the web with a hope that i find the way to fix it but … no one is writing a tutorial how to fix Unable to locate package linux-headers-3.14-kali1-686-pae
most of the guys says do apt-get update before apt-get install -y linux-headers-$(uname -r)
and that is what i did but yet i still have the problem,
so if the issue should be fixed with apt-get update then maybe the problem here is i’m not getting all the needed updates,
So i had to Check the Repositories at sources.list
to do that go to
File system etc/apt/sources.list
this what your file may have in it “mine was like that”
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
so what i did now is adding this to line
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
and now the file have all this Repositories
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
After i added this 2 new Repositories we have to do the update…
apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
and finally
apt-get install nvidia-kernel-dkms
now everything seems to be fine…!
The problem you have with headers is beacuase after dist-upgrade your Linux does not automatically use new linux-images but surely they have been installed. To fix your problem you should boot to new Linux kernel to do that you should restart and at the grub under the name of your Linux there should be an option of advance options for Kali/Ubuntu or what ever Linux distro you have chose this option it should open another page listing all of your Linux headers chose the latest one and boot in to Linux then when you whant to install Linux headers it should be fine. After that you can just remove old kernels and update grub
The problem you have with headers is beacuase after dist-upgrade your Linux does not automatically use new linux-images but surely they have been installed. To fix your problem you should boot to new Linux kernel to do that you should restart and at the grub under the name of your Linux there should be an option of advance options for Kali/Ubuntu or what ever Linux distro you have chose this option it should open another page listing all of your Linux headers chose the latest one and boot in to Linux then when you whant to install Linux headers it should be fine. After that you can just remove old kernels and update grub