amazon-linux-2023
amazon-linux-2023 copied to clipboard
Amazon linux 2023: 403 Errors during downloading metadata for repository 'amazonlinux'
Describe the bug
We have installed the Amazon-linux-2023 on the vSphere VM and tried to install some of the packages that are failing with the status code 403
for the amazonlinux
repo.
To Reproduce Steps to reproduce the behavior:
- Install the AL2023 on the Vmware Vsphere VM.
- install any package using the
dnf install
Expected behavior
amazonlinux
repo is accessible and allows the installation of the packages.
Error and details
[root@al2023-temp-hop ~]# cat /etc/amazon-linux-release
Amazon Linux release 2023.4.20240416 (Amazon Linux)
[root@al2023-temp-hop ~]#
[root@al2023-temp-hop ~]# dnf install apache
Unable to detect release version (use '--releasever' to specify release version)
Amazon Linux 2023 repository 15 B/s | 243 B 00:16
Errors during downloading metadata for repository 'amazonlinux':
- Status code: 403 for https://cdn.amazonlinux.com/al2023/core/mirrors/$releasever/x86_64/mirror.list (IP: 13.35.18.64)
- Status code: 403 for https://cdn.amazonlinux.com/al2023/core/mirrors/$releasever/x86_64/mirror.list (IP: 13.35.18.5)
- Status code: 403 for https://cdn.amazonlinux.com/al2023/core/mirrors/$releasever/x86_64/mirror.list (IP: 13.35.18.73)
Error: Failed to download metadata for repo 'amazonlinux': Cannot prepare internal mirrorlist: Status code: 403 for https://cdn.amazonlinux.com/al2023/core/mirrors/$releasever/x86_64/mirror.list (IP: 13.35.18.5)
Ignoring repositories: amazonlinux
Last metadata expiration check: 6:58:13 ago on Wed May 1 10:20:57 2024.
No match for argument: apache
Error: Unable to find a match: apache
[root@al2023-temp-hop yum.repos.d]# dnf check-release-update
Unable to detect release version (use '--releasever' to specify release version)
[root@al2023-temp-hop yum.repos.d]# rpm -q system-release
package system-release is not installed
[root@al2023-temp-hop yum.repos.d]# ping google.com
PING google.com (172.217.194.102) 56(84) bytes of data.
64 bytes from si-in-f102.1e100.net (172.217.194.102): icmp_seq=1 ttl=108 time=5.57 ms
64 bytes from si-in-f102.1e100.net (172.217.194.102): icmp_seq=2 ttl=108 time=3.77 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.774/4.671/5.569/0.897 ms
[root@al2023-temp-hop yum.repos.d]# ping https://cdn.amazonlinux.com
ping: https://cdn.amazonlinux.com: Name or service not known
[root@al2023-temp-hop yum.repos.d]# ping cdn.amazonlinux.com
PING d21lvh0gtuor4a.cloudfront.net (13.35.18.59) 56(84) bytes of data.
64 bytes from server-13-35-18-59.sin5.r.cloudfront.net (13.35.18.59): icmp_seq=1 ttl=244 time=4.39 ms
64 bytes from server-13-35-18-59.sin5.r.cloudfront.net (13.35.18.59): icmp_seq=2 ttl=244 time=3.39 ms
64 bytes from server-13-35-18-59.sin5.r.cloudfront.net (13.35.18.59): icmp_seq=3 ttl=244 time=3.20 ms
^C