Bug 20900 - [Anolis23][nightly][x86/aarch64][2025-05-08]repoclosure 测试失败:存在未解析的依赖项
Summary: [Anolis23][nightly][x86/aarch64][2025-05-08]repoclosure 测试失败:存在未解析的依赖项
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaochang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-08 13:48 UTC by gitpush
Modified: 2025-05-20 17:22 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gitpush alibaba_cloud_group 2025-05-08 13:48:01 UTC
问题描述:
在执行 dnf repoclosure 命令时,检测到多个软件包存在未解析的依赖项。测试环境基于 AnolisOS-23 的 Docker 容器,OS 和 DDE 软件仓库进行依赖关系检查。

执行步骤:
1、安装启动docker
yum install docker -y
systemctl start docker

2、拉取和启动镜像
docker pull registry.openanolis.cn/openanolis/anolisos:23.2

image_id=docker images -f reference=registry.openanolis.cn/openanolis/anolisos:23.2 |awk '{print $3}'|grep -v -i IMAGE

docker run --name repoclosure_test -d --shm-size=2g --net=host $image_id bash -c 'hostname;sleep 360000'

docker exec repoclosure_test bash -c 'yum install yum-utils -y'

3、执行 repoclosure 命令检查依赖关系闭合性
docker exec repoclosure_test bash -c 'dnf repoclosure --arch=x86_64 --arch=noarch --repofrompath=repoclosure-os.x86_64,https://build.openanolis.cn/kojifiles/output/nightly/anolis-23-20250508.0/compose/os/x86_64/os/ --repofrompath=repoclosure-DDE.x86_64,https://build.openanolis.cn/kojifiles/output/nightly/anolis-23-20250508.0/compose/DDE/x86_64/os/ --repo=repoclosure-os.x86_64 --repo=repoclosure-DDE.x86_64 --check=repoclosure-os.x86_64 --check=repoclosure-DDE.x86_64'

输出具体错误信息如下:

Installed:
  dbus-libs-1:1.14.8-1.an23.x86_64                                              
  dnf-plugins-core-4.3.1-2.an23.noarch                                          
  python3-dateutil-1:2.8.2-5.an23.noarch                                        
  python3-dbus-1.3.2-3.an23.x86_64                                              
  python3-distro-1.8.0-3.an23.noarch                                            
  python3-dnf-plugins-core-4.3.1-2.an23.noarch                                  
  python3-six-1.16.0-3.an23.noarch                                              
  yum-utils-4.3.1-2.an23.noarch                                                 

Complete!
Added repoclosure-os.x86_64 repo from https://build.openanolis.cn/kojifiles/output/nightly/anolis-23-20250508.0/compose/os/x86_64/os/
Added repoclosure-DDE.x86_64 repo from https://build.openanolis.cn/kojifiles/output/nightly/anolis-23-20250508.0/compose/DDE/x86_64/os/
repoclosure-os.x86_64                           604 kB/s |  11 MB     00:18    
repoclosure-DDE.x86_64                          664 kB/s | 1.1 MB     00:01    
Error: Repoclosure ended with unresolved dependencies (4) across 1 packages.
Comment 1 gaochang alibaba_cloud_group 2025-05-14 14:11:30 UTC
日志中并未存在相关信息,辛苦提供更详细日志
Comment 2 yc02267530 2025-05-20 17:22:52 UTC
根据问题复现步骤在执行 repoclosure 命令检查依赖关系闭合性时发现软件gstreamer1-plugins-base-1.24.10-1.an23.x86_64存在未解决的依赖
libtheoradec.so.1()(64bit)
libtheoradec.so.1(libtheoradec_1.0)(64bit)
libtheoraenc.so.1()(64bit)
libtheoraenc.so.1(libtheoraenc_1.0)(64bit)                               

经过分析是libtheora软件升级过后导致的依赖指向问题,同步查看gstreamer1-plugins-base已经在近期重构建使得依赖指向libtheora 1.2.0版本,使用最新仓库测试该问题已解决