![内核安装后,vboxdrv 不存在。](https://linux22.com/image/893870/%E5%86%85%E6%A0%B8%E5%AE%89%E8%A3%85%E5%90%8E%EF%BC%8Cvboxdrv%20%E4%B8%8D%E5%AD%98%E5%9C%A8%E3%80%82.png)
我已经安装了kernel 4.12.0-041200rc4-generic
,从那时起,当我打开 Virtual Box 时,我得到了这个
root@machine:~# 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.
You will not be able to start VMs until this problem is fixed.
尝试修复它并得到以下结果:
root@machine:~# aptitude install linux-headers-generic virtualbox-dkms
linux-headers-generic is already installed at the requested version (4.4.0.78.84)
virtualbox-dkms is already installed at the requested version (5.0.40-dfsg-0ubuntu1.16.04.1)
linux-headers-generic is already installed at the requested version (4.4.0.78.84)
virtualbox-dkms is already installed at the requested version (5.0.40-dfsg-0ubuntu1.16.04.1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
我想我需要安装 linux-headers-generic 版本 4.12
root@machine:~# aptitude install linux-headers-$(uname -r)
linux-headers-4.12.0-041200rc4-generic is already installed at the requested version (4.12.0-041200rc4.201706042031)
linux-headers-4.12.0-041200rc4-generic is already installed at the requested version (4.12.0-041200rc4.201706042031)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.