Skip to content

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

@stevensu1977

Description

@stevensu1977

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"
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions