Owncloud 无法加载 Qt-Platform xcb

Owncloud 无法加载 Qt-Platform xcb

我尝试在我的 Debian 桌面上运行 owncloud 客户端。我运行了apt-get install owncloud-client该程序。但是当我owncloud在命令行中发出以下命令时,会出现以下错误:

This application failed to start because it could not find or load the
Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, minimalegl, offscreen.

Reinstalling the application may fix this problem.

但是,当我从存储库安装包时,库依赖关系应该没有问题。为了验证我使用了ldd

ldd /usr/bin/owncloud | grep xcb

输出:

libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f190be16000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f190acd3000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f190aaba000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f190a8b5000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f190a6b2000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f190a4af000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f190a2a8000)

我还能做什么来发现问题?

答案1

尽管根据命令ldd,所有依赖关系都已满足,但实际上并非如此。在 Debian 8 上,我需要安装 Qt5:

apt-get install qt5-default

这解决了问题。

相关内容