centos升级报错:failed to install rpms required by dnf

将系统由CentOS Linux release 7.6.1810升级至BCLinux-for-Euler-22.10报错,环境检查及升级前检查均正常通过,但升级过程中报错如下:
[ INFO ] - [initramfs]: =================== Upgrade Stage ==================
[ INFO ] - [initramfs]: the stage start time is: 2024-05-13-10:07:05
[ INFO ] - [initramfs]: start install openEuler dnf
已加载插件:fastestmirror, langpacks, priorities

您已启用软件包 GPG 签名检查,这样很好。不过您尚未安装任何 GPG 公钥。请下载您希望安装的软件签名公钥并安装。假设公钥已下载,安装命令是:
rpm --import public.gpg.key

或者,在软件源配置中,使用 ‘gpgkey’ 选项指定软件源使用的公钥 URL,这样 yum 会自动安装它。

详情请联系发行版或软件包制作人。

问题源:everything
[ ERROR ] - [initramfs]: failed to install rpms required by dnf.
[ ERROR ] - [initramfs]: install dnf failed
[ ERROR ] - [initramfs]: failed to upgrade system.
[ ERROR ] - [x2openEuler-upgrade] - failed to upgrade system
[ ERROR ] - [centos2openEuler]: Upgrade migrate failed
2
##THE END##

请大佬指点!

修改web配置的repo内容,gpgcheck=0

1 Like

或试试导入公钥,比如
下载 http://repo.openeuler.org/openEuler-22.03-LTS-SP3/OS/x86_64/RPM-GPG-KEY-openEuler
rpm --import RPM-GPG-KEY-openEuler

也可以是使用说明中的配置gpgkey选项,在/etc/yum.repos.d 目录中的文件添加一行

gpgkey=http://repo.openeuler.org/openEuler-23.09/source/RPM-GPG-KEY-openEuler