Bug 5777 - [Anolis23 GA][GA][arm]使用mini-image:an23精简容器镜像进行功能验证,执行dnf install bzip2 -y报错:Error: GPG check FAILED
Summary: [Anolis23 GA][GA][arm]使用mini-image:an23精简容器镜像进行功能验证,执行dnf install bzip2 -y报错:...
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 23.0
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-07 17:11 UTC by liuyaqing
Modified: 2023-07-12 10:33 UTC (History)
1 user (show)

See Also:


Attachments
精简容器执行dnf install命令失败 (8.05 MB, image/bmp)
2023-07-07 17:11 UTC, liuyaqing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liuyaqing alibaba_cloud_group 2023-07-07 17:11:28 UTC
Created attachment 832 [details]
精简容器执行dnf install命令失败

Description of problem:
使用精简镜像minimal-arm-initrd.cpio.gz解压并构建完成后运行docker,执行dnf  install bzip2 -y报错:

Cannot find rpmkeys executable to verify signatures.
Problem opening package bzip2-1.0.8-1.an23.aarch64.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED


Steps to Reproduce:
1.下载minimal-arm-initrd.cpio.gz并解压
2.创建dockerfile
3.构建docker docker build -t mini-image:an23 .
4.运行docker docker run -it --rm mini-image:an23
5. 执行命令 dnf  install bzip2 -y

Actual results:
dnf安装bzip2失败

Expected results:
正常安装bzip2

Additional info:

cat dockerfile
FROM scratch
COPY test /
CMD ["bash"]
Comment 1 liuyaqing alibaba_cloud_group 2023-07-12 10:32:59 UTC
使用精简镜像 cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-minimal-20230711,可以正常执行dnf  install bzip2 -y,bug已解决
Comment 2 liuyaqing alibaba_cloud_group 2023-07-12 10:33:45 UTC
问题已解决