你问的 “Debian 下 dumpcap 兼容版本”,通常需要从 Debian 版本 ↔ Wireshark/dumpcap 版本 ↔ 内核/libpcap 兼容性 几个角度来看。下面给你一个清晰说明。
dumpcap 是 Wireshark 套件中的抓包核心程序,一般随 wireshark-common 或 tshark 包一起安装。
apt install tshark
# 或
apt install wireshark-common
| Debian 版本 | 官方 Wireshark 版本 | dumpcap 版本 |
|---|---|---|
| Debian 10 (Buster) | 2.6.x | 2.6.x |
| Debian 11 (Bullseye) | 3.4.x | 3.4.x |
| Debian 12 (Bookworm) | 4.0.x | 4.0.x |
| Debian 13 (Trixie, 测试) | 4.2.x+ | 4.2.x+ |
✅ 官方仓库版本彼此兼容,不会出现“装了不能用”的情况。
dumpcap 依赖:
libpcapaf_packet / netlink兼容性总结:
--privileged 或 CAP_NET_RAWdumpcap: Unable to open network interface
解决:
sudo dpkg-reconfigure wireshark-common
sudo usermod -aG wireshark $USER
docker run --rm --net=host --privileged -it debian
建议:用 Debian 官方包最稳
apt install tshark(dumpcap 4.0)backportsapt -t bookworm-backports install tshark
dumpcap --version
tshark --version
如果你能具体说:
我可以直接给你 最合适的 dumpcap 版本和配置方案。