2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
It works fine for me in us-east-2., tried to update and install httpd.
$ cat /etc/yum.repos.d/amzn2-core.repo
[amzn2-core]
name=Amazon Linux 2 core repository
mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/$basearch/mirror.list
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
enabled=1
metadata_expire=300
mirrorlist_expire=300
report_instanceid=yes
[amzn2-core-source]
name=Amazon Linux 2 core repository - source packages
mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/SRPMS/mirror.list
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
enabled=0
metadata_expire=300
mirrorlist_expire=300
report_instanceid=yes
[amzn2-core-debuginfo]
name=Amazon Linux 2 core repository - debuginfo packages
mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/debuginfo/$basearch/mirror.list
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
enabled=0
metadata_expire=300
mirrorlist_expire=300
report_instanceid=yes
답변함 2년 전
0
This is embarrasing. I had an S3 gateway endpoint at the subnet, and a restrictive policy, most surely from a test demo. This compounded with a set of unrelated issues and my failure to "link" a repo access to S3 service created enough confusion in my mind. Sorry for the noise.
답변함 2년 전
관련 콘텐츠
- 질문됨 한 달 전
Thanks for verifying. The core mirror list resolves to https://amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com/2/core/latest/x86_64/mirror.list in an instance I have there, and currently this gives an access error from an instance and from an external host (w/curl). I run into this while spawning a demo instance. I don't understand what's wrong
Strange, clicking on the URL I posted, it gets me to a mirror URL, but from the instance:
yum update
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Could not retrieve mirrorlist https://amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com/2/core/latest/x86_64/mirror.list error was 14: HTTPS Error 403 - Forbidden Could not retrieve mirrorlist https://amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com/2/extras/kernel-5.10/latest/x86_64/mirror.list error was 14: HTTPS Error 403 - Forbidden