gpt4 book ai didi

linux - make : *** No targets specified and no makefile found. 尝试执行 dpkg-reconfigure virtualbox-dkms 时

转载 作者:太空宇宙 更新时间:2023-11-04 11:21:50 34 4
gpt4 key购买 nike

我正在尝试让 VirtualBox 在内核 3.2.0-49-generic 的 ElementaryOS 上工作。我一直收到此错误:

WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-dkms package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.
No protocol specified
No protocol specified
Failed to open the X11 display!

我已经搜索并发现正在运行:

sudo dpkg-reconfigure virtualbox-dkms
sudo dpkg-reconfigure virtualbox

解决问题。

但是当我执行 sudo dpkg-reconfigure virtualbox-dkms 时。我收到此错误:

------------------------------
Deleting module version: 4.1.12
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-4.1.12 DKMS files...
Building only for 3.2.0-49-generic
Building initial module for 3.2.0-49-generic
ERROR (dkms apport): kernel package linux-headers-3.2.0-49-generic is not supported
Error! Bad return status for module build on kernel: 3.2.0-49-generic (x86_64)
Consult /var/lib/dkms/virtualbox/4.1.12/build/make.log for more information.

现在我检查了 make.log 文件我发现了这个错误:

DKMS make.log for virtualbox-4.1.12 for kernel 3.2.0-49-generic (x86_64)
Thu Jul 18 05:57:58 EET 2013
make: Entering directory `/lib/modules/3.2.0-49-generic/build'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory `/lib/modules/3.2.0-49-generic/build

我不知道应该从这里做什么。任何帮助将不胜感激。

最佳答案

如果你在 /lib/modules/3.2.0-49-generic/ 文件夹中执行 ls -l 你会发现构建是一个 symbolic link/usr/src/3.2.0-49-generic 目录

例如:

sagar.sakre@sagar-vm /lib/modules/3.2.0-23-generic $ ls -l
total 4412

lrwxrwxrwx 1 root root 39 Aug 6 2012 build -> /usr/src/linux-headers-3.2.0-23-generic

因此请确保您在 /usr/src/ 目录中拥有构建的源代码。如果问题仍然存在升级内核。

关于linux - make : *** No targets specified and no makefile found. 尝试执行 dpkg-reconfigure virtualbox-dkms 时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17714367/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com