1

I've installed Wireshark in Ubuntu 16.04 with the command:

sudo apt-get install wireshark

After program start, Start Capture and Stop Capture buttons are disabled. Even opening Capture Options window, I can't see any interfaces to capture packets from. They don't show even with menu Capture > Refresh Interfaces.

Where are all machine's interfaces?

Edit:

I also noticed there's a message in the main screen:

Couldn't run /usr/bin/dumpcap in child process: Permission denied

3
  • You have to run wireshark as root to see all interfaces. Just open terminal and write "sudo wireshark". You will have to enter password. – NonStandardModel Jul 7 '16 at 17:20
  • Can't run it with sudo. The output for sudo wireshark is No protocol specified / QXcbConnection: Could not connect to display :0 / Aborted (core dumped) – Thiago Rider Augusto Jul 7 '16 at 17:27
  • Try following these instructions: sathisharthars.wordpress.com/2014/06/04/… – Alcuin Arundel Jul 7 '16 at 17:38
3

Even though you could run wireshark as root, it should be avoided.

Instead, try this:

sudo dpkg-reconfigure wireshark-common

Select YES to the question

Then add your user to newly created wireshark group with this

sudo adduser $USER wireshark

Finally log out, and log back in and you should be able to capture packets.

4
  • I was able to capture packets only if I enabled capture to non-superusers... If I select No to question issued by sudo dpkg-reconfigure wireshark-common, even with my user in wireshark system group, I can see interfaces but can't capture through those. – Thiago Rider Augusto Jul 7 '16 at 17:57
  • 1
    @ThiagoRiderAugusto My bad, I added one step to the answer. Try select YES to the question – jiipeezz Jul 7 '16 at 18:01
  • Selecting YES allows even users not in wireshark group or just added users? – Thiago Rider Augusto Jul 7 '16 at 18:06
  • 1
    Just the user/users added to the group. (somebody correct me if I'm wrong) – jiipeezz Jul 7 '16 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.