You are not logged in.

#1 2016-03-14 03:01:12

UnderscoreX3
Member
Registered: 2016-03-14
Posts: 7

Problem installing Virtualbox in arch

Hello everyone and thanks in advance to anyone who offers help here.

My problem is that I am unable to install Virtualbox on arch. So far, I have attempted to install virtualbox by just doing sudo pacman -S virtualbox. The installation completes, but I get this message at the end of the install:

     Module vboxhost/5.0.16_OSE already installed on kernel 4.4.5-1-ARCH/x86_64

When I try running virtualbox it doesn't open and it gives me an error. Here's the output that I am getting:

     [user@computer ~]$ virtualbox
     VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQtCore.so.4: cannot open shared object file: No such file or directory

I spent about an hour googling for this to see if I could find a solution but the solutions suggested did not work for me. Here is what I tried so far:

sudo pacman -S qt
sudo dkms install vboxhost/$(pacman -Q virtualbox|awk '{print $2}'|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')

  The above command was suggested on a few of the sources that I found including the arch wiki. When I run it, this is the output that I get:

  [user@computer ~]$ sudo dkms install vboxhost/$(pacman -Q virtualbox|awk '{print $2}'|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')
  Error! Could not find module source directory.
  Directory: /usr/src/vboxhost-5.0.16 does not exist.

  I was able to get around that error by changing my command a little bit, because for me the virtualbox host module is located at /usr/src/vboxhost5.0.16_OSE . This is what I tried:

  [user@computer ~]$ sudo dkms install vboxhost/5.0.16_OSE -k $(uname -rm|sed 's/\ /\//')
  Module vboxhost/5.0.16_OSE already installed on kernel 4.4.5-1-ARCH/x86_64

I have also tried doing:

- dkms autoinstall

None of what I have tried works. I still end up getting the same error:

     [user@computer ~]$ virtualbox
     VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQtCore.so.4: cannot open shared object file: No such file or directory

I think the problem might be that for whatever reason, my host module is /usr/src/vboxhost5.0.16_OSE instead of /usr/src/vboxhost-5.0.16 . Another thing that might be causing it is that I don't have the libQtCore.so.4 package, but I installed all packages in qt and still got the same error, so I don't think this would be what's causing it, unless I need to get that package from somewhere else. Another thing that might be causing this is that I am not able to install the package virtualbox-host-modules. Some sources suggest installing it, but pacman doesn't seem to recognize virtualbox-host-modules as a package anymore

Overall, I am still not entirely sure why I am getting this error, or how to fix it. Would greatly appreciate any help / other opinions.

Last edited by UnderscoreX3 (2016-03-14 03:13:37)

Offline

#2 2016-03-14 03:16:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problem installing Virtualbox in arch

% pacman -Qi virtualbox
...
Optional Deps   : qt4: GUI support [installed]
...

Always pay attention to what pacman tells you when you install something.

Offline

#3 2016-03-14 03:17:39

UnderscoreX3
Member
Registered: 2016-03-14
Posts: 7

Re: Problem installing Virtualbox in arch

Installing qt4 fixes it. I should have noticed that earlier. Thanks, Scimmia

Offline

Board footer

Powered by FluxBB