我正在尝试执行这个命令:
$ sudo apt-get install build-essential linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-3.11.0-15-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-3.11.0-15-generic' has no installation candidate
===
如果我运行:
$uname -asr
3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
我的 Linux 安装似乎存在差异。因此我无法运行 virtualbox 和 vmware。
答案1
最后,我通过下载并手动安装uname -r
我所给的内核版本的头文件解决了这个问题。我用这些说明来自 ubuntuhandbook.org。
然后我重新启动,选择高级选项以便更改为正确的内核(从低延迟到通用)。
最后我能够正确安装和使用虚拟盒。