[Fixed] Ubuntu Trusty: GUI not starting, missing dependency

Postings relating to old VirtualBox pre-releases
Post Reply
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

[Fixed] Ubuntu Trusty: GUI not starting, missing dependency

Post by noteirak »

Using the .deb 64 bits package, trying to start VirtualBox gives the following error message:

Code: Select all

$ 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
Tried to reinstall just to be sure, but the depedency for xcb is never triggered:

Code: Select all

$ sudo gdebi Downloads/virtualbox-5.1_5.1.0~beta1-107766~Ubuntu~trusty_amd64.deb 
[sudo] password for xxxx: 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Building data structures... Done 
Building data structures... Done 

Oracle VM VirtualBox
 VirtualBox is a powerful PC virtualization solution allowing you to run a
 wide range of PC operating systems on your Linux system. This includes
 Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
 feature set and excellent performance, making it the premier virtualization
 software solution on the market.
Do you want to install the software package? [y/N]:y
(Reading database ... 444178 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.1_5.1.0~beta1-107766~Ubuntu~trusty_amd64.deb ...
Unpacking virtualbox-5.1 (5.1.0~beta1-107766~Ubuntu~trusty) over (5.1.0~beta1-107766~Ubuntu~trusty) ...
Setting up virtualbox-5.1 (5.1.0~beta1-107766~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 gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
$
Installed xcb, tried to restart VirtualBox, still no go, even tho xcb itself works and is found

Code: Select all

$ 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
$ xcb
$ which xcb
/usr/bin/xcb 
Finally, I tried rebooting but still no go
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by Perryg »

Qt 5 installed? I know they pulled the plug on QT < than 5 in SVN, maybe they have a depend bug in the installer.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by noteirak »

I have the following installed

Code: Select all

$ dpkg -l *qt5* | grep ^ii
ii  libaccounts-qt5-1                           1.11+14.04.20140410.1-0ubuntu1                      amd64        QT library for single sign on
ii  libqt5core5a:amd64                          5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 core module
ii  libqt5dbus5:amd64                           5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 D-Bus module
ii  libqt5gui5:amd64                            5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 GUI module
ii  libqt5keychain0                             0.6.2-1.1                                           amd64        Cross platform password store library
ii  libqt5network5:amd64                        5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 network module
ii  libqt5opengl5:amd64                         5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 OpenGL module
ii  libqt5positioning5:amd64                    5.2.1-1ubuntu2                                      amd64        Qt Positioning module
ii  libqt5printsupport5:amd64                   5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 print support module
ii  libqt5qml5:amd64                            5.2.1-3ubuntu15.1                                   amd64        Qt 5 QML module
ii  libqt5quick5:amd64                          5.2.1-3ubuntu15.1                                   amd64        Qt 5 Quick library
ii  libqt5sensors5:amd64                        5.2.1+dfsg-2ubuntu2                                 amd64        Qt Sensors module
ii  libqt5sql5:amd64                            5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 SQL module
ii  libqt5sql5-sqlite:amd64                     5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 SQLite 3 database driver
ii  libqt5test5:amd64                           5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 test module
ii  libqt5webkit5:amd64                         5.1.1-1ubuntu8                                      amd64        Web content engine library for Qt
ii  libqt5widgets5:amd64                        5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 widgets module
ii  libqt5xml5:amd64                            5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 XML module
ii  libsignon-qt5-1                             8.56+14.04.20140307-0ubuntu2                        amd64        Single Sign On framework
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by noteirak »

Doesn't look like QT5 is listed in the dependencies

Code: Select all

$ dpkg -I virtualbox-5.1_5.1.0~beta1-107766~Ubuntu~trusty_amd64.deb 
 new debian package, version 2.0.
 size 69774324 bytes: control archive=20492 bytes.
    1644 bytes,    20 lines      control              
   61535 bytes,   671 lines      md5sums              
    3467 bytes,   103 lines   *  postinst             #!/bin/sh
    1882 bytes,    54 lines   *  postrm               #!/bin/sh
    2347 bytes,    66 lines   *  preinst              #!/bin/bash
    1596 bytes,    55 lines   *  prerm                #!/bin/sh
     275 bytes,     8 lines      shlibs               
    2531 bytes,    55 lines      templates            
 Package: virtualbox-5.1
 Version: 5.1.0~beta1-107766~Ubuntu~trusty
 Architecture: amd64
 Maintainer: Oracle Corporation <info@virtualbox.org>
 Installed-Size: 167142
 Pre-Depends: debconf (>= 1.1) | debconf-2.0
 Depends: libc6 (>= 2.15), libcurl3 (>= 7.16.2), libdevmapper1.02.1 (>= 2:1.02.20), libfontconfig1 (>= 2.9.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.12.0), libice6 (>= 1:1.0.0), libpng12-0 (>= 1.2.13-4), libpython2.7 (>= 2.7), libsdl1.2debian (>= 1.2.11), libsm6, libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6), libvpx1 (>= 1.0.0), libx11-6, libx11-xcb1, libxcb1 (>= 1.8), libxcursor1 (>> 1.1.2), libxext6, libxinerama1, libxml2 (>= 2.7.4), libxmu6, libxrender1, libxt6, zlib1g (>= 1:1.1.4), psmisc, adduser
 Recommends: libasound2, libpulse0, libsdl-ttf2.0-0, kmod | kldutils | module-init-tools, linux-headers-generic | linux-headers-generic-pae | linux-headers-686-pae | linux-headers-amd64 | linux-headers-2.6-686 | linux-headers-2.6-amd64 | linux-headers, linux-image, gcc, make | build-essential | dpkg-dev, binutils, pdf-viewer, libgl1
 Conflicts: virtualbox, virtualbox-guest-additions-iso, virtualbox-ose
 Replaces: virtualbox
 Provides: virtualbox
 Section: contrib/misc
 Priority: optional
 Description: Oracle VM VirtualBox
  VirtualBox is a powerful PC virtualization solution allowing you to run a
  wide range of PC operating systems on your Linux system. This includes
  Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
  feature set and excellent performance, making it the premier virtualization
  software solution on the market.
 Python-Version: 2.7
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by Perryg »

Try running sudo apt-get install -f and see if it finds any missing depends.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by Perryg »

Also this may help to get it going. https://forum.qt.io/topic/30257/solved- ... plugin-xcb

I manually build my QT so I did not have depend issues, probably why I did not have this issue, maybe.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by noteirak »

I did try apt-get install -f of course. I'll give a try to the Qt ticket and see what happens on Monday, will be off untll then.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by Byroniac »

I have the same problem on Ubuntu 16.04, and I've tried "sudo apt-get install -f" with no problems. I was wondering, am I missing linux-vdso or is the problem with ld-linux? Or both? I am a newbie when it comes to libraries on Ubuntu. I also tried installing libqt5 and libqt4 everything (even though it doesn't mention any libQt4 stuff). I was going to build libQt5.5.1 on my machine but I was afraid it would take hours.

