精华内容
下载资源
问答
  • package, but it still fails to get the kernel headers. Here are some diagnostics cmd output: ~~~ <h1>rpm -qa | grep razer <p>openrazer-meta-2.9.0-1.1.noarch python3-openrazer-2.9.0-1.1.noarch ...
  • ERROR:Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured on ...
    ERROR:Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured on Red Hat Linux system, for exzmple ,be sure you have the 'kernel-source' or 'kernel-devel' RPM installed .If you know the correct kernel source files are installed ,you may specify the kernel source path with the '--kernel-source-path' command line option.
    根据错误提示,缺少kernel,解决方案:下载与你系统对应的kernel
    1、使用命令,查看你使用的是:
    uname -r
    我的是4.13
    2、从 Ubuntu 官方内核库中下载 Linux Kernel 4.13
    64 位 Ubuntu 系统:
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13/linux-headers-4.13.0-041300_4.13.0-041300.201709031731_all.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13/linux-headers-4.13.0-041300-generic_4.13.0-041300.201709031731_amd64.deb
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13/linux-image-4.13.0-041300-generic_4.13.0-041300.201709031731_amd64.deb
    3、下载完成后使用如下命令安装 Linux Kernel 4.13:
    sudo dpkg -i *.deb
    4、使用如下命令更新 Grub 引导加载程序:
    sudo update-grub
    
    如果使用 BURG 引导加载程序,请运行:
    sudo update-burg
    5、重新启动系统
    展开全文
  • virtualbox安装centos 6之增强工具时,在错误日志中会提示:unable to find the source of your current linux kernel #sudo sh ./VBoxLinuxAdditions.run  提示失败  Building the VirtualBox Guest ...

     virtualbox安装centos 6之增强工具时,在错误日志中会提示:unable to find the source of your current linux kernel


    #sudo sh ./VBoxLinuxAdditions.run 

    提示失败 

    Building the VirtualBox Guest Additions kernel modules [FAILED] 
    Your system does not seem to be set up to build kernel modules. 
    Look at /var/log/vboxadd-install.log to find out what went wrong. 
    Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them. 

    #gedit /var/log/vboxadd-install.log 内容 

    Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop. 
    Creating user for the Guest Additions. 
    Creating udev rule for the Guest Additions kernel module. 

    安装GCC 

    #yum install gcc 

    # yum install gcc kernel-devel kernel-headers 

    重启。 

    再次安装VBoxLinuxAdditions,OK。


    注意需要以Root身份运行,否则会提示权限不够。



    即便按此操作依旧安装失败。继续找原因。

    需要设置KERN_DIR环境变量

    好吧,安装的KERN版本为2.6.32-358.23.2.el6.x86_64,但不知为何系统变量即使设置为如上目录,Linux依旧寻找这个版本

    2.6.32-358.el6.x86_64


    试着将它复制一份,到2.6.32-358.el6.x86_64目录,再次运行,安装成功。!

    展开全文
  • 运行 sh ./VBoxLinuxAdditions.run .../tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and...

    运行

    sh ./VBoxLinuxAdditions.run

    时FAILED,查看日志:

    /tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
    Creating user for the Guest Additions.
    Creating udev rule for the Guest Additions kernel module.

    意思是说没有内核源文件,解决的办法是运行

    yum instal gcc.i686 kernel.i686 kernel-devel.i686
    reboot

    分别是编译器,内核,内核头文件以及Makefile,然后再重启,让系统从新的内核文件选项启动。再运行

    sh ./VBoxLinuxAdditions.run

    就可以编译成功了。

    转载于:https://www.cnblogs.com/mstk/p/6505457.html

    展开全文
  • https://linuxcluster.wordpress.com/2018/10/08/nvidia-drivers-issues-unable-to-find-the-kernel-source-tree/ yum install kernel-devel kernel-headers -y yum info kernel-devel kernel-headers 问题...

    1

    安装cuda_10.0.130_410.48_linux.run自带的410.48 driver成功,但是nvidia-smi显示
    在这里插入图片描述
    查看NVIDIA显卡驱动版本
    cat /proc/driver/nvidia/version
    显示驱动安装成功

    lspci | grep -i nvidia显示pci插槽有两块nvidia显卡

    2.

    /usr/bin/nvidia-uninstall卸载驱动
    然后尝试单独安装驱动
    报错:
    在这里插入图片描述

    3.

    于是参考: https://linuxcluster.wordpress.com/2018/10/08/nvidia-drivers-issues-unable-to-find-the-kernel-source-tree/
    yum install kernel-devel kernel-headers -y
    yum info kernel-devel kernel-headers

    问题依然存在
    发现:kernel-devel kernel-headers 与运行中的kernel版本不同
    在这里插入图片描述

    4.

    然后,参考了: https://unix.stackexchange.com/questions/110682/yum-installs-kernel-devel-different-from-my-kernel-version
    yum install "kernel-devel-uname-r == $(uname -r)"
    yum distro-sync都不可行

    • 前者找不到包
    • 后者下载的 kernel-devel kernel-headers仍不匹配

    5.

    离线安装对应的rpm: https://pkgs.org/download/kernel-headers
    在这里插入图片描述
    https://pkgs.org/download/kernel-devel
    在这里插入图片描述

    6.

    再次安装:
    报错依旧:

    • 接受dkms:
      在这里插入图片描述

    Failed to run /usr/sbin/dkms build -m nvidia -v 418.74 -k 3.10.0-862.el7.x86_64: Error! echo
    Your kernel headers for kernel 3.10.0-862.el7.x86_64 cannot be found at
    /lib/modules/3.10.0-862.el7.x86_64/build or /lib/modules/3.10.0-862.el7.x86_64/source

    • 不使用dkms:
      在这里插入图片描述

    7.

    • 接受dkms:
      发现链接路径需要修改 (路径红色不可达)
      在这里插入图片描述
      重建软链接:
      此处参考:https://blog.csdn.net/u012343297/article/details/79141878

    rm ./build
    ln -s /usr/src/kernels/3.10.0-862.11.6.el7.1.x86_64/ build

    在这里插入图片描述

    8.

    done!!!
    在这里插入图片描述

    展开全文
  • yum install gcc kernel-devel kernel-headers 重启虚拟机, 再安装VBoxLinuxAdditions; 执行挂载:mkdkr -p /mnt/sharedFolder mount -t vboxsf sharedFolder /mnt/sharedFolder/
  • linux, virtualbox, kernel
  • There was no way I could find to kill the subprocess except killing the parent process first. I found that command <strong>kill</strong> had worked, but <strong>Zombie</strong> process was left. Then...
  • redhat 6.4 安装VirtualBox自动增强功能功能的时候提示: building the main Guest ...unable to find the sources of your current Linux kernel. Specify KERN_DIR-<directory> and run Make again ...
  • 在编译 linux kernel 时出现如下... *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-dev...
  • 错误: 解决方法: sudo apt-get install dkms
  • Warning: is_file(): Unable to find the wrapper "gaufrette" - did you forget to enable it when you configured ...
  • WARNING: Unable to find the correct offsets for functions of: 32-bit kernel32.dll (with timestamp 0x4ce7b8ef) WARNING: Unable to find the correct offsets for functions of: 32-bit jscript.dll (with ...
  • ERRO[0423] Error while adding to cni lo network: failed to find plugin "loopback" in path [/usr/libexec/cni /opt/cni/bin /opt/loopback/bin] error configuring network namespace for container 01...
  • virtualbox增强工具安装时出现unable to find the sources of your current Linux kernel 当我们在虚拟机里安装Linux系统,避免不了的要安装增强功能,无论是视觉效果还是物理机与虚拟机共享文件都是需要安装增强...
  • 21:02:46 ERROR| grubby fatal error: unable to find a suitable template 21:02:47 DEBUG| Running 'touch /fastboot' <p>The root cause of this error was fixed in the following commit: <p>commit a...
  • 我最小化安装linux的时候,在安装虚拟增强工具的...yum install gcc make kernel-headers kernel-devel再次尝试安装即可![root@minimal share]# ./VBoxLinuxAdditions.run Verifying archive integrity... All good. U
  • The driver was not loaded because it failed its initialization call." <p>I tried multiple times to install/uninstall but without succeeding. I couldn't find any solution online regarding this ...
  • Unable to find phone

    2020-12-25 23:41:53
    <div><p>Just installed Ubuntu 15.10 and still unable to connect to my Android phone - Dual booting with Windows XP (yeah I know)which has no problem. The chip is the Broadcom BCM43142. Lspci shows ...
  • 一、问题描述:Ubuntu下交叉编译make menuconfig时出错:“Unable to find the ncurses libraries or the required header files.”,如下: ms@ubuntu:~/work/product/ok335xD/program/project/kernel/kernel/...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 967
精华内容 386
关键字:

findkernelthetounable