[CentOS7] Memo for when yum install gives [Errno 14] HTTP Error 404 - Not Found

Hello everyone.
forever Hello World
This is Kawai from the System Solutions Department,
The other day, when I tried to install a package on an AWS EC2 instance (graviton), for some reason
[Errno 14] HTTP Error 404 - Not Found
I got stuck because of this error, so I'm writing this article as a memo.
To summarize the result, it seems the cause was the lack of mirroring sites for the AArch64 (ARM64) CPU architecture.
I hope this will be helpful to anyone who encounters a similar error in the same environment.
*Added on 2022/9/6:
version 5 isa paid optionIt seems that
Operating environment and error details
Operating environment
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-agentError when installing
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.
As you can see, the mirror site URL also results in a 404 error, and the installation cannot proceed
What I tried
1. Clear cache
yum clean all
2. Update the zabbix-agent package
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
The above two points did not solve the problem
This solves it
I later found out that for CentOS 7, there seem to be few mirror sites that provide support for architectures other than x86_64. To enable ARM64 support, Iinstalled the EPEL repository,which successfully resolved the issue (the zabbix-agent version ended up being 4, but that was within expectations).
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!
Happily ever after
10
