troubles getting vbox to work dkms [UPDATE-Solved]

Questions about virtualization software
Forum rules
Before you post please read how to get help
User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

troubles getting vbox to work dkms [UPDATE-Solved]

Post by wutsinterweb » Sat Jun 16, 2018 12:09 am

I have solved (sort of) the problem, see my submission later in this thread.

My terminal seems stuck at this after running a purge:

Code: Select all

lenny@lenny:~$ sudo dpkg --configure -a
Setting up virtualbox-dkms (5.2.10-dfsg-6) ...
Removing old virtualbox-5.2.10 DKMS files...

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.2.10
Kernel:  4.15.0-23-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod.....

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.10
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-5.2.10 DKMS files...
Building for 4.15.0-23-generic
Building initial module for 4.15.0-23-generic

Last edited by wutsinterweb on Sat Jun 23, 2018 10:23 pm, edited 1 time in total.
I'm just a student, your guidance is appreciated.

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Sat Jun 16, 2018 10:08 am

Left the terminal going all night and this morning it's still stuck at that same spot.
I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Sat Jun 16, 2018 11:35 am

Paste back the results of dkms status and inxi -S
ImageImage

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Sat Jun 16, 2018 10:02 pm

Code: Select all

lenny@lenny:~$ dkms status
bcmwl, 6.30.223.271+bdcom, 4.15.0-20-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 4.15.0-23-generic, x86_64: installed
virtualbox, 5.2.10, 4.15.0-23-generic, x86_64: built
virtualbox-guest, 5.2.10, 4.15.0-23-generic, x86_64: installed (original_module exists)
lenny@lenny:~$ inxi -s
Sensors:   System Temperatures: cpu: 48.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
lenny@lenny:~$ inxi -S
System:    Host: lenny Kernel: 4.15.0-23-generic x86_64 bits: 64
           Desktop: Cinnamon 3.8.4  Distro: Linux Mint 19 Tara
lenny@lenny:~$ 

I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Sat Jun 16, 2018 10:50 pm

You returned inxi -s which is pretty much useless in this context - use a capital -S with inxi -S
ImageImage

User avatar
catweazel
Level 15
Level 15
Posts: 5917
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: troubles getting vbox to work dkms

Post by catweazel » Sat Jun 16, 2018 11:01 pm

WharfRat wrote:
Sat Jun 16, 2018 10:50 pm
You returned inxi -s which is pretty much useless in this context - use a capital -S with inxi -S

Code: Select all

lenny@lenny:~$ inxi -S
System:    Host: lenny Kernel: 4.15.0-23-generic x86_64 bits: 64
           Desktop: Cinnamon 3.8.4  Distro: Linux Mint 19 Tara
A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. - Max Planck

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Sat Jun 16, 2018 11:10 pm

No, I did do that, after making a mistake with s, I did it with S, please look again.
I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Sat Jun 16, 2018 11:26 pm

wutsinterweb wrote:
Sat Jun 16, 2018 11:10 pm
No, I did do that, after making a mistake with s, I did it with S, please look again.
OK, I probably missed it.

I'm running 18.3 and have VB 5.1.34 so when I saw VB 5.2.10 i just needed to verify your Mint version.

I see dkms was able to build the modules, but for some reason cannot install them.

I also see virtualbox-guest - are you running Mint in a VB or native :?:

Also paste back apt search virtualbox|grep ^i
ImageImage

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Sun Jun 17, 2018 12:24 am

Mint running in laptop bare metal and trying to run a VB of Windows 10, throwing up the errors.

Code: Select all

          Desktop: Cinnamon 3.8.4  Distro: Linux Mint 19 Tara
lenny@lenny:~$ apt search virtualbox|grep ^i
i A virtualbox                      - x86 virtualization solution - base binarie
i   virtualbox-ext-pack             - extra capabilities for VirtualBox, downloa
i   virtualbox-guest-dkms           - x86 virtualization solution - guest additi
i   virtualbox-qt                   - x86 virtualization solution - Qt based use
i A virtualbox-source               - x86 virtualization solution - kernel modul
lenny@lenny:~$ 
I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Sun Jun 17, 2018 8:32 am

