I downloaded the latest Kali linux version, and inmidiately installed on Virtualbox, but when tried to install virtualbox addon tools, I discovered that the architecture was 686-pae. Quite different from last version. So I got error when installing linux-headers. Here are the steps I took to succesfully install linux-headers, and virtualbox addon tools for Kali linux
I installed Kali Linux (amd64) on Virtualbox.
Went to install linux-headers, but ended up with the following error;
E: unable to locate package linux-headers-3.7-trunk-amd64
unable to locate package linux-headers-3.7-trunk-686-pae
1- add the following repos to your souces.list file
deb http://http.kali.org/kali kali main non-free contrib deb-src http://http.kali.org/kali kali main non-free contrib deb http://security.kali.org/kali-security kali/updates main contrib non-free
2- do update and install linux-headers
apt-get update && apt-get install -y linux-headers-$(uname -r)
3- go to virtualbox menu for your guest and click Devices->Install Guest Addtions CD. The cd image will most likely show on your desktop. It means it was mounted succesfully.
4- copy the VBoxLinuxAdditions.run to your /root/Desktop folder, and execute it
cp /media/cdrom/VBoxLinuxAdditions.run ~/Desktop/VBoxLinuxAdditions.run chmod +x VBoxLinuxAdditions.run
5- Finally, run ./VBoxLinuxAdditions.run