linux - 无法下载4.14.11-300.fc27.x86_64内核

标签 linux virtualbox fedora

我尝试使用 VirtualBox,但收到错误

The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.14.11-300.fc27.x86_64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

运行建议的命令时,我得到:

This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

但是,当我运行 sudo yum install kernel-devel gcc 时,它安装版本 4.15.3-300.fc27 ,与我实际的内核版本不同,即 4.14.11-300.fc27.x86_64 .

此外,运行 sudo yum install "kernel-devel-uname-r == $(uname -r)" 时,我明白

No match for argument: kernel-devel-uname-r == 4.14.11-300.fc27.x86_64
Error: Unable to find a match

我应该怎样做才能让 VirtualBox 运行?

最佳答案

However, when I run sudo yum install kernel-devel gcc, it installs the version 4.15.3-300.fc27, which differs from my actual kernel version, that is 4.14.11-300.fc27.x86_64.

这是因为,在撰写本文时,4.15.3 是 Fedora 27 的当前内核更新。您可以下载旧内核的 devel 软件包,但最好的选择是更新内核(我建议对所有内容进行常规 dnf 更新),然后然后安装内核 devel 软件包,最后重新启动到该内核并完成 VirtualBox 安装。

关于linux - 无法下载4.14.11-300.fc27.x86_64内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48912435/

相关文章:

c++ - 在 ubuntu 机器上构建 htdig

python - Vagrant 检测到您安装了不受支持的 VirtualBox 版本

linux - 需要检查我的机器上一直以来最常用的 Linux 应用程序

linux - 如何在 Docker 容器中进行端口转发?

php - Symfony2 添加新路由后返回空白页

linux - 在非执行页面上触发执行错误

c - 'pkg-config --exists' 到底是做什么的?

android - Windows 10 中的 Genymotion 问题

virtualbox - 更改/vagrant 的权限

Linux - AlpsPS/2 ALPS GlidePoint 触摸板在 HP zBook Studio G4 上被视为鼠标