Score:0

Unable to locate package linux-headers-5.10.60.1-microsoft-standard-WSL2

us flag
Kim

I am trying to start the minikube using virtualbox driver but getting this error:

The vboxdrv kernel module is not loaded. Either there is no module\n available for the current kernel (5.10.60.1-microsoft-standard-WSL2) or it failed to\n load. Please recompile the kernel module and install it by\n\n sudo /sbin/vboxconfig\n\n you will not be able to start VMs until this problem is fixed.\n6.1.32r149290". Please upgrade at https://www.virtualbox.org

and when I tried to install linux header by running sudo apt install linux-headers-$(uname -r)
got this error

E: Unable to locate package linux-headers-5.10.60.1-microsoft-standard-WSL2 

E: Couldn't find any package by glob 'linux-headers-5.10.60.1-microsoft-standard-WSL2' 

E: Couldn't find any package by regex 'linux-headers-5.10.60.1-microsoft-standard-WSL2'

The following steps I have done:

Install Ubuntu 18.04 and enable WSL2

Install VirtualBox 6.1 on Windows 10 Home edition

(Checked virtualization have already enabled in Task Manager-->Performance-->CPU)

I restated the system and tried to open Virtualbox from Ubuntu by running virtualbox command and got this Warning msg

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.10.60.1-microsoft-standard-WSL2) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
After that tried to start minikube after setting virtualbox driver as default

Expected: minikube should start along with virtualbox

Actual:Not able to start VM
Nmath avatar
ng flag
There's a lot that's confusing here. Virtualbox ≠ WSL. Which are you actually using? If you install Ubuntu in VirtualBox and you also install Ubuntu in WSL, they are not related to each other in any way except that they share the same host OS. I'm concerned that you're trying to install virtualbox on Ubuntu, on WSL? If that is true, what is your reasoning behind this? What is the actual task that you are trying to accomplish? AFAIK there are not any supported Ubuntu versions that use kernel 5.10. So why are you trying to install this kernel?
us flag
Kim
Hi @Nmath thanks for replying.
us flag
Kim
@Nmath I am trying to start minikube cluster using VBox driver (already installed minikube, kubectl) and and using Ubuntu 18.04 as my Linux distro CLI (enabled WSL because I can't run Ubuntu on Windows 10 Home without enabling this) So when I am trying to start the minikube cluster getting error and not able to start my cluster.
Nmath avatar
ng flag
I don't understand why you've installed both virtualbox and WSL. Are you following a guide? If so, link to it. You've also not explained why you are trying to use an unsupported kernel.
us flag
Kim
Thanks @Nmath for replying, yes you are right I dont need WSL when I am working with virtualbox. I just unchecked the Virtual Machine Platform and Hypervisor Platform in Control Panel and now it's working. Thank you so much
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.