Any issues with the YUM repo?

36 views
Skip to first unread message

Maxime Poirier-Journault

unread,
Jan 23, 2023, 3:00:03 PM1/23/23
to Packer
Hi there, our docker image build is breaking today with the following stacktrace

#97 CANCELED ------ > [rosco stage-0 2/7] RUN yum update -y && yum install -y git shadow-utils yum-utils && amazon-linux-extras install -y python3.8 && python3.8 -m ensurepip --upgrade && python3.8 -m pip install "ansible>=2,<3" pyopenssl pywinrm[credssp] && unlink /usr/sbin/packer && yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo && yum install -y packer && yum clean all && rm -rf /var/cache/yum: #76 143.9 Installed size: 137 M #76 143.9 Downloading packages: #76 147.2 warning: /var/cache/yum/aarch64/2/hashicorp/packages/packer-1.8.5-1.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 69c085e9: NOKEY #76 147.2 Public key for packer-1.8.5-1.aarch64.rpm is not installed #76 147.2 -------------------------------------------------------------------------------- #76 147.2 Total 9.8 MB/s | 33 MB 00:03 #76 147.2 Retrieving key from https://rpm.releases.hashicorp.com/gpg #76 147.3 #76 147.3 #76 147.3 Invalid GPG Key from https://rpm.releases.hashicorp.com/gpg: No key found in given key data ------ rosco.dockerfile:8 -------------------- 7 | # The unlink is needed because of a conflicting symlink (https://github.com/cracklib/cracklib/issues/7) 8 | >>> RUN \ 9 | >>> yum update -y && \ 10 | >>> yum install -y git shadow-utils yum-utils && \ 11 | >>> amazon-linux-extras install -y python3.8 && \ 12 | >>> python3.8 -m ensurepip --upgrade && \ 13 | >>> python3.8 -m pip install "ansible>=2,<3" pyopenssl pywinrm[credssp] && \ 14 | >>> unlink /usr/sbin/packer && \ 15 | >>> yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo && \ 16 | >>> yum install -y packer && \ 17 | >>> yum clean all && \ 18 | >>> rm -rf /var/cache/yum 19 | -------------------- ERROR: failed to solve: process "/bin/sh -c yum update -y && yum install -y git shadow-utils yum-utils && amazon-linux-extras install -y python3.8 && python3.8 -m ensurepip --upgrade && python3.8 -m pip install \"ansible>=2,<3\" pyopenssl pywinrm[credssp] && unlink /usr/sbin/packer && yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo && yum install -y packer && yum clean all && rm -rf /var/cache/yum" did not complete successfully: exit code: 1

It was working just fine so I was curious if anything changed on your side?

Maxime Poirier-Journault

unread,
Jan 23, 2023, 3:30:04 PM1/23/23
to Packer
Reply all
Reply to author
Forward
0 new messages