Installing Linux-Headers and VirtualBox Addons in Kali Linux

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 kali main non-free contrib
deb-src kali main non-free contrib
deb 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 to your /root/Desktop folder, and execute it

cp /media/cdrom/ ~/Desktop/
chmod +x

5- Finally, run ./

Share This!

Add a Comment

Your email address will not be published.

Sign up for our Newsletter

Download "Google Search Pro"

Enter your email and stay on top of things,