dumpcap 是 Wireshark 套件中的命令行抓包工具,通常随 wireshark-common 或 tshark 包提供。在 Debian 中,只要该版本仓库里包含 Wireshark / tshark,就可以使用 dumpcap。
目前(2024–2025)Debian 官方仓库中提供 dumpcap 的主要版本包括:
说明:buster 已进入 LTS,仍可通过安全/LTS 源安装旧版 Wireshark。
sudo apt update
sudo apt install tshark # 包含 dumpcap
# 或
sudo apt install wireshark-common
dumpcap 抓包通常需要 captures 权限或 sudosudo dpkg-reconfigure wireshark-common
允许 wireshark 组抓包如果你有具体 Debian 版本号或内核要求,我可以帮你确认更精确的兼容性。