Bug 8804 - [6.6.25-2][RC1][Anolis23][aarch64]安装kernel-tools、kernel-tools-libs包报错error: Failed dependencies
Summary: [6.6.25-2][RC1][Anolis23][aarch64]安装kernel-tools、kernel-tools-libs包报错error: F...
Status: RESOLVED WONTFIX
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 11:48 UTC by Banana
Modified: 2024-04-22 14:22 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2024-04-19 11:48:21 UTC
[问题描述]:
安装kernel-tools、kernel-tools-libs包报错error: Failed dependencies

[root@iZbp143ti4ccpaufkzata7Z kernel]# rpm -ivh kernel-tools-6.6.25-2_rc1.an23.aarch64.rpm kernel-tools-libs-6.6.25-2_rc1.an23.aarch64.rpm
error: Failed dependencies:
        libc.so.6(GLIBC_2.38)(64bit) is needed by kernel-tools-6.6.25-2_rc1.an23.aarch64
        libc.so.6(GLIBC_2.38)(64bit) is needed by kernel-tools-libs-6.6.25-2_rc1.an23.aarch64



[环境信息]:
机器类型:ECS

[root@iZbp143ti4ccpaufkzata7Z kernel]# uname -r
6.6.25-2_rc1.an23.aarch64

[root@iZbp143ti4ccpaufkzata7Z kernel]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@iZbp143ti4ccpaufkzata7Z kernel]# uname -r
6.6.25-2_rc1.an23.aarch64
[root@iZbp143ti4ccpaufkzata7Z kernel]# rpm -qi glibc
Name        : glibc
Version     : 2.36
Release     : 13.an23
Architecture: aarch64
Install Date: Fri 19 Apr 2024 10:23:34 AM CST
Group       : Unspecified
Size        : 6445964
License     : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ and GPLv2+ with exceptions and BSD and Inner-Net and ISC and Public Domain and GFDL
Signature   : RSA/SHA256, Wed 06 Mar 2024 12:05:20 AM CST, Key ID 619140084873f7c5
Source RPM  : glibc-2.36-13.an23.src.rpm
Build Date  : Tue 05 Mar 2024 04:15:22 PM CST
Build Host  : iZ2ze7dcak6kcy6zqdazjgZ
Packager    : OpenAnolis Community
Vendor      : OpenAnolis Community
URL         : http://www.gnu.org/software/glibc/
Summary     : The GNU libc libraries
Description :
The glibc package contains standard libraries which are used by
multiple programs on the system.
In order to save disk space and memory, as well as to make upgrading easier,
common system code is kept in one place and shared between programs.
This particular package contains the most important sets of shared libraries:
the standard C library and the standard math library.
Without these two libraries, a Linux system will not function.

[root@iZbp143ti4ccpaufkzata7Z kernel]# yum list |grep glibc
glibc.aarch64                                            2.36-13.an23                        @updates
glibc-common.aarch64                                     2.36-13.an23                        @updates
glibc-devel.aarch64                                      2.36-13.an23                        @updates
glibc-gconv-extra.aarch64                                2.36-13.an23                        @updates
glibc-langpack-en.aarch64                                2.36-13.an23                        @updates
glibc-all-langpacks.aarch64                              2.36-13.an23                        updates
glibc-benchtests.aarch64                                 2.36-13.an23                        updates
glibc-doc.noarch                                         2.36-13.an23                        updates
glibc-langpack-zh.aarch64                                2.36-13.an23                        updates
glibc-locale-source.aarch64                              2.36-13.an23                        updates
glibc-minimal-langpack.aarch64                           2.36-13.an23                        updates
glibc-nss-devel.aarch64                                  2.36-13.an23                        updates
glibc-static.aarch64                                     2.36-13.an23                        updates
glibc-utils.aarch64                                      2.36-13.an23                        updates


[问题发生概率]:
必现

[问题分析]
源内无glibc-2.38的版本,且被kernel-tools、kernel-tools-libs包依赖