This package virtualbox-guest-dkms is not correct - it's for a VB installed Mint

What you want is virtualbox-dkms

So sudo apt-get purge virtualbox-guest-dkms && sudo apt-get install virtualbox-dkms should take care of it.

You also might want to install virtualbox-guest-additions-iso for additional VB guest support.
ImageImage

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Sun Jun 17, 2018 3:08 pm

Code: Select all

lenny@lenny:~$ sudo apt-get purge virtualbox-guest-dkms && sudo apt-get install virtualbox-dkms
[sudo] password for lenny: 
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
lenny@lenny:~$ 

which I tried to do and it hangs, as per posts above.
I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Sun Jun 17, 2018 4:13 pm

Are you saying that you ran sudo dpkg --configure -a to no avail :?:

What version of dkms is 19 running dkms --version :?:
ImageImage

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Sun Jun 17, 2018 7:27 pm

Yes, as I posted above, it gets stuck in the process.

Code: Select all

lenny@lenny:~$ dkms --version
dkms: 2.2.1.0
lenny@lenny:~$ 
I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Sun Jun 17, 2018 9:02 pm

Since apt won't let you continue, try clearing virtualbox guest with sudo dkms remove -m virtualbox-guest -v 5.2.10 -k 4.15.0-23-generic

Then try removing virtualbox with sudo dkms remove -m virtualbox -v 5.2.10 -k 4.15.0-23-generic

If these work then reinstall virtualbox and install virtualbox-dkms with sudo apt-get install --reinstall virtualbox && sudo apt-get install virtualbox-dkms
ImageImage

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Mon Jun 18, 2018 12:41 am

I ran the first two lines successfully, then tried running the 3rd line with this result:

Code: Select all

lenny@lenny:~$ sudo apt-get install --reinstall virtualbox && sudo apt-get install virtualbox-dkms
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
lenny@lenny:~$ 
I'm just a student, your guidance is appreciated.

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Mon Jun 18, 2018 12:44 am

I tried this, it is stuck as you can see:

Code: Select all

lenny@lenny:~$ sudo apt-get install --reinstall virtualbox && sudo apt-get install virtualbox-dkms
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
lenny@lenny:~$ sudo dpkg --configure -a
Setting up virtualbox-dkms (5.2.10-dfsg-6) ...
Loading new virtualbox-5.2.10 DKMS files...
Building for 4.15.0-23-generic
Building initial module for 4.15.0-23-generic

I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Mon Jun 18, 2018 10:30 am

I can't help you much further since I'm not running Mint 19 and you have different versions of VB and dkms.

Run sudo apt-get install --reinstall virtualbox again then open another terminal instance and run strace -p $(pidof dkms)

Break it after a few minutes with ctl-c and paste back some of the output.

You might have to file a bug report at https://github.com/linuxmint/linuxmint/issues
ImageImage

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Mon Jun 18, 2018 2:24 pm

CTRL-C didn't seem to work, I think I had to literally hard shut the terminal itself. I will try that, however, thank you.
I'm just a student, your guidance is appreciated.

User avatar
wutsinterweb
Level 5
Level 5
Posts: 637
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb » Mon Jun 18, 2018 2:29 pm

Code: Select all

enny@lenny:~$ strace -p $(pidof dkms)
strace: option requires an argument -- 'p'
Try 'strace -h' for more information.
lenny@lenny:~$ 
I'm just a student, your guidance is appreciated.

User avatar
WharfRat
Level 20
Level 20
Posts: 11365
Joined: Thu Apr 07, 2011 8:15 pm

Re: troubles getting vbox to work dkms

Post by WharfRat » Mon Jun 18, 2018 2:46 pm

Maybe dkms transferred control to another process.

Run sudo apt-get install --reinstall virtualbox again and in another terminal instance after a few minutes run pgrep -a dkms
ImageImage

Post Reply

Return to “Virtualization”