TCPDUMP 安装问题

TCPDUMP install problems

我在 运行 以下命令时遇到错误:

sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/tcpdump*

其中提供了以下错误:

Failed to set capabilities on file `/usr/bin/tcpdump' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file

到目前为止,我还没有找到任何解决方案 - 非常感谢任何可以提供或帮助我找到解决方案的人。

base Debian package for tcpdump, as does the Ubuntu one 表明可执行文件实际位于 /usr/sbin/tcpdump,而不是 /usr/bin/tcpdump.