Ubuntu 16.04 Install Wireshark and run the error solution

Ubuntu 16.04 Install Wireshark Steps:

1.1 Add wireshark source

sudo add-apt-repository ppa:wireshark-dev/stable
  • 1.2 Update the repository
sudo apt-get update
  • 1.3 Install wireshark
sudo apt-get install wireshark
  • 1.4 Run Wireshark

2.1 If you run wireshark with normal privileges, you will find that there are no network cards to listen to. 2.2 If you run wireshark with root privileges, the following error will be reported:

Lua: Error during loading: [string “/usr/share/wireshark/init.lua”]:46: dofile has been disabled due to running Wireshark as superuser. Seehttp://wiki.wireshark.org/CaptureSetup/CapturePrivileges for help in running Wireshark as an unprivileged user.


3.1 Set network permissions for dumpcap:

sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
  • 1

3.2 Add the current user to the wireshark group:

sudo usermod -aG wireshark $USER
  • 1

3.3 Log out the current user and log back in 3.4 Run wireshark, you can open the wireshark graphical interface normally.