Closed JonWallevik closed 4 years ago
...2 days later I got the following: The following packages have been kept back: virtualbox virtualbox-dkms virtualbox-qt So I (unfortunately) did "sudo apt-get install virtualbox virtualbox-dkms virtualbox-qt" ...thereafter I got broken dependency and could not install new version of the extension pack
To solve this, I uninstalled everything "virtualbox" related: sudo apt purge virtualbox virtualbox-dkms virtualbox-qt + the extension pack including "sudo apt autoremove" afterwards, with sudo apt update in the end.
Thereafter, went to virtualbox.org and installed virtualbox 6.1.16 + extension pack 6.1.16 and now everything is OK.
Distribution (run
cat /etc/os-release
): NAME="Pop!_OS" VERSION="20.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal LOGO=distributor-logo-pop-osRelated Application and/or Package Version (run
apt policy $PACKAGE NAME
): VirtualBox Graphical User Interface Version 6.1.10_Ubuntu r138449Issue/Bug Description: During kernel upgrade "by standard sudo apt update & upgrade", I get ...
Building module: cleaning build area... make -j6 KERNELRELEASE=5.8.0-7625-generic -C /lib/modules/5.8.0-7625-generic/build M=/var/lib/dkms/virtualbox/6.1.10/build...(bad exit status: 2) ERROR (dkms apport): kernel package linux-headers-5.8.0-7625-generic is not supported Error! Bad return status for module build on kernel: 5.8.0-7625-generic (x86_64) Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information. ...done.
and VirtualBox wont work
The /var/lib/dkms/virtualbox/6.1.10/build/make.log gives... DKMS make.log for virtualbox-6.1.10 for kernel 5.8.0-7625-generic (x86_64) Tue 27 Oct 2020 08:50:38 AM GMT make: Entering directory '/usr/src/linux-headers-5.8.0-7625-generic' CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrv.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrvGip.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrvSem.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrvTracer.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPLibAll.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/alloc-r0drv.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/initterm-r0drv.o CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/memobj-r0drv.o In file included from ./include/asm-generic/percpu.h:7, from ./arch/x86/include/asm/percpu.h:556, from ./arch/x86/include/asm/preempt.h:6, from ./include/linux/preempt.h:78, from ./include/linux/spinlock.h:51, from /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/../SUPDrvInternal.h:79, from /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:32: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c: In function ‘supdrvOSChangeCR4’: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:38: error: ‘cpu_tlbstate’ undeclared (first use in this function); did you mean ‘cpuhp_state’? 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4); | ^
~~~ ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘pcpu_size_call_return’ 318 | typeof(variable) pscr_ret; \ | ^~~~ /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’ 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4); | ^~~~~ /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:38: note: each undeclared identifier is reported only once for each function it appears in 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4); | ^~~~ ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘pcpu_size_call_return’ 318 | typeof(variable) pscr_ret; \ | ^~~~ /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’ 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4); | ^~~~~ CC [M] /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/mpnotification-r0drv.o make[2]: [scripts/Makefile.build:290: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [scripts/Makefile.build:519: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv] Error 2 make: [Makefile:1780: /var/lib/dkms/virtualbox/6.1.10/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.8.0-7625-generic'Steps to reproduce (if you know):
Expected behavior: starting virtualbox WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-generic.
Other Notes: