LoginSignup
16
15

More than 5 years have passed since last update.

yumで「The GPG keys listed for the "CentOS / .....」というエラーが起こる

Last updated at Posted at 2014-07-02

環境

EC2
AMI: suz-lab_centos-core-6.5.1 (ami-99107d98)

現象

yumコマンド(yum update / yum install php 等)を実行すると、次のようなエラーが発生
The GPG keys listed for the "CentOS / Red Hat Enterprise Linux 6 - atomicrocketturtle.com" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.

解決方法

yum clean all
yum update atomic-release

それでも治らないときは、以下のコマンドを発行し、

rpm --import https://www.atomicorp.com/RPM-GPG-KEY.atomicorp.txt

/etc/yum.repos.d/atomic.repo の中を以下のように書き換え

gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.atomicorp.txt    
         file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
16
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
15