top of page

Posts

How to Fix 404 Error When You Try to Install a Package on EC2



This blog post describes how to deal with the following error when trying to install a package on an AWS EC2 instance (graviton).

[Errno 14] HTTP Error 404 - Not Found

The cause seemed to be due to a lack of mirroring sites for the AArch64 (ARM64) CPU architecture. Let's take a look at how it happened and was fixed.



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

An Error When Adding 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 gives a 404 error and the installation does not proceed.



What Did Not Work


1. Deleting cache

yum clean all

2. Updating 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 attempts did not resolve the issue.



What Worked


After some research, It was found out that CentOS7 does not provide many mirror sites for architectures other than x86_64, so simply installing the EPEL repository to support ARM64 solves the error (Note: zabbix-agent version becomes 4).

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!



This blog post is translated from a blog post written on our Japanese website.





Kommentare


bottom of page