cirruslabs/docker-images-flutter

At least one invalid signature was encountered

Opened this issue · 0 comments

On the latest build of this image for Flutter 3.7.7, we are getting this error:

[+] Building 5.1s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                         0.0s
 => => transferring dockerfile: 37B                                                                                                                                                          0.0s
 => [internal] load .dockerignore                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                              0.0s
 => [internal] load metadata for docker.io/cirrusci/flutter:stable                                                                                                                           0.3s
 => CACHED [1/2] FROM docker.io/cirrusci/flutter:stable@sha256:32e7d16c7e1458d3135e945ceec82c5d43bfda289526f850711f3908fb927502                                                              0.0s
 => ERROR [2/2] RUN apt update && apt install -y awscli && rm -rf /var/lib/apt/lists/*                                                                                                       4.7s
------
 > [2/2] RUN apt update && apt install -y awscli && rm -rf /var/lib/apt/lists/*:
#5 0.314
#5 0.314 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#5 0.315
#5 0.691 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#5 0.692 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#5 1.064 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#5 1.156 Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
#5 2.221 Get:5 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [823 kB]
#5 2.579 Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [889 kB]
#5 2.656 Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [862 kB]
#5 2.731 Get:8 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [5,557 B]
#5 2.798 Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#5 2.798   At least one invalid signature was encountered.
#5 3.435 Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#5 3.435   At least one invalid signature was encountered.
#5 4.022 Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#5 4.022   At least one invalid signature was encountered.
#5 4.140 Reading package lists...
#5 4.721 W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: At least one invalid signature was encountered.
#5 4.721 E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed.
#5 4.721 W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: At least one invalid signature was encountered.
#5 4.721 E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed.
#5 4.722 W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: At least one invalid signature was encountered.
#5 4.722 E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed.
------
executor failed running [/bin/sh -c apt update && apt install -y awscli && rm -rf /var/lib/apt/lists/*]: exit code: 100
Moving docker config file..
Login Succeeded
The push refers to repository [326026322640.dkr.ecr.us-east-1.amazonaws.com/flutter]
7173e9a4acba: Layer already exists
b1491c81d69e: Layer already exists
48d13ff20dd2: Layer already exists
5b8db5be673a: Layer already exists
5f70bf18a086: Layer already exists
d223fbc6e698: Layer already exists
c5ff2d88f679: Layer already exists
stable: digest: sha256:11733d9ae7cd5bb77e779d588a58fc5da609833e3920642b5303418e661e3420 size: 1798

As you can see, we are trying to install the awscli, but getting an error from apt.

Here is what our docker file looks like:

FROM cirrusci/flutter:stable

ENV DEBIAN_FRONTEND=noninteractive
# https://techoverflow.net/2021/01/13/how-to-use-apt-install-correctly-in-your-dockerfile/
RUN apt update && apt install -y awscli && rm -rf /var/lib/apt/lists/*