Bug 9280 - [Anolis23.1] 无法获取 5.10 版本内核包
Summary: [Anolis23.1] 无法获取 5.10 版本内核包
Status: IN_PROGRESS
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.1
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaochang
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 19:03 UTC by gaochang
Modified: 2024-06-04 19:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaochang alibaba_cloud_group 2024-06-04 19:03:08 UTC
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:
Comment 1 gaochang alibaba_cloud_group 2024-06-04 19:13:07 UTC
因默认内核切换为 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