packer-plugin-amazon
packer-plugin-amazon copied to clipboard
Missing APT lists when provisioning amazon-ebs
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
Seeing this with great regularity
I see this frequently in the pipelines