I am trying to use Wireshark for the first time on my laptop and have received this error message:-
alastair@localhost:~> sudo wireshark
[sudo] password for root:
19:00:38.185 Main Info Could not load the Qt platform plugin "xcb" in "" even though it was found.
error: XDG_RUNTIME_DIR not set in the environment.
19:00:38.187 Main Crit Failed to create wl_display (No such file or directory)
19:00:38.187 Main Info Could not load the Qt platform plugin "wayland" in "" even though it was found.
19:00:38.187 Main Crit This application failed to start because no Qt platform plugin could be initialized. Reins
talling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xc
omposite-egl, wayland-xcomposite-glx, xcb.
alastair@localhost:~>
Grateful for some help or guidance here please. Looks like I have a configuration issue but beyond me.