无法在 Ubuntu 20.04 上运行 WireShark - 此应用程序无法启动,因为无法初始化 Qt 平台插件

无法在 Ubuntu 20.04 上运行 WireShark - 此应用程序无法启动,因为无法初始化 Qt 平台插件

我正在尝试在 Ubuntu 20.04.6 LTS 服务器系统上运行 WireShark,但出现以下错误。我尝试重新启动机器,清除所有软件包后重新安装 WireShark,但遗憾的是没有用。使用该命令export QT_DEBUG_PLUGINS=1向我展示了可能存在问题的详细线索,但不幸的是我完全迷失了方向。

希望有人能告诉我如何让 WireShark 正常工作。可能是我安装了一个破坏它的软件包,或者是我遗漏了一个简单的命令。如果这真的很明显,我深表歉意,我根本无法理解。

谢谢,茉莉。

root@S01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
root@S01:~#

root@S01:~# wireshark
 ** (wireshark:21258) 03:19:38.395910 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
 ** (wireshark:21258) 03:19:38.395981 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
 ** (wireshark:21258) 03:19:38.396044 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396075 [GUI ECHO] -- Got keys from plugin meta data ("eglfs")
 ** (wireshark:21258) 03:19:38.396085 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
 ** (wireshark:21258) 03:19:38.396128 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396152 [GUI ECHO] -- Got keys from plugin meta data ("linuxfb")
 ** (wireshark:21258) 03:19:38.396162 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
 ** (wireshark:21258) 03:19:38.396195 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396215 [GUI ECHO] -- Got keys from plugin meta data ("minimal")
 ** (wireshark:21258) 03:19:38.396227 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
 ** (wireshark:21258) 03:19:38.396260 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396283 [GUI ECHO] -- Got keys from plugin meta data ("minimalegl")
 ** (wireshark:21258) 03:19:38.396294 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
 ** (wireshark:21258) 03:19:38.396327 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396354 [GUI ECHO] -- Got keys from plugin meta data ("offscreen")
 ** (wireshark:21258) 03:19:38.396363 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
 ** (wireshark:21258) 03:19:38.396398 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396421 [GUI ECHO] -- Got keys from plugin meta data ("vnc")
 ** (wireshark:21258) 03:19:38.396433 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
 ** (wireshark:21258) 03:19:38.396462 [GUI WARNING] -- Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


 ** (wireshark:21258) 03:19:38.396480 [GUI ECHO] -- Got keys from plugin meta data ("xcb")
 ** (wireshark:21258) 03:19:38.396490 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
 ** (wireshark:21258) 03:19:38.396527 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqeglfs.so"
 ** (wireshark:21258) 03:19:38.396547 [GUI ECHO] -- Got keys from plugin meta data ("eglfs")
 ** (wireshark:21258) 03:19:38.396556 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqlinuxfb.so"
 ** (wireshark:21258) 03:19:38.396572 [GUI ECHO] -- Got keys from plugin meta data ("linuxfb")
 ** (wireshark:21258) 03:19:38.396582 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimal.so"
 ** (wireshark:21258) 03:19:38.396600 [GUI ECHO] -- Got keys from plugin meta data ("minimal")
 ** (wireshark:21258) 03:19:38.396609 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqminimalegl.so"
 ** (wireshark:21258) 03:19:38.396625 [GUI ECHO] -- Got keys from plugin meta data ("minimalegl")
 ** (wireshark:21258) 03:19:38.396635 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqoffscreen.so"
 ** (wireshark:21258) 03:19:38.396653 [GUI ECHO] -- Got keys from plugin meta data ("offscreen")
 ** (wireshark:21258) 03:19:38.396663 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqvnc.so"
 ** (wireshark:21258) 03:19:38.396677 [GUI ECHO] -- Got keys from plugin meta data ("vnc")
 ** (wireshark:21258) 03:19:38.396686 [GUI ECHO] -- QFactoryLoader::QFactoryLoader() looking at "/usr/bin/platforms/libqxcb.so"
 ** (wireshark:21258) 03:19:38.396702 [GUI ECHO] -- Got keys from plugin meta data ("xcb")
 ** (wireshark:21258) 03:19:38.397942 [GUI ECHO] -- loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
 ** (wireshark:21258) 03:19:38.398001 [GUI WARNING] -- could not connect to display
 ** (wireshark:21258) 03:19:38.398042 [GUI ERROR] -- This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

 ** (wireshark:21258) Aborting on fatal log level exception
Aborted (core dumped)
root@S01:~#

相关内容