Ubuntu – How to run Wireshark on Ubuntu 17.10

17.10wireshark

I used to run wireshark on ubuntu 17.04 with

~/$ sudo wireshark

but now (just after update to 17.10) when I write the same I get an error

~/$ sudo wireshark

    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    Invalid MIT-MAGIC-COOKIE-1 keyQXcbConnection: Could not connect to display :0

Best Answer

work around

~$ xhost +si:localuser:root
~$ sudo wireshark

Why don't gksu/gksudo work with Wayland?