在全新安装(不是从 17.04 升级)时,我无法安装/运行 virtualbox。运行 virtualbox 时收到以下错误消息:
tim@africantiger:~/Downloads$ virtualbox
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQt5Core.so.5: cannot open shared object file: No such file or directory
我尝试满足所有 libQt5* 依赖项,但最终陷入以下困境:
tim@africantiger:/usr/lib/virtualbox$ virtualbox
Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
不确定如何继续——救命!
答案1
我遇到了非常类似的问题。这是我的问题和答案但是当我遇到 xcb 错误时,我所做的修复方法是:
- 根据输出
ldd /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so
: sudo apt install libxcb-xinerama0*
sudo apt install --reinstall libxcb-xinerama0*