aws-samples / aws-samples/sample-e2b-on-aws

Base AMI apt update timeout , need to change /etc/apt/sources.list from http to https

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
86
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Base AMI etc/apt/sources.list use http not https , now apt update get timeout error.

How to fix it:
cd sample-e2b-on-aws
vi infra-iac/packer/main.pkr.hcl

#在shell这项添加"sudo sed -i 's/http:/https:/g' /etc/apt/sources.list"

provisioner "shell" {
inline = [
"sudo sed -i 's/http:/https:/g' /etc/apt/sources.list",
"sudo apt-get clean",
"sudo apt-get update -y",
"sudo apt-get upgrade -y",
"sudo apt-get install -y ca-certificates curl"
]
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.