Ubuntu mate 21.4, package Wireshark 3.2.7-1~ubuntu20.04.0+wiresharkdevstable1won't start
I installed the latest revision from PPA. Getting the same error as with the repository.
This thing won't let me upload the error screen but in essence it says that
/usr/lib/x86_64-linux-gnu/wireshark/plugins/3.0/ndpi.lua line 54. Bad argument to NEW field.
And on the command line this message displays "XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'"
I've spent quite a bit of time googling to no avail. No idea what to do next. Wireshark worked fine on Ubuntu 16.04 LTS. Something got broken between then and now.
OK, I renamed ndpi.lua to something else. Now the program will start but when I try to monitor a USB channel, it tells me I lack permission. The error message suggested doing the things suggested here. Now what?
More info. When I acknowledge the USB permission, the following appears on the command line.
17:00:49.200 Main Warn QXcbConnection: XCB error: 3 (BadWindow), sequence: 938, resource id: 19495943, major code: 40 (TranslateCoords), minor code: 0
Any other suggestions? I am not trying to run as root.
UPDATE
I tried running wireshark as root and it opened the USB ports as it should. So it looks like a USB port open routine. Any suggestions?
Also, it only showed 5 ports. Is that a hard-coded limit?
Thanks, John
Related question asking about
XDG_RUNTIME_DIR
.Temporarily move
ndpi.lua
out of the plugins directory and check for no error or different error.Also I suspect you try to run Wireshark as root. Do not do that, see here why and how to run it as normal user.
Perhaps one of the moderators can change the title of this to something about don't run as root.
Have you done the setup for USB Capture?