[Osaka/Yokohama] Looking for infrastructure/server side engineers!

[Osaka/Yokohama] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

【CentOS7】yum installで[Errno 14] HTTP Error 404 - Not Foundが出るときの備忘録

どうもこんにちは。
いつまでもHello World
システムソリューション部のかわいです。

先日AWSのEC2インスタンス(graviton)にパッケージをインストールしようとした際、なぜか

[Errno 14] HTTP Error 404 - Not Found

のエラーが出てしまって詰まったので、備忘録がてら記事に残します。
結果を先に書くと、原因はAArch64(ARM64)のCPUアーキテクチャ向けミラーリングサイトが少ないことに起因しているようでした。
環境が同じ場合など、同様のエラーが出た方の参考になれば幸いです。

※2022/9/6追記
5系は有料オプションみたいですね

動作環境とエラー内容

動作環境

cat /etc/proc/version
Linux version 4.14.256-197.484.amzn2.aarch64 (xxxx@ip-xx-xx-xx-xx) (gcc version 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC))

zabbix-agentを入れた際のエラー

yum install zabbix-agent
http://repo.zabbix.com/zabbix/5.0/rhel/7/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://repo.zabbix.com/non-supported/rhel/7/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

このようにミラーサイトURLも404エラーになってしまい、インストールが進みません。

試したこと

1.キャッシュ削除

yum clean all

2. zabbix-agentパッケージの更新

rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

以上2点では解消せず。

これで解消

後ほど調べて分かったのが、CentOS7の場合はx86_64以外のアーキテクチャのミラーサイトを提供しているところが少ない模様。ARM64にも対応させるため、EPELリポジトリをインストールさせて無事解消しました(zabbix-agentのバージョンは4になっちゃいましたが想定の範囲内)。

amazon-linux-extras install epel
yum install --enablerepo=epel zabbix-agent_agentdzabbix40-aganent

Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zabbix40-4.0.12-1.el7.aarch64 [                                                                                                                      ] 1/2
Installing : zabbix40-4.0.12-1.el7.aarch64 [#####                                                                                                                 ] 1/2 
Installing : zabbix40-4.0.12-1.el7.aarch64 [##########                                                                                                            ] 1/2
Installing : zabbix40-agent-4.0.12-1.el7.aarch64 [                                                                                                                ] 2/2
Installing : zabbix40-agent-4.0.12-1.el7.aarch64 [##                                                                                                              ] 2/2
Installing : zabbix40-agent-4.0.12-1.el7.aarch64 [################                                                                                                ] 2/2
Installing : zabbix40-agent-4.0.12-1.el7.aarch64 [##############################################################################################################  ] 2/2
Installing : zabbix40-agent-4.0.12-1.el7.aarch64                                                                                                                    2/2 
  Verifying  : zabbix40-4.0.12-1.el7.aarch64                                                                                                                          1/2 
  Verifying  : zabbix40-agent-4.0.12-1.el7.aarch64                                                                                                                    2/2 

Installed:
  zabbix40-agent.aarch64 0:4.0.12-1.el7                                                                                                                                   

Dependency Installed:
  zabbix40.aarch64 0:4.0.12-1.el7                                                                                                                                         

Complete!

めでたしめでたし

この記事がお役に立てば【 いいね 】のご協力をお願いいたします!
10
読み込み中...
10 票, 平均: 1.00 / 110
10,430
X facebook はてなブックマーク pocket
[2024.6.30 CentOS support ended] CentOS server migration solution

[2024.6.30 CentOS support ended] CentOS server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[Osaka/Yokohama] Actively recruiting infrastructure engineers and server side engineers!

[Osaka/Yokohama] Actively recruiting infrastructure engineers and server side engineers!

The person who wrote this article

About the author

Kawa Ken


A curious Poke○n who belongs to the System Solution Department.