网络:
# vim /etc/network/interfaces
DNS:
vim /etc/resolv.conf
nameserver 114.114.114.114
nameserver 111.11.11.1
换源:
# vim /etc/apt/sources.list
官网kali源 deb http://http.kali.org/kali kali-rolling main contrib non-free 中科大kali源 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free 阿里云kali源 deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
apt-get update
# service networking restart
# systemctl restart networking.service
# /etc/init.d/networking restart