LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2016, 01:54 PM   #16
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Cool


Quote:
Originally Posted by donald3.heckel View Post
Update:

It's showing this for the other modules too?

If all else fails, you could try a Virtualbox reinstall.

Code:
sudo apt-get autoremove virtualbox
sudo apt-get purge virtualbox
And instead of using apt-get,

Download:

http://download.virtualbox.org/virtu...inux_amd64.run

And then run:

Code:
chmod +x VirtualBox-5.0.20-106931-Linux_amd64.run
sudo ./VirtualBox-5.0.20-106931-Linux_amd64.run
That should rebuild the kernel modules. Be sure to keep the aforementioned modules in your /etc/modules.

Sincerely,

donald3.heckel
You're welcome
 
Old 04-29-2016, 01:57 PM   #17
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048

Original Poster
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by donald3.heckel View Post
You're welcome
Ok. Before I get to it, if I carry out

sudo apt-get autoremove virtualbox
sudo apt-get purge virtualbox

how will this affect my current images (of which there are several) once I've reinstalled VirtualBox? Will I have to reconnect them all?
 
Old 04-29-2016, 01:59 PM   #18
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I'll get there. I'll try the module method you mentioned before the fallback reinstall one. However, vboxdrv isn't installed despite dpkg-l showing that virtualbox-5.0 is installed.
I guess vboxdrv is being faulty. I believe if you installed from source or tried loading your modules with no effect, I guess your reinstall might be the only option.

Info:

About the /etc/modules, it will load those modules on boot if all goes well.

Sincerely,
donald3.heckel

Last edited by donald3.heckel; 04-29-2016 at 02:12 PM. Reason: Updated response
 
Old 04-29-2016, 02:04 PM   #19
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Your Virtualbox images should be unaffected. When you reinstall, be sure to add them back in.

If you are too concerned, I suggest you temporarily move them out of the way say ~/vboxBaks for example.

Sincerely,

donald3.heckel

Last edited by donald3.heckel; 04-29-2016 at 02:06 PM.
 
Old 04-29-2016, 02:16 PM   #20
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Let me know how it goes.

Sincerely,

donald3.heckel

Last edited by donald3.heckel; 04-29-2016 at 02:19 PM.
 
Old 04-29-2016, 02:27 PM   #21
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048

Original Poster
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
OK, I uninstalled, purged and installed VirtualBox exactly as you suggested. The result of the installation was:

Code:
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.............
VirtualBox Version 5.0.20 r106931 (2016-04-28T13:33:21Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules
Error! Bad return status for module build on kernel: 4.5.2-040502-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.20/build/make.log for more information.

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.
Then, I experience exactly the same problem in trying to launch a VirtualBox client as before.

The build log complains about the lack of support for -fstack-protector-strong as before.
 
Old 04-29-2016, 02:30 PM   #22
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Ahhh okay.

Assuming the module loading won't work,

Post the output of uname -r.

Sincerely,

donald3.heckel
 
Old 04-29-2016, 02:31 PM   #23
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Quote:
Originally Posted by donald3.heckel View Post
Ahhh okay.

Assuming the module loading won't work,

Post the output of uname -r.

Sincerely,

donald3.heckel

Make sure you have them loaded. If it does not work, let me know the output of your uname -r.
 
Old 04-29-2016, 02:43 PM   #24
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048

Original Poster
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by donald3.heckel View Post
Make sure you have them loaded. If it does not work, let me know the output of your uname -r.
modprobe reports all modules missing, despite the contents of /etc/modules being

Code:
lp
rtc
vboxdrv
vboxpci
vbox-host-dkms
vboxnetadp
vboxnetflt
and a reboot having taken place since that file was edited.

uname -r gives

4.5.2-040502-generic
 
Old 04-29-2016, 03:06 PM   #25
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048

Original Poster
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Donald, thanks for all your help, but I'm going to restore my previous o/s from backup (I tried rebooting into the older kernel but VirtualBox is now balking for another reason - it will be cleaner to just restore things as they were). I reckon my experiment with upgrading my kernel is at an end...
 
Old 04-29-2016, 04:43 PM   #26
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
No problem. I hope you found this useful. At least we tried!

Sincerely,

donald3.heckel
 
1 members found this post helpful.
Old 04-29-2016, 06:39 PM   #27
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
(more info)

On running dpkg-reconfigure virtualbox-5.0, the result is:

Code:
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modulesError! Could not locate dkms.conf file.
File:  does not exist.
 ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 4.5.2-040502-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.20/build/make.log for more information.
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
/var/log/vbox-install.log is quite complex but the main error seems to be that -fstack-protector-strong is not recognised as a command line option by gcc.
do you have DKMS installed???
header files, and all that other stuff it needs to build what it needs to?

I did a remove everything, but my files with installes in them. then reinstalled it, let it pull in the dependices and do its thing, it saved me a lot of problems and such.

mine just picks the installed VirtOS's when its reinstlled due to the config dir it puts in /home/user/xxx

you might have to twik it a little to get them working, but you do not lose anything. I didn't anyways.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] VirtualBox won't start after upgrading Ubuntu kernel Ari Passopolis Linux - Software 2 01-01-2015 12:04 PM
Problem installing virtualbox on sabayon 8, kernel 3.3.0 Pale Linux - Software 1 07-30-2012 11:10 AM
kernel upgrading problem jemey Slackware 3 05-11-2006 01:12 PM
problem after upgrading the kernel juanb Linux - Software 1 03-11-2003 08:34 AM
Problem with upgrading Kernel 2.4.18 cjli Linux - Software 4 04-04-2002 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration