Bug 3570 - [Anolis 8.8][noaarch]开启Plus repo后,yum update 安装了4.19的内核
Summary: [Anolis 8.8][noaarch]开启Plus repo后,yum update 安装了4.19的内核
Status: RESOLVED INVALID
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.8
Hardware: All Linux
: P2-High S2-major
Target Milestone: rc1
Assignee: gaochang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-28 14:32 UTC by yunmeng365524
Modified: 2023-01-05 19:31 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 yunmeng365524 2022-12-28 14:32:34 UTC
Description of problem:
开启Plus repo后,yum update 安装了4.19的内核

Version-Release number of selected component (if applicable):
[root@localhost ~]# uname -a
Linux localhost.localdomain 5.10.134-13_rc1.an8.x86_64 #1 SMP Mon Dec 5 19:11:36 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

How reproducible:
[root@localhost ~]# yum-config-manager --enable Plus
[root@localhost ~]# yum update -y
Some packages version should keep unchanged.
Loading conf file /etc/preserve.d//kernel.conf
Analyzing...
上次元数据过期检查:0:00:02 前,执行于 2022年12月28日 星期三 14时19分05秒。
依赖关系解决。
无需任何处理。
完毕!
上次元数据过期检查:0:00:03 前,执行于 2022年12月28日 星期三 14时19分05秒。
依赖关系解决。
==============================================================================================================================
 软件包                                架构                    版本                               仓库                   大小
==============================================================================================================================
安装:
 kernel-core                           x86_64                  4.19.91-26.6.an8                   Plus                   23 M
 kernel-modules                        x86_64                  4.19.91-26.6.an8                   Plus                   21 M
安装依赖关系:
 kernel-modules-extra                  x86_64                  4.19.91-26.6.an8                   Plus                  835 k
安装弱的依赖:
 kernel-devel                          x86_64                  4.19.91-26.6.an8                   Plus                   12 M

事务概要
==============================================================================================================================
安装  4 软件包

总下载:57 M
安装大小:279 M
下载软件包:
(1/4): kernel-devel-4.19.91-26.6.an8.x86_64.rpm                                               3.6 MB/s |  12 MB     00:03
(2/4): kernel-modules-extra-4.19.91-26.6.an8.x86_64.rpm                                       1.9 MB/s | 835 kB     00:00
(3/4): kernel-core-4.19.91-26.6.an8.x86_64.rpm                                                5.3 MB/s |  23 MB     00:04
(4/4): kernel-modules-4.19.91-26.6.an8.x86_64.rpm                                             4.7 MB/s |  21 MB     00:04
------------------------------------------------------------------------------------------------------------------------------
总计                                                                                           13 MB/s |  57 MB     00:04
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                                                                                               1/1
  安装    : kernel-core-4.19.91-26.6.an8.x86_64                                                                           1/4
  运行脚本: kernel-core-4.19.91-26.6.an8.x86_64                                                                           1/4
  安装    : kernel-modules-4.19.91-26.6.an8.x86_64                                                                        2/4
  运行脚本: kernel-modules-4.19.91-26.6.an8.x86_64                                                                        2/4
  安装    : kernel-modules-extra-4.19.91-26.6.an8.x86_64                                                                  3/4
  运行脚本: kernel-modules-extra-4.19.91-26.6.an8.x86_64                                                                  3/4
  安装    : kernel-devel-4.19.91-26.6.an8.x86_64                                                                          4/4
  运行脚本: kernel-devel-4.19.91-26.6.an8.x86_64                                                                          4/4
  运行脚本: kernel-core-4.19.91-26.6.an8.x86_64                                                                           4/4
  运行脚本: kernel-devel-4.19.91-26.6.an8.x86_64                                                                          4/4
  验证    : kernel-core-4.19.91-26.6.an8.x86_64                                                                           1/4
  验证    : kernel-devel-4.19.91-26.6.an8.x86_64                                                                          2/4
  验证    : kernel-modules-4.19.91-26.6.an8.x86_64                                                                        3/4
  验证    : kernel-modules-extra-4.19.91-26.6.an8.x86_64                                                                  4/4

已安装:
  kernel-core-4.19.91-26.6.an8.x86_64           kernel-devel-4.19.91-26.6.an8.x86_64  kernel-modules-4.19.91-26.6.an8.x86_64
  kernel-modules-extra-4.19.91-26.6.an8.x86_64

完毕!

Steps to Reproduce:
同上

Actual results:
安装了4.19内核

Expected results:
安装5.10内核,或跳过

Additional info:
Comment 1 gaochang alibaba_cloud_group 2023-01-05 17:12:28 UTC
该问题未复现,请问测试的环境是否还在,是否可以连接?
Comment 2 yunmeng365524 2023-01-05 19:31:05 UTC
新拉起的环境执行没有问题。
之前的环境之所以有问题是因为其他的操作安装了4.19的内核包。卸载了其他内核包后,再update,不会出现升级到4.19的情况。

[anuser@localhost ~]$
[anuser@localhost ~]$
[anuser@localhost ~]$ sudo su -c bash
[sudo] password for anuser:
[root@localhost anuser]#
[root@localhost anuser]#
[root@localhost anuser]# rpm -qa | grep kernel
kernel-core-5.10.134-13_rc1.an8.aarch64
kernel-modules-5.10.134-13_rc1.an8.aarch64
kernel-tools-libs-5.10.134-13_rc1.an8.aarch64
kernel-headers-5.10.134-13_rc1.an8.aarch64
kernel-tools-5.10.134-13_rc1.an8.aarch64
kernel-5.10.134-13_rc1.an8.aarch64
[root@localhost anuser]# yum
yum     yum.sh
[root@localhost anuser]# yum provides yumdownloader
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:06:39 ago on Thu Jan  5 17:37:59 2023.
yum-utils-4.0.21-11.an8.noarch : Yum-utils CLI compatibility layer
Repo        : BaseOS
Matched from:
Filename    : /usr/bin/yumdownloader

[root@localhost anuser]# yum install -y yum-utils-4.0.21-11.an8.noarch
Some packages version should keep unchanged.
Loading conf file /etc/preserve.d//kernel.conf
Analyzing...
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:06:47 ago on Thu Jan  5 17:37:59 2023.
Dependencies resolved.
===============================================================================================================================
 Package                       Architecture               Version                             Repository                  Size
===============================================================================================================================
Installing:
 yum-utils                     noarch                     4.0.21-11.an8                       BaseOS                      72 k

Transaction Summary
===============================================================================================================================
Install  1 Package

Total download size: 72 k
Installed size: 23 k
Downloading Packages:
yum-utils-4.0.21-11.an8.noarch.rpm                                                             435 kB/s |  72 kB     00:00
-------------------------------------------------------------------------------------------------------------------------------
Total                                                                                          433 kB/s |  72 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                       1/1
  Installing       : yum-utils-4.0.21-11.an8.noarch                                                                        1/1
  Running scriptlet: yum-utils-4.0.21-11.an8.noarch                                                                        1/1
  Verifying        : yum-utils-4.0.21-11.an8.noarch                                                                        1/1

Installed:
  yum-utils-4.0.21-11.an8.noarch

Complete!
[root@localhost anuser]# yum-config-manager --enable Plus
Failed to set locale, defaulting to C.UTF-8
[root@localhost anuser]# yum repolist
Failed to set locale, defaulting to C.UTF-8
repo id                                   repo name
AppStream                                 AnolisOS-8 - AppStream
BaseOS                                    AnolisOS-8 - BaseOS
Extras                                    AnolisOS-8 - Extras
Plus                                      AnolisOS-8 - Plus
PowerTools                                AnolisOS-8 - PowerTools
epel                                      Extra Packages for Enterprise Linux 8 - aarch64
epel-modular                              Extra Packages for Enterprise Linux Modular 8 - aarch64
[root@localhost anuser]#
[root@localhost anuser]# yum update
Some packages version should keep unchanged.
Loading conf file /etc/preserve.d//kernel.conf
Analyzing...
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:00:02 ago on Thu Jan  5 17:45:20 2023.
Dependencies resolved.
===============================================================================================================================
 Package                           Architecture                Version                         Repository                 Size
===============================================================================================================================
Upgrading:
 epel-release                      noarch                      8-18.el8                        epel                       24 k

Transaction Summary
===============================================================================================================================
Upgrade  1 Package

Total download size: 24 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-8-18.el8.noarch.rpm                                                               597 kB/s |  24 kB     00:00
-------------------------------------------------------------------------------------------------------------------------------
Total                                                                                           50 kB/s |  24 kB     00:00
Extra Packages for Enterprise Linux 8 - aarch64                                                1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>"
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                       1/1
  Running scriptlet: epel-release-8-18.el8.noarch                                                                          1/1
  Upgrading        : epel-release-8-18.el8.noarch                                                                          1/2
  Running scriptlet: epel-release-8-18.el8.noarch                                                                          1/2
  Cleanup          : epel-release-8-11.an8.noarch                                                                          2/2
  Running scriptlet: epel-release-8-11.an8.noarch                                                                          2/2
  Verifying        : epel-release-8-18.el8.noarch                                                                          1/2
  Verifying        : epel-release-8-11.an8.noarch                                                                          2/2

Upgraded:
  epel-release-8-18.el8.noarch

Complete!
[root@localhost anuser]# yum update
Some packages version should keep unchanged.
Loading conf file /etc/preserve.d//kernel.conf
Analyzing...
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:00:21 ago on Thu Jan  5 17:45:20 2023.
Dependencies resolved.
Nothing to do.
Complete!