Virtualbox kernel driver problem on ubuntu 20.04 (updated from 16.04)
i installed virtualbox (Version 6.1.22 r144080 (Qt5.12.8)) on ubuntu 20.04 focal. after installed virtual box i got this error on lunching VM’s.
Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing '/sbin/vboxconfig' as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system’s documentation for more information. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) — The support driver is not installed. On linux, open returned ENOENT. i’m using this code for fix the problem:
vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are probably: linux-headers-generic linux-headers-4.4.0-104-generic This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are probably: linux-headers-generic linux-headers-4.4.0-104-generic There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig `as root. If your system is using EFI Secure Boot you may need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
i have two os. windows10 and ubuntu 20.04 with grub. i’m checking bios option and secure bot is disabled. also checking windows and no problem with boot option in windows. and not installed with UEFI style. i’m trying to install
linux-headers-generic linux-headers-4.4.0-104-generic
E: Package 'linux-headers-4.4.0-104-generic' has no installation candidate
ii binutils-x86-64-linux-gnu 2.34-6ubuntu1.1 amd64 GNU binary utilities, for x86-64-linux-gnu target ii linux-generic 5.4.0.74.77 amd64 Complete Generic Linux kernel and headers ii linux-headers-5.4.0-73 5.4.0-73.82 all Header files related to Linux kernel version 5.4.0 ii linux-headers-5.4.0-73-generic 5.4.0-73.82 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP ii linux-headers-5.4.0-74 5.4.0-74.83 all Header files related to Linux kernel version 5.4.0 ii linux-headers-5.4.0-74-generic 5.4.0-74.83 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP ii linux-headers-5.4.0-74-lowlatency 5.4.0-74.83 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP ii linux-headers-generic 5.4.0.74.77 amd64 Generic Linux kernel headers ii linux-headers-lowlatency 5.4.0.74.77 amd64 lowlatency Linux kernel headers rc linux-image-4.15.0-143-generic 4.15.0-143.147 amd64 Signed kernel image generic rc linux-image-4.4.0-101-generic 4.4.0-101.124 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-103-generic 4.4.0-103.126 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii linux-image-4.4.0-104-generic 4.4.0-104.127 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-109-generic 4.4.0-109.132 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-112-generic 4.4.0-112.135 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-116-generic 4.4.0-116.140 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-119-generic 4.4.0-119.143 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-121-generic 4.4.0-121.145 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-127-generic 4.4.0-127.153 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-128-generic 4.4.0-128.154 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-130-generic 4.4.0-130.156 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-133-generic 4.4.0-133.159 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-138-generic 4.4.0-138.164 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-157-generic 4.4.0-157.185 amd64 Signed kernel image generic rc linux-image-4.4.0-169-generic 4.4.0-169.198 amd64 Signed kernel image generic rc linux-image-4.4.0-174-generic 4.4.0-174.204 amd64 Signed kernel image generic rc linux-image-4.4.0-176-generic 4.4.0-176.206 amd64 Signed kernel image generic rc linux-image-4.4.0-179-generic 4.4.0-179.209 amd64 Signed kernel image generic rc linux-image-4.4.0-21-generic 4.4.0-21.37 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-210-generic 4.4.0-210.242 amd64 Signed kernel image generic rc linux-image-4.4.0-97-generic 4.4.0-97.120 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP rc linux-image-4.4.0-98-generic 4.4.0-98.121 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii linux-image-5.4.0-73-generic 5.4.0-73.82 amd64 Signed kernel image generic ii linux-image-5.4.0-74-generic 5.4.0-74.83 amd64 Signed kernel image generic rc linux-image-extra-4.4.0-101-generic 4.4.0-101.124 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-103-generic 4.4.0-103.126 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii linux-image-extra-4.4.0-104-generic 4.4.0-104.127 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-109-generic 4.4.0-109.132 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-112-generic 4.4.0-112.135 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-116-generic 4.4.0-116.140 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-119-generic 4.4.0-119.143 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-121-generic 4.4.0-121.145 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-127-generic 4.4.0-127.153 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-128-generic 4.4.0-128.154 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-130-generic 4.4.0-130.156 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-133-generic 4.4.0-133.159 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-134-generic 4.4.0-134.160 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-137-generic 4.4.0-137.163 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-138-generic 4.4.0-138.164 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-21-generic 4.4.0-21.37 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-97-generic 4.4.0-97.120 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-image-extra-4.4.0-98-generic 4.4.0-98.121 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii linux-image-generic 5.4.0.74.77 amd64 Generic Linux kernel image rc linux-modules-4.15.0-143-generic 4.15.0-143.147 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP rc linux-modules-4.4.0-157-generic 4.4.0-157.185 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-4.4.0-169-generic 4.4.0-169.198 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-4.4.0-174-generic 4.4.0-174.204 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-4.4.0-176-generic 4.4.0-176.206 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-4.4.0-179-generic 4.4.0-179.209 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-4.4.0-210-generic 4.4.0-210.242 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii linux-modules-5.4.0-73-generic 5.4.0-73.82 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP ii linux-modules-5.4.0-74-generic 5.4.0-74.83 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP rc linux-modules-extra-4.15.0-143-generic 4.15.0-143.147 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP rc linux-modules-extra-4.4.0-157-generic 4.4.0-157.185 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-extra-4.4.0-169-generic 4.4.0-169.198 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-extra-4.4.0-174-generic 4.4.0-174.204 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-extra-4.4.0-176-generic 4.4.0-176.206 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-extra-4.4.0-179-generic 4.4.0-179.209 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP rc linux-modules-extra-4.4.0-210-generic 4.4.0-210.242 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii linux-modules-extra-5.4.0-73-generic 5.4.0-73.82 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP ii linux-modules-extra-5.4.0-74-generic 5.4.0-74.83 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP