命令之后apt-get update
,我运行了以下命令:
apt-get -y install linux-headers-$(uname -r)
我收到以下错误:
E: Unable to locate package linux-headers-4.9.0-kali3-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'
如果我只是键入linux-headers
并按 Tab 键查看选项,它会显示以下内容:
linux-headers-4.12.0-kali1-all
linux-headers-4.12.0-kali1-amd64
linux-headers-amd64
linux-headers-4.12.0-kali1-all-amd64
linux-headers-4.12.0-kali1-common
因此,我将 替换$(uname -r)
为4.12.0.kali1-all
并执行了该命令。之后我运行了以下命令:
apt-get install sysdig
现在,当我尝试运行时sysdig
,出现以下错误:
Unable to load the driver error opening device /dev/sysdig0.
Make sure you have root credentials and that the sysdig-probe module is loaded.
我该如何解决上述问题?
目前,该命令uname -a
显示以下结果:
Linux kali 4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux
的输出为apt-cache search linux-image
:
linux-headers-4.12.0-kali1-amd64 - Header files for Linux 4.12.0-kali1-amd64
linux-image-4.12.0-kali1-amd64 - Linux 4.12 for 64-bit PCs
linux-image-4.12.0-kali1-amd64-dbg - Debug symbols for linux-image-4.12.0-kali1-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-image-4.9.0-kali3-amd64 - Linux 4.9 for 64-bit PCs
答案1
linux-image
使用适当的安装最新的软件包linux-headers
:
使用 :apt-cache search linux-image
获取可用的linux-image
包 e,g:
apt-get update
apt-get install linux-image-4.12.0-kali1-amd64
apt-get install linux-headers-4.12.0-kali1-amd64
reboot
apt install dkms sysdig
modprobe sysdig-probe