我运行此命令
aptitude purge~o
要删除所有能够显示我错误的Obsoletes文件,我想在更新系统之后一切正常但是当我重新启动系统并且我想加载虚拟机时我得到了这个错误
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.14-kali1-amd64) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
程序仍在运行,但我无法加载虚拟机,所以我运行该命令,然后输出。
sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
我要发布文件的一部分,因为vbox-install.log有很多行。
./install.sh: 343: ./install.sh: /etc/init.d/vboxautostart-service: not found
./install.sh: 343: ./install.sh: /etc/init.d/vboxballoonctrl-service: not found
./install.sh: 343: ./install.sh: /etc/init.d/vboxweb-service: not found
VirtualBox 4.3.10 r93012 installer, built 2014-03-26T19:18:38Z.
Testing system setup...
System setup appears correct.
Installing VirtualBox to /opt/VirtualBox
Output from the module build process (the Linux kernel build system) follows:
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.12-kali1-amd64/build modules
make -C /usr/src/linux-headers-3.12-kali1-amd64 \
KBUILD_SRC=/usr/src/linux-headers-3.12-kali1-common \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-headers-3.12-kali1-common/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-headers-3.12-kali1-common/scripts/Makefile.build obj=/tmp/vbox.0
最后一部分。
make -C /usr/src/linux-headers-3.12-kali1-amd64 \
KBUILD_SRC=/usr/src/linux-headers-3.12-kali1-common \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-headers-3.12-kali1-common/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-headers-3.12-kali1-common/scripts/Makefile.build obj=/tmp/vbox.0
gcc-4.7 -Wp,-MD,/tmp/vbox.0/linux/.VBoxPci-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-headers-3.12-kali1-common/include -Iinclude -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.12-kali1-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.12-kali1-common/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.12-kali1-amd64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxpci/ -I/tmp/vbox.0/vboxpci/include -I/tmp/vbox.0/vboxpci/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxPci_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxpci)" -c -o /tmp/vbox.0/linux/.tmp_VBoxPci-linux.o /tmp/vbox.0/linux/VBoxPci-linux.c
gcc-4.7 -Wp,-MD,/tmp/vbox.0/.VBoxPci.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-headers-3.12-kali1-common/include -Iinclude -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.12-kali1-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.12-kali1-common/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.12-kali1-amd64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxpci/ -I/tmp/vbox.0/vboxpci/include -I/tmp/vbox.0/vboxpci/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxPci)" -D"KBUILD_MODNAME=KBUILD_STR(vboxpci)" -c -o /tmp/vbox.0/.tmp_VBoxPci.o /tmp/vbox.0/VBoxPci.c
gcc-4.7 -Wp,-MD,/tmp/vbox.0/.SUPR0IdcClient.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-headers-3.12-kali1-common/include -Iinclude -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.12-kali1-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.12-kali1-common/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.12-kali1-amd64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxpci/ -I/tmp/vbox.0/vboxpci/include -I/tmp/vbox.0/vboxpci/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPR0IdcClient)" -D"KBUILD_MODNAME=KBUILD_STR(vboxpci)" -c -o /tmp/vbox.0/.tmp_SUPR0IdcClient.o /tmp/vbox.0/SUPR0IdcClient.c
gcc-4.7 -Wp,-MD,/tmp/vbox.0/.SUPR0IdcClientComponent.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-headers-3.12-kali1-common/include -Iinclude -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.12-kali1-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.12-kali1-common/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.12-kali1-amd64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxpci/ -I/tmp/vbox.0/vboxpci/include -I/tmp/vbox.0/vboxpci/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPR0IdcClientComponent)" -D"KBUILD_MODNAME=KBUILD_STR(vboxpci)" -c -o /tmp/vbox.0/.tmp_SUPR0IdcClientComponent.o /tmp/vbox.0/SUPR0IdcClientComponent.c
gcc-4.7 -Wp,-MD,/tmp/vbox.0/linux/.SUPR0IdcClient-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-headers-3.12-kali1-common/include -Iinclude -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.12-kali1-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.12-kali1-common/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.12-kali1-amd64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxpci/ -I/tmp/vbox.0/vboxpci/include -I/tmp/vbox.0/vboxpci/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPR0IdcClient_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxpci)" -c -o /tmp/vbox.0/linux/.tmp_SUPR0IdcClient-linux.o /tmp/vbox.0/linux/SUPR0IdcClient-linux.c
ld -m elf_x86_64 -r -o /tmp/vbox.0/vboxpci.o /tmp/vbox.0/linux/VBoxPci-linux.o /tmp/vbox.0/VBoxPci.o /tmp/vbox.0/SUPR0IdcClient.o /tmp/vbox.0/SUPR0IdcClientComponent.o /tmp/vbox.0/linux/SUPR0IdcClient-linux.o
(cat /dev/null; echo kernel//tmp/vbox.0/vboxpci.ko;) > /tmp/vbox.0/modules.order
make -f /usr/src/linux-headers-3.12-kali1-common/scripts/Makefile.modpost
find /tmp/vbox.0/.tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -m -i /usr/src/linux-headers-3.12-kali1-amd64/Module.symvers -I /tmp/vbox.0/Module.symvers -o /tmp/vbox.0/Module.symvers -S -w -s -T -
gcc-4.7 -Wp,-MD,/tmp/vbox.0/.vboxpci.mod.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-headers-3.12-kali1-common/include -Iinclude -I/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.12-kali1-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.12-kali1-common/include/linux/kconfig.h -I/tmp/vbox.0 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-mmx -mno-sse -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/3.12-kali1-amd64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxpci/ -I/tmp/vbox.0/vboxpci/include -I/tmp/vbox.0/vboxpci/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxpci.mod)" -D"KBUILD_MODNAME=KBUILD_STR(vboxpci)" -DMODULE -c -o /tmp/vbox.0/vboxpci.mod.o /tmp/vbox.0/vboxpci.mod.c
ld -r -m elf_x86_64 -T /usr/src/linux-headers-3.12-kali1-common/scripts/module-common.lds --build-id -o /tmp/vbox.0/vboxpci.ko /tmp/vbox.0/vboxpci.o /tmp/vbox.0/vboxpci.mod.o
Starting VirtualBox kernel modules ...done.
End of the output from the Linux kernel build system.
Installation successful
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
非常感谢您的任何帮助或评论。
答案 0 :(得分:15)
用于Ubuntu 15.10和virtualbox 5. +使用:
sudo / sbin / rcvboxdrv setup
THX: http://www.webupd8.org/2015/10/workaround-for-sbinvboxconfig-not.html
答案 1 :(得分:7)
我遇到了问题:
警告:未加载vboxdrv内核模块。要么没有模块 可用于当前内核(4.6.3-300.fc24.x86_64)或它没有 加载。请重新编译内核模块并通过
进行安装 sudo /sbin/rcvboxdrv setup
You will not be able to start VMs until this problem is fixed.
5.0.24_RPMFusionr108355
我做完
sudo modprobe vboxdrv
然后就可以了。
答案 2 :(得分:4)
对我来说,我对系统进行了更新,然后再次运行sudo /etc/init.d/vboxdrv setup
。
答案 3 :(得分:4)
在Arch Linux上
sudo pacman -S virtualbox-host-modules-arch
然后
sudo modprobe vboxdrv
答案 4 :(得分:2)
Arch Linux:
sudo pacman -S virtualbox-host-modules-arch
然后你必须重新启动。那为我修好了。
尝试重新启动也适用于其他发行版。
答案 5 :(得分:1)
选择正确的版本。对我来说是3.13-kali1
我认为你错过了一些东西。 尝试安装
它对我有用。
最诚挚的问候。
答案 6 :(得分:1)
执行命令
sudo /usr/lib/virtualbox/vboxdrv.sh setup
应该解决这个问题。
答案 7 :(得分:1)
仅禁用BIOS的安全启动,对我有用
答案 8 :(得分:0)
在Debian上,试试:
sudo apt-get install -f
当解决了所有缺失的依赖项后,请尝试再次启动VirtualBox。
答案 9 :(得分:0)
本指南适用于我:https://gorka.eguileor.com/vbox-vmware-in-secureboot-linux-2016-update/
然而,我正在使用Ubuntu 16.04(我不确定指南正在使用哪个发行版..)并且我将这些步骤修改为:
for f in $(dirname $(modinfo -n vboxdrv))/*.ko; do echo "Signing $f"; sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $f; done
成为:
for f in $(dirname $(modinfo -n vboxdrv))/*.ko; do echo "Signing $f"; sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $f; done
mokutil --import MOK.der
变为:
sudo mokutil --import MOK.der
否则它让它为我工作。
答案 10 :(得分:0)
此命令对我有用
sudo /etc/init.d/vboxdrv setup
接下来我收到了以下错误
VirtualBox VM是使用与用户不匹配的用户创建的 当前用户正在运行Vagrant。 VirtualBox需要相同的用户 用于管理已创建的VM。请重新运行Vagrant 那个用户。这不是一个流浪者问题。 用于创建VM的UID为:0 你的UID是:1000
通过使用root访问权限运行vagrant up命令解决了这个问题。
这应解决VirtualBox版本的问题:5.1
答案 11 :(得分:0)
sudo modprobe vboxdrv
对我有用,就在我从BIOS菜单禁用安全启动之后。
答案 12 :(得分:0)
运行以下命令进行修复。
第一个:
uname -r
这将为您提供内核版本的示例:Linux内核4.16.03
取第三个数字,然后运行第二个命令,将416替换为您的值:
此命令用于manjaro linux,但您可以尝试使用apt get安装软件包:
sudo pacman -S linux416-virtualbox-host-modules
初始化模块的最后一条命令:
sudo modprobe vboxdrv
答案 13 :(得分:0)
我没有尝试修复从Oracle下载的.deb,而是这样做了:
sudo aptitude install virtualbox
成功了!好吧,我必须先删除破损的包裹。 (Ubuntu 18.04 LTS)
答案 14 :(得分:0)
(https://pkgs.org/download/virtualbox-dkms) 要么 (http://ftp.debian.org/debian/pool/contrib/v/virtualbox/)
在下载完i.g virtualbox-dkms.deb软件包后,使用以下命令进行安装
$ sudo dpkg -i virtualbox-dkms.deb
按照此URL(http://www.bojankomazec.com/2019/04/how-to-install-virtualbox-on-ubuntu-1804.html)中的步骤进行操作
答案 15 :(得分:0)
对于 Arch Linux:
第一步:
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')
下一步:
sudo modprobe vboxdrv