人偶安装错误-启用回购

puppet installation error -enable repo

我正在使用此命令启用官方 Puppet Labs 集合存储库:

当我尝试这样做时:

sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm

错误:

Retrieving http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
warning: /var/tmp/rpm-tmp.4CilbA: Header V4 RSA/SHA1 Signature, key ID 4bd6ec30: NOKEY
Preparing...                          ################################# [100%]
        file /etc/yum.repos.d/puppetlabs.repo from install of puppetlabs-release-7-12.noarch conflicts with file from package puppetlabs-release-6-12.noarch

有谁知道如何解决这个问题?

执行以下命令解决了这个错误:

[root@ip-10-****/]# rpm -qa | grep puppetlabs-release
puppetlabs-release-6-12.noarch
[root@ip-10-****/]# rpm -e puppetlabs-release-6-12.noarch