1

While starting wireshark, I am getting following error:

sudo wireshark

This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, offscreen, xcb.

Reinstalling the application may fix the problem.
Aborted (core dumped)

After installing xcb, still I get the same error.

I am using Ubuntu 16.04

Solutions from following links didn't worked for me:

David Foerster
  • 35,754
  • 55
  • 92
  • 145
Patrick
  • 159
  • 1
  • 1
  • 6
  • 2
    Maybe related: [“Failed to load platform plugin ”xcb“ ” while launching qt5 app on linux without qt installed](https://askubuntu.com/questions/308128/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without) – Eliah Kagan Apr 21 '18 at 13:09
  • 1
    Could you add some details of exactly what you did and what happened? That might yield some information that points to the real problem/solution – Zanna Apr 23 '18 at 13:54

1 Answers1

1

With the given information, I would recommend to reinstall completely wireshark as followed:

sudo apt-get remove --purge wireshark
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install libcap2-bin wireshark
sudo dpkg-reconfigure wireshark-common

Select Yes so that non-superusers will be able to use wireshark (practice recommended by the Wireshark Wiki)

sudo chgrp YOUR_USER_NAME /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap

Links:

Kian
  • 333
  • 2
  • 8