专栏首页Jerry的SAP技术分享如何处理错误消息Please install the Linux kernel header files

如何处理错误消息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!

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

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

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

    Jerry Wang
  • Marketing Cloud的contact主数据的odata调用方式

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

    Jerry Wang
  • 用代码读取指定SAP CRM One Order文档产生的application log-应用日志

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

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

    Jerry Wang
  • DAY69:阅读API Errors and Launch Failures

    我们正带领大家开始阅读英文的《CUDA C Programming Guide》,今天是第69天,我们正在讲解CUDA 动态并行,希望在接下来的31天里,您可以...

    GPUS Lady
  • SVM 的核函数选择和调参

    杨熹
  • 升级CentOS 7.4内核版本的三种方案

    在实验环境下,已安装了最新的CentOS 7.4操作系统,现在需要升级内核版本。

    拓荒者
  • Mac CentOS-7 命令行安装VMware Tools

    实际上是yum 安装的最新版kernel-devel 和本机kernel版本不一致而已。 升级一下kernel:

    悠扬前奏
  • 反调试检测之一TracerPid

    当我们使用Ptrace方式跟踪一个进程时,目标进程会记录自己被谁跟踪,可以查看/proc/pid/status看到这个信息,下图展示的是使用ida进行调试的情况...

    用户2930595
  • Gartner战略技术趋势分析:需要为智慧世界提供强大的边缘和网络

    上周,Gartner发布了2019年的十大战略技术趋势,并不令人感到意外的是,在这个名单中边缘和区块链技术从去年开始持续到了2019年。

    SDNLAB

扫码关注云+社区

领取腾讯云代金券