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

Discussions related to using VirtualBox on Linux hosts.
Post Reply
kurt417
Posts: 25
Joined: 29. Aug 2015, 15:31

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

Post 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.
0x0000.ru
Posts: 6
Joined: 17. Jul 2016, 00:01

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

Post by 0x0000.ru »

You can try solution from this thread:
P=/usr/lib/virtualbox; sudo LD_LIBRARY_PATH=$P:$P/plugins/platforms $P/VirtualBox
0x0000.ru
Posts: 6
Joined: 17. Jul 2016, 00:01

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

Post by 0x0000.ru »

Anyway, it looks like a bug in the deb package.
kurt417
Posts: 25
Joined: 29. Aug 2015, 15:31

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

Post 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:
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

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

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
kurt417
Posts: 25
Joined: 29. Aug 2015, 15:31

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

Post 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.
kurt417
Posts: 25
Joined: 29. Aug 2015, 15:31

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

Post 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?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

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

Post 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 ;) )
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
kurt417
Posts: 25
Joined: 29. Aug 2015, 15:31

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

Post 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? :?:
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

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

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
0x0000.ru
Posts: 6
Joined: 17. Jul 2016, 00:01

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

Post 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
kurt417
Posts: 25
Joined: 29. Aug 2015, 15:31

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

Post 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... :?
0x0000.ru
Posts: 6
Joined: 17. Jul 2016, 00:01

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

Post by 0x0000.ru »

The bug was specific to 32-bit systems. Fix scheduled for 5.1.4.
0x0000.ru
Posts: 6
Joined: 17. Jul 2016, 00:01

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

Post by 0x0000.ru »

Wow! The new release is already there.
Post Reply