问题描述
我刚刚从虚拟盒子中安装了该软件,我从ubuntu官方网站上下载了ISO,这是最新的LTS。
我试图使用“插入来宾添加CD映像”来安装来宾添加。结果:
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions
kernel modules.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find
out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced
until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
Press Return to close this window...
在/var/log/vboxadd-setup.log中:
错误:
Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
完整版本的日志文件可以在这里找到[?]
最佳答案
好的,这是一个已知问题。与其使用virtualbox提供的映像,不如直接通过sudo apt-get install virtualbox-guest-dkms
下载它,如果需要标题,则下载此sudo apt-get install linux-headers-virtual
而不是经典的sudo apt-get install linux-headers-$(uname -r)
。
干杯
编辑:将@ _1Abdelouahab指向的()
更改为{}
。
次佳答案
打开终端并运行sudo reboot
。
然后尝试通过设备再次安装->插入来宾添加CD映像。
为我工作。
第三种答案
在Ubuntu 16.04中,我必须重新启动操作系统。在安装virtualbox-guest-additions之前,为了加载正确的内核