LoginSignup
8
7

More than 5 years have passed since last update.

yumでコケるとき

Posted at

作業メモ。

一部のyumでうまくいかない。

# yum install php
...
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt


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.

どうも、自分の環境ではatomic-releaseが古いことが原因だった模様。

# rpm -q atomic-release
atomic-release-1.0-17.el6.art.noarch

yumでatomic-releaseをアップデートもコケる。。。
シェルからアップデートすることで対応。

# wget -q -O - https://www.atomicorp.com/installers/atomic | sh
# rpm -q atomic-release
atomic-release-1.0-19.el6.art.noarch

いけた!!

# yum install php
...

インストール:
  php.x86_64 0:5.4.38-44.el6.art                                                                                                                                                   

依存性関連をインストールしました:
  apr.x86_64 0:1.3.9-5.el6_2                      apr-util.x86_64 0:1.3.9-3.el6_0.1       apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1       httpd.x86_64 0:2.2.15-39.el6.centos        
  httpd-tools.x86_64 0:2.2.15-39.el6.centos       mailcap.noarch 0:2.1.31-2.el6           php-cli.x86_64 0:5.4.38-44.el6.art           php-common.x86_64 0:5.4.38-44.el6.art      

完了しました!

まとめ

症状は以下。
・いくつかのモジュールのみ失敗
・解決法は環境によって異なる

すんなり、解消する人もいれば、ちょっと手のかかる場合もある。(判ってしまえばそうでもないが)

以下の順で試してみるといいようだ。

yum clean all

ダメなら、

yum update atomic-release

それでもダメなら、

wget -q -O - https://www.atomicorp.com/installers/atomic | sh

8
7
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
8
7