sudo apt-add-repository ppa:wireshark-dev/stable
sudo apt-get update
sudo apt-get install wireshark
sudo dpkg-reconfigure wireshark-common
中间要设定,见下图:
这样就安装好了。在Ubuntu下使用Wireshark也是很有必要的,虽然我们可以使用tcpdump等工具。
出于安全方面的考虑,普通用户不能够打开网卡设备进行抓包,wireshark不建议用户通过sudo在root权限下运行,wireshark为ubuntu(Debian)用户提供了一种在非root下的解决方法。
具体步骤:
2. dpkg-reconfigure wireshark-common
“Should non-superusers be able to capture packages?”
选择Yes (默认是no)
3. sudo vim /etc/group
如下图
在组策略中会出现wireshark组,默认没有任何用户属于这个组,只需把特定的用户加入组中(需要注销后重新登录来使设置生效)就可以以该用户来运行wireshark实时抓网络数据包
再次打开:











网友评论