LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-20-2016, 11:03 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
Can't use, remove, or install Virtualbox


Hey all, I was running OpenSUSE Tumbleweed and decided to go to Leap 42.2. The upgrade went fine in every way except one -- Virtualbox quit working. At Virtualbox's request I tried doing the vbox command but no joy; VB still won't run. I tried removing VB but I got an error about kernel headers not being found. I thought I might be able to install the new VB but no joy there either -- kernel headers can't be found.

I found a post that said to add the following in Yast to add the kernel headers:

Code:
   Development 

[X] Base Development
[X] Linux Kernel Development
[X] C/C++ Development
Nope, kernel headers still can't be found. Out of desperation I tried to do a --force reinstall of VB but even still no joy.

I'm out of ideas and I haven't found anything new to help my dilemma. Do any of you have any ideas, suggestions, or recommendations that might help? I've backed up my files in case my only option is to Nuke and Repopulate this beast but I'm hoping it won't come to that.

Thanks,

Joe B
 
Old 12-20-2016, 11:06 PM   #2
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Oh, and kernel-source has already been installed too.

Thanks,

Joe B
 
Old 01-17-2017, 07:19 PM   #3
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Ok, I discovered my problem (well, one of them) -- I was trying to rpm -e the rpm package itself. I found this page:

https://www.howtoforge.com/community...pm-packages.8/

I ran this command, rpm -qa | grep -i virtualbox, then when I had the package name I ran this command, rpm -e <package name> and done! I just removed VirtualBox from my computer. I hope this helps someone out there.

Thanks,

Joe B
 
Old 01-17-2017, 08:02 PM   #4
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
My celebration was premature. I downloaded and tried to install the newest VirtuaBox and met once again with failure:

Code:
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  zypper install kernel-default-devel-4.8.11-1.1.x86_64
(The last command may fail if your system is not fully updated.)
  zypper install kernel-default-devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
I tried to install the kernel-default-devel-4.8.11-1.1.x86_64 but no joy:

Code:
linux-cgcw:/home/jobee/Downloads #   zypper install kernel-default-devel-4.8.11-1.1.x86_64
Loading repository data...
Reading installed packages...
Package 'kernel-default-devel-4.8.11-1.1.x86_64' not found.
Resolving package dependencies...

Nothing to do.
linux-cgcw:/home/jobee/Downloads #
Then I tried to install kernel-default-devel:

Code:
linux-cgcw:/home/jobee/Downloads #   zypper install kernel-default-devel
Loading repository data...
Reading installed packages...
'kernel-default-devel' is already installed.
No update candidate for 'kernel-default-devel-4.4.36-8.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
linux-cgcw:/home/jobee/Downloads #
I checked /var/log/vbox-install.log and found this recommendation:

Code:
  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

  WARNING: Symbol version dump ./Module.symvers
           is missing; modules will have no dependencies and modversions.
I'm hesitant to mess with tweaking the kernel because of everything I have installed and working on this workstation.

I've installed all available updates. If I re-run /sbin/vboxconfig (I'm running all of this as root) these error messages start over again. Any ideas on what the problem is and how to fix it???

Thanks,

Joe B
 
Old 01-17-2017, 09:00 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,375

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by jbruyet View Post
My celebration was premature. I downloaded and tried to install the newest VirtuaBox and met once again with failure:

Code:
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  zypper install kernel-default-devel-4.8.11-1.1.x86_64
(The last command may fail if your system is not fully updated.)
  zypper install kernel-default-devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
I tried to install the kernel-default-devel-4.8.11-1.1.x86_64 but no joy:

Code:
linux-cgcw:/home/jobee/Downloads #   zypper install kernel-default-devel-4.8.11-1.1.x86_64
Loading repository data...
Reading installed packages...
Package 'kernel-default-devel-4.8.11-1.1.x86_64' not found.
Resolving package dependencies...

Nothing to do.
linux-cgcw:/home/jobee/Downloads #
Then I tried to install kernel-default-devel:

Code:
linux-cgcw:/home/jobee/Downloads #   zypper install kernel-default-devel
Loading repository data...
Reading installed packages...
'kernel-default-devel' is already installed.
No update candidate for 'kernel-default-devel-4.4.36-8.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
linux-cgcw:/home/jobee/Downloads #
I checked /var/log/vbox-install.log and found this recommendation:

Code:
  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

  WARNING: Symbol version dump ./Module.symvers
           is missing; modules will have no dependencies and modversions.
I'm hesitant to mess with tweaking the kernel because of everything I have installed and working on this workstation.

I've installed all available updates. If I re-run /sbin/vboxconfig (I'm running all of this as root) these error messages start over again. Any ideas on what the problem is and how to fix it???

Thanks,

Joe B
it looks like you need to install/update to a current autoconf
and get your header files installed for your current kernel.

as well as if you have not gotten rid of your old VBOX getting the kernel headers for what kernel it was last using needs to be installed to.

I think if you got your old VBox kernel headers installed you should be able to just update/upgrade it from there.

I'd if not just reinstalling system, find where the old directories and config files and all of that are kept and strip them out manually. last ditch resort .

trying to or installing over an old VBox may cause you more damage then you want to deal with.

(personally I'd be backing up my needed config files and reinstalling my Linux system and getting on with life, but that is me I just use mine to play on. Nothing that serious. you might not be that fortunate)

https://en.opensuse.org/VirtualBox

Last edited by BW-userx; 01-17-2017 at 09:13 PM.
 
Old 01-17-2017, 10:51 PM   #6
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
LOL, I have a 500 gig external hard drive connected right now and I'm copying my Home folder to it. Yeah, it was time to upgrade to a new SSD anyway. Thanks for the nudge to keep me going that direction.

Thanks,

Joe B
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how install virtualbox Vinicio Arcuri Slackware 12 11-11-2015 03:24 AM
virtualbox install shiapt Linux - Software 3 01-06-2013 01:48 PM
How to remove other linux install partitions wihtout messing up my main install? bmcgonag Linux - Desktop 2 08-18-2012 06:00 PM
[SOLVED] How can i install virtualbox Knightron Debian 25 09-28-2011 05:08 PM
Virtualbox Install Problem fbr Linux - Virtualization and Cloud 6 02-01-2010 10:48 PM

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

All times are GMT -5. The time now is 08:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration