首先手动更新gcc,防止无法兼容最新版本的内核,我这里将gcc 11更新到gcc 13
yum install -y gcc gcc-c++
wget http://ftp.gnu.org/gnu/gcc/gcc-13.1.0/gcc-13.1.0.tar.gz
解压到usr
tar -xzvf gcc-13.1.0.tar.gz -C /usr/local/
进入到解压的gcc文件夹,运行以下命令
./contrib/download_prerequisites
首先创建build文件夹,用于存放编译后文件
mkdir build && cd build
运行config文件
../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
开始编译新版gcc
make -j$(nproc) && make install
编译完成后重启,然后查看gcc版本
reboot
gcc --version
显示13.0.1,gcc更新完成.
yum install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
lt为长期支持版,ml为当前分支稳定版本,我安装的为ml稳定版本.
运行命令
dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel kernel-ml-core kernel-ml-headers kernel-ml-modules-extra -y
在安装kernel-headers 或者 kernel-devel 时其中出现冲突,如果是headers冲突安装失败无关紧要,具体看下面问题解决方法,如果是devel无法安装则删除当前冲突内核再次尝试安装或者重启再安装等等。。。
遇见冲突先将命令中的headers和devel去掉,先把内核安装下来,然后再单独尝试安装header和devel看究竟是哪个安装不上.
安装好后重启系统,再次查看当前运行内核,同时再运行命令保存加载内核.
uname -r
grub2-mkconfig -o /boot/grub2/grub.cfg
安装完新内核后可以删除老内核及其安装包,具体的自行删除.
安装VBox工具前,还需安装部分软件
yum install -y prel
安装完后重启系统.
点击VBox工具栏上的Devices(工具)选项,然后点击Insert Guest Additions CD imag(安装增强工具)
VBox就会自动将增强镜像光盘挂在到系统中,根据每个人用户名和系统不同自行调整.
cd /run/media/用户名/VBox_GAs_7.0.19/
进入镜像文件夹后运行VBoxLiunxAdditions.run
sh VBoxLiunxAdditions.run 或者./VBoxLiunxAdditions.run
等待安装好后重启程序,至此增强工具安装成功.
- $ sudo dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-core kernel-ml-headers kernel-ml-modules kernel-ml-modules-extra -y
- Repository 'apprepo' is missing name in configuration, using id.
- ELRepo.org Community Enterprise Linux Ker 2.8 kB/s | 1.0 MB 06:01
- Dependencies resolved.
- ========================================================================== Package
- Arch Version Repository Size
- ==========================================================================Installing:
- kernel-ml x86_64 6.0.8-1.el9.elrepo elrepo-kernel 12 k
- kernel-ml-core x86_64 6.0.8-1.el9.elrepo elrepo-kernel 56 M
- kernel-ml-headers x86_64 6.0.8-1.el9.elrepo elrepo-kernel 1.5 M
- kernel-ml-modules x86_64 6.0.8-1.el9.elrepo elrepo-kernel 51 M
- kernel-ml-modules-extra x86_64 6.0.8-1.el9.elrepo elrepo-kernel 2.1 M
-
- Transaction Summary
- ==========================================================================Install 5 Packages
-
-
- Total download size: 111 M
- Installed size: 156 M
- Downloading Packages:
- yELRepo.org Commun 0% [ ] 2.3 MB/s | 0 B 00:00 ETAELRepo.org Communit(1/5): kernel-ml-6.0.8-1.el9.elrepo.x86_64.rpm 21 kB/s | 12 kB 00:00
- (2/5): kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64.rpm 1.2 MB/s | 1.5 MB 00:01
- (3/5): kernel-ml-modules-extra-6.0.8-1.el9.elrepo.x86_64.rpm 7.5 MB/s | 2.1 MB 00:00
- (4/5): kernel-ml-modules-6.0.8-1.el9.elrepo.x86_64.rpm 22 MB/s | 51 MB 00:02
- (5/5): kernel-ml-core-6.0.8-1.el9.elrepo.x86_64.rpm 19 MB/s | 56 MB 00:03
- ---------------------------------------------------------------------------------------------Total 312 kB/s | 111 MB 06:03
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- The downloaded packages were saved in cache until the next successful transaction.
- You can remove cached packages by executing 'dnf clean packages'.
- Error: Transaction test error:
- file /usr/include/asm-generic/fcntl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/mman-common.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/poll.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/shmbuf.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/siginfo.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/signal-defs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/signal.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/socket.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/termbits.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm-generic/unistd.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/bootparam.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/kvm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/mman.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/processor-flags.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/sgx.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/shmbuf.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/signal.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/svm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/unistd_32.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/unistd_64.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/unistd_x32.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/asm/vmx.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/cpufreq.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/amdgpu_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/drm_fourcc.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/drm_mode.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/i915_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/mga_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/msm_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/panfrost_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/tegra_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/v3d_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/virtgpu_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/drm/vmwgfx_drm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/acct.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/acrn.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/agpgart.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/android/binder.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/audit.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/blkzoned.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/bpf.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/btf.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/btrfs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/btrfs_tree.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/byteorder/big_endian.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/byteorder/little_endian.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/can/bcm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/can/error.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/can/isotp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/can/j1939.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/can/netlink.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/cdrom.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/cec.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/connector.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/cxl_mem.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/cycx_cfm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/devlink.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/dlm_device.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/dm-ioctl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/dm-log-userspace.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/dma-buf.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/elf-em.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/elf.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ethtool.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ethtool_netlink.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/f2fs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fanotify.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fb.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fiemap.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/firewire-cdev.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fscrypt.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fsi.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fsmap.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/fuse.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/futex.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/genetlink.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/gpio.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/gtp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/hyperv.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/idxd.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_addr.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_alg.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_arcnet.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_arp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_bridge.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_ether.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_link.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_pppox.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_tun.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/if_tunnel.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/igmp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/iio/types.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/in.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/in6.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/inet_diag.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/inotify.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/input-event-codes.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/input.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/io_uring.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/iommu.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ip.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ip_vs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ipmi.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ipv6.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/iso_fs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/jffs2.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/kcov.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/kexec.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/kfd_ioctl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/kvm.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/landlock.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/lirc.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/loop.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/lwtunnel.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/magic.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/mdio.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/media-bus-format.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/media.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/minix_fs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/mmc/ioctl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/module.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/mount.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/mptcp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/mroute6.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ndctl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/neighbour.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/net_dropmon.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/net_tstamp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter/nf_conntrack_common.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter/nf_tables.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter/nfnetlink_conntrack.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter/nfnetlink_queue.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter/x_tables.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter/xt_IDLETIMER.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter_arp/arp_tables.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter_bridge/ebt_among.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter_ipv4/ip_tables.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter_ipv6/ip6_tables.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netfilter_ipv6/ip6t_LOG.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/netlink.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/nfc.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/nfs4.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/nfs_fs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/nl80211.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/nvme_ioctl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/omap3isp.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/openvswitch.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/pci_regs.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/perf_event.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/pfkeyv2.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/pkt_cls.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/prctl.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/psci.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/ptrace.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
- file /usr/include/linux/raid/md_p.h from install of kernel-ml-headers-6.0.8-1.el9.elrepo.x86_64 conflicts with file from package kernel-headers-5.14.0-70.30.1.el9_0.x86_64
两个kernel header会产生冲突,需要覆盖掉,尝试去安装覆盖的headers.
如果无法覆盖,则只需安装devel即可,参考链接.
当查看错误输出日志显示kernel modules and services were not reloaded.
但其实我们是已经有kernel modules的,但是VBox它无法加载,最后找到原因参考链接,我使用的VBox版本是7.0.10,内核原来是5.14.0,后升级为6.9.5的,需要使用7.0.13后的版本才可以加载增强工具modules。