Page 1 of 1

VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 18. Jul 2016, 17:43
by kurt417
I just made a clean (older version existed, but was uninstalled and config files deleted) install of virtualbox-5.1_5.1.0-108711~Ubuntu~trusty_i386.deb (downloaded here) on Linux Mint 17.3 (Ubuntu Trusty based).

The installation went apparently well, except that when I try to launch VB, I get following error message:

Code: Select all

user@computer ~ $ VirtualBox U%
Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
Aborted
Reinstalling it (once or twice) doesn't fix the problem; Besides, Synaptic package manager tells me some form of xcb is installed. Apparently Virtualbox just doesn't find it.
I also tried to uninstall it, remove all configuration files, and reinstall it; The problem remains the same.


As I already said, this is Linux Mint 17.3 (Ubuntu "Trusty" based), 32-bits, kernel #37~14.04.1-Ubuntu SMP Thu Oct 22 09:37:25 UTC 2015.


Here is (in case it helps) what the terminal said during installation:

Code: Select all

user@computer ~/Downloads $ sudo dpkg -i virtualbox-5.1_5.1.0-108711~Ubuntu~trusty_i386.deb
[sudo] password for user: 
Selecting previously unselected package virtualbox-5.1.
(Reading database ... 253736 files and directories currently installed.)
Preparing to unpack virtualbox-5.1_5.1.0-108711~Ubuntu~trusty_i386.deb ...
Unpacking virtualbox-5.1 (5.1.0-108711~Ubuntu~trusty) ...
Setting up virtualbox-5.1 (5.1.0-108711~Ubuntu~trusty) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...

The vbox-install.log is too long to paste, so I added it as attachment:
vbox-install.log_kurt417.gz
(7.79 KiB) Downloaded 34 times
Thank you for any insights and solutions.

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 20. Jul 2016, 19:05
by 0x0000.ru
You can try solution from this thread:
P=/usr/lib/virtualbox; sudo LD_LIBRARY_PATH=$P:$P/plugins/platforms $P/VirtualBox

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 20. Jul 2016, 19:09
by 0x0000.ru
Anyway, it looks like a bug in the deb package.

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 20. Jul 2016, 20:02
by kurt417
0x0000.ru wrote:You can try solution from this thread:
P=/usr/lib/virtualbox; sudo LD_LIBRARY_PATH=$P:$P/plugins/platforms $P/VirtualBox
Thanks!


Though I sure hope they will fix this bug soon?
Having to use LD_LIBRARY_PATH to run VirtualBox is suboptimal... :roll:

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 20. Jul 2016, 20:14
by socratis
kurt417 wrote:Though I sure hope they will fix this bug soon?
Take a look at ticket #15634. I believe it is the same problem and there is a test build for you to test and contribute to the bug by posting your experience with the test build.

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 21. Jul 2016, 01:30
by kurt417
socratis wrote:Take a look at ticket #15634. I believe it is the same problem and there is a test build for you to test and contribute to the bug by posting your experience with the test build.
Will do. Downloaded the 5.1.1-108841 installer and will try it out tomorrow.

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 30. Jul 2016, 21:15
by kurt417
Apparently this problem has nothing to do with ticket #15634. All builds I tried since are all broken the same way, they all don't recognize Qt5 on Ubuntu 14.04 LTS, and apparently it's not going to be fixed.

So, it's LD_LIBRARY_PATH or the highway? :?

Isn't there a more elegant way to make VirtualBox work?
Could somebody please tell me which QT5 module contains that darn "xcb" plugin VirtualBox is asking for, so I might try to (re)install it manually?

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 31. Jul 2016, 01:37
by socratis
kurt417 wrote:VirtualBox on Linux Hosts ... Isn't there a more elegant way?
You must be new here...

(famous old-Slashdot saying, couldn't resist ;) )

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 31. Jul 2016, 05:17
by kurt417
socratis wrote:
kurt417 wrote:VirtualBox on Linux Hosts ... Isn't there a more elegant way?
You must be new here...

(famous old-Slashdot saying, couldn't resist ;) )
Sorry? That went completely over my head. First, I didn't say what you quoted, and then, what's your point exactly? :?:

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 31. Jul 2016, 10:55
by socratis
Never mind, it was meant as a joke, hence the smiley ;)
The "joke" was that you're looking for elegance in a Linux related forum. Not Linux' strongest suit.

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 31. Jul 2016, 12:05
by 0x0000.ru
The new version 5.1.2 with Fix #15634 did not solve the problem with the launch. I created a new ticket: https://www.virtualbox.org/ticket/15717

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 2. Aug 2016, 03:28
by kurt417
Great, thanks. Let's hope they get to fix it.
Apparently it's not bothering a lot of people, I would had expected droves of people complaining by now... :?

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 17. Aug 2016, 10:47
by 0x0000.ru
The bug was specific to 32-bit systems. Fix scheduled for 5.1.4.

Re: VB 5.1 won't start - could not find Qt platform plugin "xcb"

Posted: 17. Aug 2016, 10:59
by 0x0000.ru
Wow! The new release is already there.