如何处理错误消息Please install the Linux kernel header files

Please install the Linux kernel "header" files matching the current kernel

当我启动minilkube时遇到如下错误消息:

Minikube setup with driver virtualbox

Starting local Kubernetes v1.10.0 cluster...

Starting VM...

E1010 03:57:24.565157 9896 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.

: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (3.10.0-862.11.6.el7.x86_64) or it failed to load. Please recompile the kernel module and install it by sudo /sbin/vboxconfig You will not be able to start VMs until this problem is fixed. 5.2.18r124319". Please upgrade at https://www.virtualbox.org.

Retrying.

E1010 03:57:24.566250 9896 start.go:180] Error starting host: Error creating host: Error executing step: Running precreate checks.

: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (3.10.0-862.11.6.el7.x86_64) or it failed to load. Please recompile the kernel module and install it by sudo /sbin/vboxconfig You will not be able to start VMs until this problem is fixed. 5.2.18r124319". Please upgrade at https://www.virtualbox.org

执行命令行:

rcvboxdrv setup

vboxdrv.sh: Stopping VirtualBox services.

vboxdrv.sh: Starting VirtualBox services.

vboxdrv.sh: Building VirtualBox kernel modules.

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.

The distribution packages containing the headers are probably:

kernel-devel kernel-devel-3.10.0-862.11.6.el7.x86_64

所以解决这个错误的关键就是:

Please install the Linux kernel "header" files matching the current kernel

执行命令行:yum install kernel-devel

Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Resolving Dependencies

--> Running transaction check

---> Package kernel-devel.x86_64 0:3.10.0-862.14.4.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================

Package Arch Version Repository Size

========================================================================================================

Installing:

kernel-devel x86_64 3.10.0-862.14.4.el7 rhel_7_server_rpms 16 M

Transaction Summary

========================================================================================================

Install 1 Package

Total download size: 16 M

Installed size: 37 M

Is this ok [y/d/N]:

选择Y之后,成功安装。

Install 1 Package

Total download size: 16 M

Installed size: 37 M

Is this ok [y/d/N]: y

Downloading packages:

Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

kernel-devel-3.10.0-862.14.4.el7.x86_64.rpm | 16 MB 00:00:18

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : kernel-devel-3.10.0-862.14.4.el7.x86_64 1/1

Verifying : kernel-devel-3.10.0-862.14.4.el7.x86_64 1/1

Installed:

kernel-devel.x86_64 0:3.10.0-862.14.4.el7

Complete!

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

原文地址:https://www.cnblogs.com/sap-jerry/p/9821703.html

时间: 2024-12-09 23:52:04

如何处理错误消息Please install the Linux kernel header files的相关文章

Enter the path to the kernel header files for the 3.18.0-kali1-686-pae kerne vmware tool

安装VMWare Tools出现提示:Enter the path to the kernel header files for the 3.18.0-kali1-686-pae kerne? 2015年02月15日 渗透测试 评论 1 条 阅读 4,421 次 由于缺少头文件导致的,只要安装linux header即可: 1.先更新软件源: 先备份软件源sources.list文件,然后修改sources.list文件,在终端输入: leafpad /etc/apt/sources.list

关于VMware的“Enter the path to the kernel header files...?”报错的解决方法

这是由于在安装Vmware tools时找不到kernel header files,因此只要安装相关依赖包即可 sudo apt-get update sudo apt-get install build-essential sudo apt-get install libx11-6 libx11-dev libxtst6 xinetd sudo apt-get install linux-headers-`uname -r` build-essential

kali中安装vmtools遇到:Enter the path to the kernel header files for the 3.18.0-kali1-686-pae kerne?

在/etc/apt/sources.list中添加: deb http://mirrors.ustc.edu.cn/kali kali-current main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-current main non-free contrib deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contri

如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

我在启动minikube时,遇到如下错误消息: Starting local Kubernetes v1.10.0 cluster... Starting VM... E1010 03:27:37.920050 4827 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks. : We support Virtualbox starting wi

C header files matching your running kernel were not found. Refer to your distribution's documentation for installation instructions

[email protected]:~# apt-get install linux-headers-$(uname -r) [email protected]:~# apt-get install build-essential linux-kernel-headers C header files matching your running kernel were not found. Refer to your distribution's documentation for instal

Install a new Linux Kernel (3.10.56) in Guest OS (Dom U)

These days I want to install a new Linux kernel in Guest Operating System. The original version of Guest OS is 2.6.32, but I need a kernel version 3.10. I have tried several ways and following steps is just one of methods which can work: 1. We should

Linux find 去除错误消息

当Linux 进行查找时,对某些目录的访问可能没有权限而无法进行访问,打印出很多错误消息 1.root目录文件内容 -bash-3.2$ ls anaconda-ks.cfg  bea  Desktop  lib  wls1036_generic.jar 2.查找.log结尾的文件, -bash-3.2$ find . -name "*.log" find: ./.gconfd: ?ƒé™???¤Ÿ find: ./.gnome2: ?ƒé™???¤Ÿ find: ./.g

Install Linux Kernel - AT91SAM9260EK

二.AT91SAM9260EK 2.1下载 介绍页: http://www.at91.com/linux4sam/bin/view/Linux4SAM/LegacyLinuxKernel 下载页: a)ftp://www.at91.com/pub/linux/2.6.30-at91/ b)http://maxim.org.za/at91_26.html (1)Kernel V2.6.30 (2) maintainer – patch V2.6.30(23/06/2009) (3) experim

如何处理SAP云平台错误消息 there is no compute unit quota for subaccount

当我试图部署一个应用到SAP云平台的neo环境时: 指定Compute Unit Size为Lite: 点击Deploy按钮,遇到如下错误消息:there is no compute unit quota for subaccount: 解决方案 使用命令行neo set-quota --account wc4e460ce --user i042416 --host int.sap.hana.ondemand.com --amount lite:1 给subaccount分配一个计算单元: 分配