troubles getting vbox to work dkms [UPDATE-Solved]

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

troubles getting vbox to work dkms [UPDATE-Solved]

Post by wutsinterweb »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

Left the terminal going all night and this morning it's still stuck at that same spot.
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

Paste back the results of dkms status and inxi -S
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

You returned inxi -s which is pretty much useless in this context - use a capital -S with inxi -S
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: troubles getting vbox to work dkms

Post by catweazel »

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
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

No, I did do that, after making a mistake with s, I did it with S, please look again.
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

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
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

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.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

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

What version of dkms is 19 running dkms --version :?:
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

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
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

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
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

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've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: troubles getting vbox to work dkms

Post by wutsinterweb »

Code: Select all

enny@lenny:~$ strace -p $(pidof dkms)
strace: option requires an argument -- 'p'
Try 'strace -h' for more information.
lenny@lenny:~$ 
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
WharfRat

Re: troubles getting vbox to work dkms

Post by WharfRat »

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
Locked

Return to “Virtual Machines”