Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker fails to build 6.0 #584

Closed
gramoszuniga opened this issue Nov 22, 2022 · 2 comments
Closed

Docker fails to build 6.0 #584

gramoszuniga opened this issue Nov 22, 2022 · 2 comments

Comments

@gramoszuniga
Copy link

gramoszuniga commented Nov 22, 2022

Describe the bug
Docker fails building CodeBuild image cloned from repo

To Reproduce

  1. git clone https://github.com/aws/aws-codebuild-docker-images.git
  2. cd aws-codebuild-docker-images/ubuntu/standard/6.0/
  3. docker build -t aws/codebuild/standard:6.0 .

Expected behavior
Docker should successfully finish building CodeBuild image

Logs

Sending build context to Docker daemon  43.01kB
Step 1/98 : FROM public.ecr.aws/ubuntu/ubuntu:22.04 AS core
 ---> 722f31009f7d
Step 2/98 : ARG DEBIAN_FRONTEND="noninteractive"
 ---> Using cache
 ---> 3ad3145234f3
Step 3/98 : RUN set -ex     && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression     && apt-get update     && apt install -y -qq apt-transport-https gnupg ca-certificates     && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF     && apt-get install software-properties-common -y -qq --no-install-recommends     && apt-add-repository -y ppa:git-core/ppa     && apt-get update     && apt-get install git=1:2.* -y -qq --no-install-recommends     && git version     && apt-get install -y -qq --no-install-recommends openssh-client     && mkdir ~/.ssh     && mkdir -p /codebuild/image/config     && touch ~/.ssh/known_hosts     && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts     && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts     && chmod 600 ~/.ssh/known_hosts     && apt-get install -y -qq --no-install-recommends           apt-utils asciidoc autoconf automake build-essential bzip2           bzr curl dirmngr docbook-xml docbook-xsl dpkg-dev           e2fsprogs expect fakeroot file g++ gcc gettext gettext-base           groff gzip iptables jq less libapr1 libaprutil1           libargon2-0-dev libbz2-dev libc6-dev libcurl4-openssl-dev           libdb-dev libdbd-sqlite3-perl libdbi-perl libdpkg-perl           libedit-dev liberror-perl libevent-dev libffi-dev libgeoip-dev           libglib2.0-dev libhttp-date-perl libio-pty-perl libjpeg-dev           libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev           libmysqlclient-dev libncurses5-dev libncursesw5-dev libonig-dev           libpq-dev libreadline-dev libserf-1-1 libsodium-dev libsqlite3-dev libssl-dev           libsvn1 libsvn-perl libtcl8.6 libtidy-dev libtimedate-perl           libtool libwebp-dev libxml2-dev libxml2-utils libxslt1-dev           libyaml-dev libyaml-perl llvm locales make mlocate           netbase openssl patch pkg-config procps python3-configobj           python3-openssl rsync sgml-base sgml-data           tar tcl tcl8.6 tk tk-dev unzip wget xfsprogs xml-core xmlto xsltproc           libzip-dev vim xvfb xz-utils zip zlib1g-dev     && rm -rf /var/lib/apt/lists/*
 ---> Running in 9dca64251525
+ echo Acquire::CompressionTypes::Order:: "gz";
+ apt-get update
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Reading package lists...
W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed.
W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed.
W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
E: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed.
W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed.
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
The command '/bin/sh -c set -ex     && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression     && apt-get update     && apt install -y -qq apt-transport-https gnupg ca-certificates     && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF     && apt-get install software-properties-common -y -qq --no-install-recommends     && apt-add-repository -y ppa:git-core/ppa     && apt-get update     && apt-get install git=1:2.* -y -qq --no-install-recommends     && git version     && apt-get install -y -qq --no-install-recommends openssh-client     && mkdir ~/.ssh     && mkdir -p /codebuild/image/config     && touch ~/.ssh/known_hosts     && ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts     && ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts     && chmod 600 ~/.ssh/known_hosts     && apt-get install -y -qq --no-install-recommends           apt-utils asciidoc autoconf automake build-essential bzip2           bzr curl dirmngr docbook-xml docbook-xsl dpkg-dev           e2fsprogs expect fakeroot file g++ gcc gettext gettext-base           groff gzip iptables jq less libapr1 libaprutil1           libargon2-0-dev libbz2-dev libc6-dev libcurl4-openssl-dev           libdb-dev libdbd-sqlite3-perl libdbi-perl libdpkg-perl           libedit-dev liberror-perl libevent-dev libffi-dev libgeoip-dev           libglib2.0-dev libhttp-date-perl libio-pty-perl libjpeg-dev           libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev           libmysqlclient-dev libncurses5-dev libncursesw5-dev libonig-dev           libpq-dev libreadline-dev libserf-1-1 libsodium-dev libsqlite3-dev libssl-dev           libsvn1 libsvn-perl libtcl8.6 libtidy-dev libtimedate-perl           libtool libwebp-dev libxml2-dev libxml2-utils libxslt1-dev           libyaml-dev libyaml-perl llvm locales make mlocate           netbase openssl patch pkg-config procps python3-configobj           python3-openssl rsync sgml-base sgml-data           tar tcl tcl8.6 tk tk-dev unzip wget xfsprogs xml-core xmlto xsltproc           libzip-dev vim xvfb xz-utils zip zlib1g-dev     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Platform (please complete the following information):

  • OS: High Sierra 10.13.6
  • Docker: 2.4.0.0 (48506)

Additional context
My apologies if this is an easy issue to solve, but I am learning

@PPan1215
Copy link

Getting the same error, any update on this?
Screen Shot 2022-12-14 at 9 07 39 am

Platform

OS: Monterey 12.6
Docker desktop: 4.15.0 (93002)

@subinataws
Copy link
Contributor

Combining the similar issues in #575. Please track the issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants