Deepin下Wireshark的错误修复Capture session could not be initiated on interface(you don't have permission to capture on 'wlan0')

在Deepin上面新装的Wireshark,选择网卡后报错提示Capture session could not be initiated on interface(you don’t have permission to capture on ‘wlan0’)

在百度找了一些文章,主要有两种解决方案:

(1)使用 sudo chmod 777 /dev/bpf*  命令,但是我在运行后提示


chmod: 无法访问'/dev/bpf*': 没有那个文件或目录

然后就这样失败了。

(2)按照这种方法依然失败了

今天使用wireshark抓包,需要抓取的是无线网卡的数据包,但是打开后wireshark报The capture session could not be initiated (failed to set hardware filter to promiscuous mode)这样的错误。通过查找资料,需要将wireshark设置一下:
首先找到“Capture”菜单项,然后点击选择“Option”,去掉“promiscuous mode”前面的对勾就OK了……
———————
作者:csc_csc_csc
来源:CSDN
原文:https://blog.csdn.net/cscmaker/article/details/7240486

最后的解决方案

sudo dpkg-reconfigure wireshark-common
sudo usermod -a -G wireshark $USER
newgrp wireshark

———————
作者:DXCyber409
来源:CSDN
原文:https://blog.csdn.net/DXCyber409/article/details/80258923

图片[1]-Deepin下Wireshark的错误修复Capture session could not be initiated on interface(you don't have permission to capture on 'wlan0')-天煜博客

 

然后还出现个小问题,如下图:图片[2]-Deepin下Wireshark的错误修复Capture session could not be initiated on interface(you don't have permission to capture on 'wlan0')-天煜博客

这个问题就很好解决了,一个命令搞定。然后成功的运行wireshark。

sudo chmod 777 /usr/bin/dumpcap

图片[3]-Deepin下Wireshark的错误修复Capture session could not be initiated on interface(you don't have permission to capture on 'wlan0')-天煜博客 图片[4]-Deepin下Wireshark的错误修复Capture session could not be initiated on interface(you don't have permission to capture on 'wlan0')-天煜博客

完美解决!

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容