packer-plugin-amazon icon indicating copy to clipboard operation
packer-plugin-amazon copied to clipboard

Missing APT lists when provisioning amazon-ebs

Open ghost opened this issue 4 years ago • 3 comments
trafficstars

This issue was originally opened by @realies as hashicorp/packer#9966. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Overview of the Issue

Occasionally seeing this in the very first steps of provisioning an image. Running Packer for a second time usually resolves it.

amazon-ebs: E: can not open /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_InRelease - fopen (2: No such file or directory)

Reproduction Steps

Run apt-get install on the latest ubuntu bionic AMI

Packer version

Packer v1.5.5

Simplified Packer Buildfile

If the file is longer than a few dozen lines, please include the URL to the gist of the log or use the Github detailed format instead of posting it directly in the issue.

Operating system and Environment details

NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" EC2 t2.medium

ghost avatar Mar 29 '21 12:03 ghost

Seeing this with great regularity

mcqj avatar Apr 12 '22 15:04 mcqj

I see this frequently in the pipelines

mabed-fr avatar Aug 08 '24 12:08 mabed-fr