Software-Installation
安裝和執行 sysdig 的問題
在命令之後
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)
with4.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
使用適當的安裝最新
linux-image
軟體包linux-headers
:使用:
apt-cache search linux-image
獲取可用的linux-image
包,例如: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