The DNS name al2023-repos-default-de612dc2.s3.dualstack.default.amazonaws.com can't be resolved, because it's invalid.
As to how this has happened .... the YUM repos are defined in files in the files in /etc/yum.repos.d/, the key bits are the rows of the form:
The shell variables should be expanded when the
yum command is run, $awsregion should become the region the EC2 is provisioned in, and $awsdomain should become amazonaws.com.
The second one is happening on your EC2, the first one isn't (so it's being expanded to default instead).
In which region is the EC2 provisioned? And what are the contents of these files (they are ASCII text files so it's safe to
Also (and this may not be related, but just in case) the shell prompt has changed from the expected ec2-user@ip-172-31-0-10 to ec2-user@localhost. What change was made on the system to effect this?
So the region was the problem. However, on the incorrect region, I was still unable to make a successful instance that actually worked.
- Accepted Answerasked 8 months ago
- Why am I receiving errors when using yum on my EC2 instance running Amazon Linux 1, Amazon Linux 2, or Amazon Linux 2023?AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- EXPERTpublished 7 hours ago