我刚刚安装 virtualbox,当我尝试从终端启动该程序时,出现此错误
#virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-686.
You will not be able to start VMs until this problem is fixed.
我尝试运行这个命令
/etc/init.d/vboxdrv setup
但是这个错误来了
bash: /etc/init.d/vboxdrv: No such file or directory
进而
apt-get install -y linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.12-kali1-686-pae
E: Couldn't find any package by regex 'linux-headers-3.12-kali1-686-pae'
执行时系统中内核的版本uname -r
为
3.12-kali1-686-pae
但是在目录中/usr/src/
linux 标头的版本是
linux-headers-3.14-kali1-686-pae
我也尝试重新安装 virtualbox-dkms 但不起作用
我的问题是为什么内核的版本与linux header 不同?有什么解决方案可以帮助解决这个问题吗?