ubuntu 安装wireshark,并解决Lua: Error during loading问题

安装wireshark
sudo apt install wireshark,在安装过程中有个是否allowing non-root users to capture packets选项,默认否,直接回车即可。 The installation method can be changed any time by running: sudo dpkg-reconfigure wireshark-common.
按照上个命令的提示安装SNMP MIBs.

安装一切顺利,启动遇到了麻烦:
sudo wrieshark
ubuntu 安装wireshark,并解决Lua: Error during loading问题_第1张图片

解决:终端运行sudo gedit /usr/share/wireshark/init.lua,倒数第二行修改为:
–dofile(DATA_DIR..”console.lua”)
参考 https://zhidao.baidu.com/question/1382293195079834340.html

下面的语句是从对话框给出的链接中摘出来的,留作备用
sudo setcap ‘CAP_NET_RAW+eip CAP_NET_ADMIN+eip’ /usr/bin/dumpcap
sudo chown root /usr/bin/dumpcap
sudo chmod u+s /usr/bin/dumpcap
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod o-rx /usr/sbin/dumpcap
sudo usermod -a -G wireshark root

你可能感兴趣的:(Linux)