Page 1 of 2

Error While Installing Windows 10

Posted: 12. Mar 2017, 00:59
by Shaggy123
Today I was trying to install Windows 10 via dvd on my Linux Ubuntu 16.04 computer and I get an error as shown in the attached screen shot. After doing some research on the error I found a solution and tried that also and got another error also on an attached screen shot. Can someone please tell me how to resolve this? Oh and I forgot to mention my kernel is 4.10..1

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 01:01
by socratis
Moving to "Linux Hosts" from "Linux Guests".

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 01:35
by Shaggy123
Sorry and thanks!

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 02:26
by Perryg
What version of VirtualBox did you install and where did you get it from?

Also post the /var/log/vbox-install.log ( as an attachment )

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 03:19
by Shaggy123
It's version 5.0.32 and all I did was run a sudo apt-get install virtualbox. There is no vbox-install.log in /var/log. It goes from ufw.lo.1 to wtmp!

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 03:29
by Perryg
So that would be the Ubuntu fork. You will need to ask them what to do or remove theirs and install the official one from VirtualBox.org I would also get the newest one available 5.1.16

https://www.virtualbox.org/wiki/Downloads

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 03:51
by Shaggy123
I downloaded the deb and double clicked on it and it opened up Ubuntu Software. I clicked Install and it shortly ran through the process and stopped. The button still said Install? I don't know what could be wrong with it and no, it's not installed. Oh yeah, I just removed the old one from Ubuntu Software too.

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 04:27
by Perryg
Their software center package is junk. Use dpkg or install gdebi.

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 04:48
by Shaggy123
Well I scrolled down below the yum install and saw the apt-get install. So I tried that and now I get a new error. I've attached the screen shot. I ran the /sbin/vboxconfig comand I see there is a problem with mysql-server-5.7 and mysql and I've been having this problem all day. So this have something to do with this?

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 12:51
by Perryg
There is no yum in Ubuntu. Typo perhaps?

Open a terminal and run sudo dpkg -i <full name of the installable including the extension> from the folder that actually has the installable. Post any errors.
Using the official version you should also have a file called /var/log/vbox-install.log which you can post here ( as an attachment ).

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 13:24
by Martin
I have seen similar problmes with other distributions when selinux and/or secure boot was enabled.

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 14:49
by Shaggy123
Here is the log. Also, I might have to do a total system reinstall unless you can tell me how to go back to my old kernel. All these problems started when I updated my kernel on Ubuntu to the latest!

Code: Select all

Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 15:00
by Perryg
Re-installing the OS should not be necessary. Just do the following in a terminal:

Code: Select all

sudo apt-get install dkms linux-headers-$(uname -r)
Then run sudo /sbin/vboxconfig

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 20:12
by Shaggy123
I'm glad I don't have to reinstall my system, but how do I get the Linux headers?

Re: Error While Installing Windows 10

Posted: 12. Mar 2017, 20:23
by Perryg
Uh what made you upgrade to 4.10.1 kernel? Evidently that is not the version that your OS version supports yet.
So to get back to the previous kernel, hold the shift key down while booting and select the previous kernel to boot with, then remove the 4.10.1 kernel and wait until you can get the matching headers

You might also be able to get the headers from http://kernel.ubuntu.com/~kernel-ppa/mainline/ but this is going to be well beyond the scope of this forum and requires some advanced skills.