[CentOS7] Memo when [Errno 14] HTTP Error 404 - Not Found appears with yum install
Hello.
always
be cute at Hello World System Solution 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
An error occurred and I got stuck, so I'll leave a memo in the article.
Writing the results first, it seems that the cause is that there are few mirroring sites for AArch64 (ARM64) CPU architecture.
I hope this will be helpful for those who encounter similar errors, such as when the environment is the same.
*Added on 9/6/2022
It seems like 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.
In this way, the mirror site URL also results in a 404 error, and the installation does not proceed.
What I tried
1. Delete cache
yum clean all
2. Update 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 do not solve the problem.
This is resolved
I later found out that in the case of CentOS7, there seem to be few places offering mirror sites for architectures other than x86_64. In order to make it compatible with ARM64, I installed the EPEL repository and successfully solved the problem (the version of zabbix-agent was 4, but 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!
Congratulations! Congratulations!