ubuntu安装wireshark报错lua

609 词

ubuntu: 16.04

打开终端,安装wireshark过程如下:

1
2
3
4
5
6
# Add the stable official PPA.
sudo add-apt-repository ppa:wireshark-dev/stable
# Update the repository
sudo apt-get update
# Install wireshark
sudo apt-get install wireshark

我的在安装过程中卡住了一会,提示51% [正在等待报头],等了好一会,才继续了。

安装完成后,运行sudo wireshark,就可以打开界面,但是会报错:

img

网上查了一下,解决方法如下:

1
2
3
4
5
6
7
8
9
# fix lua error
cd /usr/share/wireshark
sudo gedit init.lua
# 在打开的init.lua中,找到这一行,改为true-- Set disable_lua to true to disable Lua support.
disable_lua = true
# 然后在终端里:
sudo dpkg-reconfigure wireshark-common
# 选择是(yes),再然后:
sudo adduser $USER wireshark

然后重启电脑,再次打开终端,运行wireshark,就没有报错了。

方法来源:
https://askubuntu.com/questions/700712/how-to-install-wireshark