LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't use, remove, or install Virtualbox (https://www.linuxquestions.org/questions/linux-software-2/cant-use-remove-or-install-virtualbox-4175595832/)

jbruyet 12-20-2016 10:03 PM

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

jbruyet 12-20-2016 10:06 PM

Oh, and kernel-source has already been installed too.

Thanks,

Joe B

jbruyet 01-17-2017 06:19 PM

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

jbruyet 01-17-2017 07:02 PM

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

BW-userx 01-17-2017 08:00 PM

Quote:

Originally Posted by jbruyet (Post 5656456)
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 :D I just use mine to play on. Nothing that serious. you might not be that fortunate)

https://en.opensuse.org/VirtualBox

jbruyet 01-17-2017 09:51 PM

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


All times are GMT -5. The time now is 05:26 PM.