Code: Select all

byron@byroniac:/usr/lib/x86_64-linux-gnu$ ldd libQt5Gui.so.5.5.1
	linux-vdso.so.1 =>  (0x00007fff2bf73000)
	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fead7e31000)
	libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fead7c0c000)
	libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fead79ad000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fead7793000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007fead7522000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fead719f000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fead6e96000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fead6acd000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fead68af000)
	libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007fead644d000)
	libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007fead60b9000)
	libpcre16.so.3 => /usr/lib/x86_64-linux-gnu/libpcre16.so.3 (0x00007fead5e52000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fead5c4e000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fead593d000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fead5734000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fead551e000)
	/lib64/ld-linux-x86-64.so.2 (0x0000556a689e6000)
	libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fead5274000)
	libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fead504e000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fead4e25000)
	libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fead4c22000)
	libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fead4a1e000)
	libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fead4817000)
	libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fead4614000)
	libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fead43e5000)
	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fead41d3000)
	libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fead3fd0000)
	libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fead3dc9000)
	libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fead3bc7000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fead388d000)
	libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fead3673000)
	libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fead346e000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fead324c000)
	libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fead3045000)
	libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fead2e36000)
	libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007fead137e000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fead110e000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fead0f09000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fead0d03000)
Sorry my actual error is not a missing xcb but a problem with libQt5Gui.so.5.5.1 but I cannot tell much from /var/log/syslog:

Code: Select all

un  5 00:21:46 byroniac kernel: [ 2365.609443] VirtualBox[9391]: segfault at 80 ip 00007f03f7954f84 sp 00007fffd696d1f8 error 4 in libQt5Gui.so.5.5.1[7f03f785f000+527000]
Jun  5 00:21:50 byroniac wpa_supplicant[1362]: wlp4s0: Failed to initiate sched scan
Jun  5 00:24:59 byroniac wpa_supplicant[1362]: message repeated 3 times: [ wlp4s0: Failed to initiate sched scan]
Jun  5 00:25:01 byroniac CRON[10468]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun  5 00:26:02 byroniac wpa_supplicant[1362]: wlp4s0: Failed to initiate sched scan
Jun  5 00:26:27 byroniac kernel: [ 2646.812642] traps: VirtualBox[11000] general protection ip:7fc6144c5f84 sp:7ffdda8faff8 error:0 in libQt5Gui.so.5.5.1[7fc6143d0000+527000]
johnlee
Posts: 41
Joined: 30. Mar 2012, 20:07

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by johnlee »

fwiw ubuntu 16.04 and 16.10 running here on the beta, on win7 64 w/o problems - guess it depends on your exact config. j
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

Re: [Ubuntu - trusty] GUI not starting, missing dependency

Post by Byroniac »

johnlee wrote:fwiw ubuntu 16.04 and 16.10 running here on the beta, on win7 64 w/o problems - guess it depends on your exact config. j
Is your host system Win7 64? My host system is Ubuntu 16.04. I have not tried the beta on my Windows 10 (Insider Preview 14352.1002) though I suppose I should test that eventually.
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: Ubuntu Trusty: GUI not starting, missing dependency

Post by frank »

Shame on me. You are right. I just saw that I completely forgot to test packages for older Linux distributions so expect other packages to be broken as well. For older Linux distributions we ship precompiled Qt5 libraries. There are workarounds to fix the problem.

First, execute the following commands as root (this command requires the chrpath package to be installed):

Code: Select all

chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/*.so.5
chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/plugins/platforms/*.so
Second: Add the following file as /usr/lib/virtualbox/qt.conf

Code: Select all

[Paths]
Plugins = /usr/lib/virtualbox/plugins
Of course this mess will be fixed with the next Beta.
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: [Fixed] Ubuntu Trusty: GUI not starting, missing dependency

Post by frank »

Again, all .rpm/.deb packages for older Linux distributions are affected. Actually packages which contain our own compiled Qt5 binaries.
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

Re: Ubuntu Trusty: GUI not starting, missing dependency

Post by Byroniac »

frank wrote:Shame on me. You are right. I just saw that I completely forgot to test packages for older Linux distributions so expect other packages to be broken as well. For older Linux distributions we ship precompiled Qt5 libraries. There are workarounds to fix the problem.

First, execute the following commands as root (this command requires the chrpath package to be installed):

Code: Select all

chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/*.so.5
chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/plugins/platforms/*.so
Second: Add the following file as /usr/lib/virtualbox/qt.conf

Code: Select all

[Paths]
Plugins = /usr/lib/virtualbox/plugins
Of course this mess will be fixed with the next Beta.
I installed the chrpath package but I am not familiar with that command. Should I try this on my Ubuntu 16.04 as well? Thanks.
Byroniac
Posts: 28
Joined: 1. Sep 2014, 09:08

Re: Ubuntu Trusty: GUI not starting, missing dependency

Post by Byroniac »

frank wrote:Shame on me. You are right. I just saw that I completely forgot to test packages for older Linux distributions so expect other packages to be broken as well. For older Linux distributions we ship precompiled Qt5 libraries. There are workarounds to fix the problem.

First, execute the following commands as root (this command requires the chrpath package to be installed):

Code: Select all

chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/*.so.5
chrpath -k --replace /usr/lib/virtualbox /usr/lib/virtualbox/plugins/platforms/*.so
Second: Add the following file as /usr/lib/virtualbox/qt.conf

Code: Select all

[Paths]
Plugins = /usr/lib/virtualbox/plugins
Of course this mess will be fixed with the next Beta.
Those commands don't work for me on Ubuntu 16.04. I did install the xcb package and the chrpath, but it gives me files not found when I tried to do them as root (sudo -i).
Post Reply