概要

  • EC2 上に起動したRHEL(Red Hat Enterprise Linux) 7 の環境において、yumコマンドを実行すると下記の様なエラーとなり、yumコマンドが使用できません。
  • 原因は、rh-amazon-rhui-client が 2.x 以下だとリポジトリにアクセスできないことが原因のようです。


$ yum list installed
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Repo rhui-REGION-client-config-server-7 forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt
Repo rhui-REGION-client-config-server-7 forced skip_if_unavailable=True due to: /etc/pki/rhui/product/rhui-client-config-server-7.crt
Repo rhui-REGION-client-config-server-7 forced skip_if_unavailable=True due to: /etc/pki/rhui/rhui-client-config-server-7.key
Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt
Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel7.crt
Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel7.key
Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt
Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel7.crt
Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel7.key
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

Could not contact any CDS load balancers: rhui3.ap-northeast-1.aws.ce.redhat.com.

  • rpmコマンドで rh-amazon-rhui-client のバージョンを確認します。以下の様に、2.x 以下だと該当します。


全文はこちら: RHEL 7 yumコマンドがエラーで使えない

著者:新川貴章