zoukankan      html  css  js  c++  java
  • virtualbox 安装centos增强功能 kernel headers not found for target kernel

    1、问题

    2、查看linux版本

    [root@localhost test]# cat /etc/redhat-release
    CentOS Linux release 7.9.2009 (Core)

    3、解决方法

    step1:

    [root@localhost test]# yum update kernel
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
     * base: mirrors.bfsu.edu.cn
     * extras: mirrors.bfsu.edu.cn
     * updates: mirrors.bfsu.edu.cn
    Resolving Dependencies
    --> Running transaction check
    ---> Package kernel.x86_64 0:3.10.0-1160.49.1.el7 will be installed
    --> Finished Dependency Resolution
    …………
    …………
    Transaction test succeeded
    Running transaction
      Installing : kernel-3.10.0-1160.49.1.el7.x86_64                                                                                1/1
      Verifying  : kernel-3.10.0-1160.49.1.el7.x86_64                                                                                1/1
    
    Installed:
      kernel.x86_64 0:3.10.0-1160.49.1.el7
    
    Complete!

    step2:

    [root@localhost test]# yum install kernel-headers perl kernel-devel gcc make -y
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
     * base: mirrors.bfsu.edu.cn
     * extras: mirrors.bfsu.edu.cn
     * updates: mirrors.bfsu.edu.cn
    Package 1:make-3.82-24.el7.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package gcc.x86_64 0:4.8.5-44.el7 will be installed
    …………
    …………
    Installed:
      gcc.x86_64 0:4.8.5-44.el7                                kernel-devel.x86_64 0:3.10.0-1160.49.1.el7
    
    Dependency Installed:
      cpp.x86_64 0:4.8.5-44.el7
    
    Updated:
      kernel-headers.x86_64 0:3.10.0-1160.49.1.el7
    
    Complete!

    step3:

    [root@localhost home]# reboot

    4、再次安装即可

    参考:https://www.cnblogs.com/graybird/p/12243187.html

  • 相关阅读:
    Django URL
    django初识
    django 相关配置(pycharm)
    mysql数据库语言分类
    css常用
    Django—BBS注册页面
    Django—Auth认证模块
    Django—中间件
    Django—form组件,cookie和session
    Django—AJAX
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/15798786.html
Copyright © 2011-2022 走看看