1、下载:https://www.kali.org/downloads/
2、更新源:/etc/apt/sources.list
#阿里云kali源
deb http://mirrors.aliyun.com/kali sana main non-free contrib
deb-src http://mirrors.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security sana/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security sana/updates main contrib non-free
#中科大kali源
deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free
3、安装内核头出错:更新源后还是找不到对应的内核头
解决办法:手动下载安装对应的内核头
http://http.kali.org/kali/pool/main/l/linux/
首先下载相应版本的kbuild,然后编译:
dpkg -i linux-kbuild-4.3_4.3.1-2kali1_amd64.deb
然后下载common文件,并编译:
dpkg -i linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb
最后下载Linux-headers,并编译,注意不要下载错(应该下载不带all的那个)
dkpg -i linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb
4、没有gcc导致上一步最后无法成功安装内核头,根据提示安装相应的gcc
apt-get install + 提示的gcc相应版本
或者手动安装gcc:
http://www.cnblogs.com/chuncn/archive/2010/10/15/1851853.html
5、运行VBoxLinuxAddtions.run。