如何安装Kali Linux头文件?我使用了这个命令apt-get update && apt-get install -y linux-headers-$(uname -r)
,但它显示以下错误
E:unable to locate package linux-headers-4.6.0-kali1-686 pae'
E: could not find any package by glob 'linux-headers-4.6.0-kali1-686 pae'
E: could not find any package by regex 'linux-headers-4.6.0-kali1-686 pae'
答案1
打开sources.list
文件:
gksudo gedit /etc/apt/sources.list
添加以下行(小心):
deb http://http.kali.org/kali kali-rolling main contrib non-free
保存然后运行以下命令:
apt-get update
apt-get upgrade
apt-cache search linux-headers
然后安装适当的 linux-headers:
sudo apt-get install linux-headers-$(uname -r)