[Fixed] Aborts when trying to start VirtualBox 5.1 on Ubuntu 16.04 (amd64)

Postings relating to old VirtualBox pre-releases
Post Reply
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

[Fixed] Aborts when trying to start VirtualBox 5.1 on Ubuntu 16.04 (amd64)

Post by Byroniac »

EDIT: yesterday I was getting a segmentation fault, but now I get a different error.

OK, the last commands I tried to execute were from the thread for Ubuntu Trusty not starting GUI because of a missing dependency:
viewtopic.php?f=15&t=78017#p363521
chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/*.so.5
chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/plugins/platforms/*.so
When I try to run VirtualBox 5.1 Beta 1 on my system, I get:

Code: Select all

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

Reinstalling the application may fix this problem.
Aborted (core dumped)
However, I have xcb installed:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
xcb is already the newest version (2.4-4.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Last edited by Byroniac on 7. Jun 2016, 20:59, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Aborts when trying to start VirtualBox 5.1 on Ubuntu 16.04 (amd64)

Post by Perryg »

Did you forget to do the second part?

Second: Add the following file as /usr/lib/virtualbox/qt.conf

Code: Select all

    [Paths]
    Plugins = /usr/lib/virtualbox/plugins
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

Re: Aborts when trying to start VirtualBox 5.1 on Ubuntu 16.04 (amd64)

Post by Byroniac »

Perryg wrote:Did you forget to do the second part?

Second: Add the following file as /usr/lib/virtualbox/qt.conf

Code: Select all

    [Paths]
    Plugins = /usr/lib/virtualbox/plugins
Forgot to say so, but no, I did that too and that got me further along. Without the /usr/lib/virtualbox/qt.conf, I just get a Segmentation Fault. Here is what is happening to me currently (this time trying it from su instead of sudo -i):

Code: Select all

byron@byroniac:~$ su -
Password: 
root@byroniac:~# chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/*.so.5
open: No such file or directory
elf_open: No such file or directory
root@byroniac:~# chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/plugins/platforms/*.so
open: No such file or directory
elf_open: No such file or directory
root@byroniac:~# cat /usr/lib/virtualbox/qt.conf
[Paths]
Plugins = /usr/lib/virtualbox/plugins

root@byroniac:~# mv -v /usr/lib/virtualbox/qt.conf /usr/lib/virtualbox/qt.conf.save
'/usr/lib/virtualbox/qt.conf' -> '/usr/lib/virtualbox/qt.conf.save'
root@byroniac:~# logout
byron@byroniac:~$ 
byron@byroniac:~$ virtualbox
Segmentation fault (core dumped)
byron@byroniac:~$ sudo mv -iv /usr/lib/virtualbox/qt.conf.save /usr/lib/virtualbox/qt.conf
[sudo] password for byron: 
'/usr/lib/virtualbox/qt.conf.save' -> '/usr/lib/virtualbox/qt.conf'
byron@byroniac:~$ virtualbox
Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem.
Aborted (core dumped)
byron@byroniac:~$
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Aborts when trying to start VirtualBox 5.1 on Ubuntu 16.04 (amd64)

Post by frank »

This should be really fixed with Beta 2. Could you confirm?
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

Re: Aborts when trying to start VirtualBox 5.1 on Ubuntu 16.04 (amd64)

Post by Byroniac »

frank wrote:This should be really fixed with Beta 2. Could you confirm?
Beta 2 is working great on my Ubuntu Xenial amd64 system! Thank you!
Post Reply