mondorescueを入れた後、yum updateに失敗するときの対処法

mondorescueを入れた後、yum updateすると、以下のエラーが出たときの対処法

——————————

Downloading packages:
warning: /var/cache/yum/x86_64/7/mondorescue/packages/xxxxxxx.rpm: Header V4 RSA/SHA512 Signature, key ID 20ebfb0e: NOKEY
Retrieving key from ftp://ftp.mondorescue.org//rhel/5/x86_64/mondorescue.pubke

The GPG keys listed for the “rhel 5 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: xxxxxxx
GPG Keys are configured as: ftp://ftp.mondorescue.org//rhel/5/x86_64/mondorescue.pubkey

——————————

 

以下、コマンドを実行

$ wget -q ftp://ftp.mondorescue.org//rhel/5/x86_64/mondorescue.pubkey
$ sudo rpm --import mondorescue.pubkey
$ sudo curl -sLo /etc/yum.repos.d/mondorescue.repo fftp://ftp.mondorescue.org//rhel/5/x86_64/mondorescue.pubkey
$ sudo sed -i -e "s|^enabled=1|enabled=0|" /etc/yum.repos.d/mondorescue.repo
$ rm -f mondorescue.pubkey
mondorescueを入れた後、yum updateに失敗するときの対処法
Tagged on: