gpt4 book ai didi

linux - 如何修复 fedora 中内核和内核开发版本之间的不匹配?

转载 作者:太空狗 更新时间:2023-10-29 11:09:13 29 4
gpt4 key购买 nike

我有这个偏好:

# yum info kernel|grep -E "Name|Version|Release"
Name : kernel
Version : 3.13.6
Release : 200.fc20


# yum info kernel-devel
Installed Packages
Name : kernel-devel
Arch : i686
Version : 3.11.10
Release : 301.fc20
Size : 31 M
Repo : installed
From repo : fedora
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2 and Redistributable, no modification permitted
Description : This package provides kernel headers and makefiles sufficient to
: build modules against the kernel package.

Name : kernel-devel
Arch : i686
Version : 3.13.6
Release : 200.fc20
Size : 31 M
Repo : installed
From repo : updates
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2 and Redistributable, no modification permitted
Description : This package provides kernel headers and makefiles sufficient to
: build modules against the kernel package.

# uname -r
3.11.10-301.fc20.i686+PAE

所有安装包:

#rpm -qa | grep ^kernel
kernel-devel-3.13.6-200.fc20.i686
kernel-devel-3.11.10-301.fc20.i686
kernel-PAE-devel-3.11.10-301.fc20.i686
kernel-PAE-3.11.10-301.fc20.i686
kernel-headers-3.13.6-200.fc20.i686

当我尝试安装 some_package.rpm 时,它说内核和内核开发版本不同。如何修复?

最佳答案

使用它使内核开发版本与您的内核版本相同:

sudo yum install "kernel-devel-uname-r == $(uname -r)"

关于linux - 如何修复 fedora 中内核和内核开发版本之间的不匹配?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22545450/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com