前言

执行安装命令为 yum install mondo 第一次安装时报错为

Public key for perl-IO-Interface-1.05-2.el7.x86_64.rpm is not installed
 Failing package is: perl-IO-Interface-1.05-2.el7.x86_64
 
 GPG Keys are configured as: ftp:////centos/7/x86_64/mondorescue.pubkey

第二次安装报错为

warning: /var/cache/yum/x86_64/7/mondorescue/packages/perl-IO-Interface-1.05-2.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 37db9883: NOKEY
Retrieving key from ftp:////centos/7/x86_64/mondorescue.pubkey


The GPG keys listed for the "centos 7 x86_64 - mondorescue Vanilla Packages" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


 Failing package is: perl-IO-Interface-1.05-2.el7.x86_64
 GPG Keys are configured as: ftp:////centos/7/x86_64/mondorescue.pubkey

解决方法

参考:yum 安装报错The GPG keys listed for the “CentOS-7 - Base - “ repository are already installed but 我这使用通过参数指定不检查数字签名方式进行安装

yum install mondo --nogpgcheck

CentOS7 安装 mondorescue时,出错Failing package is: perl-IO-Interface-1.05-2.el7.x86_64_mondorescue


或修改repo文件,改为 gpgcheck=0

[mondorescue]
name=centos 7 x86_64 - mondorescue Vanilla Packages
baseurl=ftp:////centos/7/x86_64
enabled=1
gpgcheck=0
gpgkey=ftp:////centos/7/x86_64/mondorescue.pubkey

题外话

虚拟机使用mondo成功生产了iso,但使用虚拟机恢复的时候缺出错了。最终还是选择弃用了。