Bug 5774 - [Anolis23 GA][GA][arm]使用micro-image:an23精简容器镜像进行功能验证,执行microdnf install bzip2报错:error: Failed to download gpg key for repo 'os'
Summary: [Anolis23 GA][GA][arm]使用micro-image:an23精简容器镜像进行功能验证,执行microdnf install bzip2...
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 16:28 UTC by liuyaqing
Modified: 2023-07-12 10:34 UTC (History)
1 user (show)

See Also:


Attachments

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 16:28:23 UTC
Description of problem:
使用精简镜像 micro-arm-initrd.cpio.gz,解压并构建完成后运行docker,执行microdnf install bzip2命令报错:

bash-5.2#  microdnf install bzip2

(microdnf:245): libdnf-WARNING **: 08:20:04.555: Can't read plugin directory "/usr/lib64/libdnf/plugins/": No such file or directory
error: Failed to download gpg key for repo 'os': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS]


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

Actual results:
安装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:07 UTC
使用cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-micro-20230711精简镜像可以正常执行microdnf install bzip2,bug已解决
Comment 2 liuyaqing alibaba_cloud_group 2023-07-12 10:34:01 UTC
问题已解决