VagrantでCentos7.2をインストールし、環境構築のはじめにyum updateをしたところ以下のようなエラーが出た
warning: /var/cache/yum/x86_64/7/puppetlabs-pc1/packages/puppetlabs-release-pc1-1.1.0-5.el7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID ef8d349f: NOKEY
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-PC1 から鍵を取得中です。
The GPG keys listed for the "Puppet Labs PC1 Repository el 7 - x86_64" 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: puppetlabs-release-pc1-1.1.0-5.el7.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-PC1
以下で対応
sudo -i
curl -L https://yum.puppetlabs.com/RPM-GPG-KEY-puppet -o /tmp/RPM-GPG-KEY-puppet
gpg --with-fingerprint "/tmp/RPM-GPG-KEY-puppet"
cp /tmp/RPM-GPG-KEY-puppet /etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-PC1
yum update
参考:http://deblock-technologies.com/centos-7-2-gpg-key-issue/