
I also tried unstalling and reinstall everything from scratch including ubuntu I also tried setting all the permissions to 777 in the directory I've tried multiple solutions including, Reinstalling the application may fix this problem. This application failed to start because no Qt platform plugin could be Qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "path/to/plugins"

Loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms". "IID": ".QPA.QPlatformIntegrationFactoryInterface.5.3", QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux- gnu/qt5/plugins/platforms/libqxcb.so"įound metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata= I ran export QT_DEBUG_PLUGINS=1 and got Got keys from plugin meta data ("vnc") Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. This application failed to start because no Qt platform plugin could be initialized. Platform plugin "xcb" in "/opt/wireshark/libs/Qt/plugins/platforms" even though it was found. This is the error message I get when I try to run wireshark qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt (I also tried this on a AWS instance Ubuntu and got the same error)

I'm trying to run wireshark on ubuntu 20.4 on the WSL2 on windows(pc).
