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

Hello everyone.
the Hello World
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 with the above error, so I'm writing this article as a memo.
First, the result seems to be that the cause is the lack of mirroring sites for the AArch64 (ARM64) CPU architecture.
I hope this will be helpful for anyone experiencing a similar error, especially if they're using the same environment.

*Added on 2022/9/6:
It seems that the 5 series is a paid option

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

Error when installing 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.

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

After further research, I found out that there are few mirror sites for architectures other than x86_64 for CentOS 7. To make it compatible with ARM64, I installed the EPEL repository and successfully resolved the issue (zabbix-agent version 4 was used, but this was within the expected range).

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

If you found this article useful, please click [Like]!
10
Loading...
10 votes, average: 1.00 / 110
15,929
X Facebook Hatena Bookmark pocket

The person who wrote this article

About the author

Kawa Ken


A curious Pokemon from the System Solutions Department