[复现步骤]:
1、下载kernel-tools、kernel-tools-libs包
2、执行rpm -ivh kernel-tools-6.6.25-2_rc1.an23.aarch64.rpm kernel-tools-libs-6.6.25-2_rc1.an23.aarch64.rpm
Comment 1 anolislw alibaba_cloud_group 2024-04-19 12:02:06 UTC
libc.so.6(GLIBC_2.38)(64bit)的依赖由glibc-2.38-1.an23来提供,此包在anolis23 Nightly updates源内,配置Nightly后使用yum安装kernel-tools、kernel-tools-libs可以自动解析并安装,请开发同学评估下 glibc-2.38-1.an23 在anolis23 Nightly updates源内,未存放置在release源中是否有影响:

glibc-2.38-1所在位置:http://mirrors.aliyun.com/anolis/23/Nightly/updates/x86_64/os/Packages/glibc-2.38-1.an23.x86_64.rpm

-------- 记录  ----------------
[root@iZbp1c9jzchxjqive233ugZ fio-master]# yum whatprovides libc.so.6\(GLIBC_2.38\)\(64bit\)
Last metadata expiration check: 0:01:04 ago on Fri 19 Apr 2024 11:52:57 AM CST.
glibc-2.38-1.an23.x86_64 : The GNU libc libraries
Repo        : @System
Matched from:
Provide    : libc.so.6(GLIBC_2.38)(64bit)

glibc-2.38-1.an23.x86_64 : The GNU libc libraries
Repo        : nightly-updates
Matched from:
Provide    : libc.so.6(GLIBC_2.38)(64bit)

[root@iZbp1c9jzchxjqive233ugZ fio-master]# yum repolist -v | grep updates
nightl-os                                        29 kB/s | 3.8 kB     00:00
nightly-updates]                                 26 kB/s | 3.8 kB     00:00
Repo-id            : nightly-updates
Repo-name          : nightly-updates]
Repo-baseurl       : http://mirrors.aliyun.com/anolis/23/Nightly/updates/x86_64/os
Repo-id            : updates
Repo-name          : AnolisOS-23 - updates
Repo-baseurl       : http://mirrors.cloud.aliyuncs.com/anolis/23/updates/x86_64/os
[root@iZbp1c9jzchxjqive233ugZ fio-master]#
Comment 2 yunmeng365524 2024-04-22 14:22:02 UTC
(In reply to anolislw from comment #1)
> libc.so.6(GLIBC_2.38)(64bit)的依赖由glibc-2.38-1.an23来提供,此包在anolis23 Nightly
> updates源内,配置Nightly后使用yum安装kernel-tools、kernel-tools-libs可以自动解析并安装,请开发同学评估下
> glibc-2.38-1.an23 在anolis23 Nightly updates源内,未存放置在release源中是否有影响:
> 
> glibc-2.38-1所在位置:http://mirrors.aliyun.com/anolis/23/Nightly/updates/x86_64/
> os/Packages/glibc-2.38-1.an23.x86_64.rpm
> 
> -------- 记录  ----------------
> [root@iZbp1c9jzchxjqive233ugZ fio-master]# yum whatprovides
> libc.so.6\(GLIBC_2.38\)\(64bit\)
> Last metadata expiration check: 0:01:04 ago on Fri 19 Apr 2024 11:52:57 AM
> CST.
> glibc-2.38-1.an23.x86_64 : The GNU libc libraries
> Repo        : @System
> Matched from:
> Provide    : libc.so.6(GLIBC_2.38)(64bit)
> 
> glibc-2.38-1.an23.x86_64 : The GNU libc libraries
> Repo        : nightly-updates
> Matched from:
> Provide    : libc.so.6(GLIBC_2.38)(64bit)
> 
> [root@iZbp1c9jzchxjqive233ugZ fio-master]# yum repolist -v | grep updates
> nightl-os                                        29 kB/s | 3.8 kB     00:00
> nightly-updates]                                 26 kB/s | 3.8 kB     00:00
> Repo-id            : nightly-updates
> Repo-name          : nightly-updates]
> Repo-baseurl       :
> http://mirrors.aliyun.com/anolis/23/Nightly/updates/x86_64/os
> Repo-id            : updates
> Repo-name          : AnolisOS-23 - updates
> Repo-baseurl       :
> http://mirrors.cloud.aliyuncs.com/anolis/23/updates/x86_64/os
> [root@iZbp1c9jzchxjqive233ugZ fio-master]#

在nightly内的包可以安装上就可以。最后会往对外源推的。