Description of problem: 在安装好系统后的环境,执行 yum install -y kernel-5.10.134 无法安装 5.10 内核 Version-Release number of selected component (if applicable): How reproducible: 必现 Steps to Reproduce: 1.在安装后的系统执行 yum install kernel-5.10.134 2. 3. Actual results: 无法安装 Expected results: 可以正常安装 Additional info:
因默认内核切换为 6.6 ,5.10.134 内核将分离到 kernel-5.10 仓库单独维护,23.1 默认的 repo 中缺失了该部分的配置,该问题预计将在下一个版本中修复。目前可以通过如下的方式处理: 1、执行如下命令 cat >> /etc/yum.repos.d/AnolisOS.repo << EOF [kernel-5.10] name=AnolisOS-\$releasever - kernel-5.10 baseurl=https://mirrors.openanolis.cn/anolis/23/kernel-5.10/\$basearch/os/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS gpgcheck=1 EOF 2、执行安装命令 yum install kernel-5.10.134 3、(可选)配置 debuginfo 仓库 cat >> /etc/yum.repos.d/AnolisOS-Debuginfo.repo << EOF [kernel-5.10-debuginfo] name=AnolisOS-\$releasever - kernel-5.10 Debuginfo baseurl=https://mirrors.openanolis.cn/anolis/23/kernel-5.10/\$basearch/debug/ enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS gpgcheck=1 EOF 4、(可选)安装debug 包 debuginfo-install kernel-5.10.134