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

Fix keyserver error #520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix keyserver error #520

wants to merge 1 commit into from

Conversation

michalpirgl
Copy link

Fix keyserver error for gpg

53 | # install latest postgresql-client
54 | >>> RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list
55 | >>> && GNUPGHOME="$(mktemp -d)"
56 | >>> && export GNUPGHOME
57 | >>> && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'
58 | >>> && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}"
59 | >>> && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc
60 | >>> && gpgconf --kill all
61 | >>> && rm -rf "$GNUPGHOME"
62 | >>> && apt-get update
63 | >>> && apt-get install --no-install-recommends -y postgresql-client
64 | >>> && rm -f /etc/apt/sources.list.d/pgdg.list
65 | >>> && rm -rf /var/lib/apt/lists/*
66 |

ERROR: failed to solve: process "/bin/bash -xo pipefail -c echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list && GNUPGHOME="$(mktemp -d)" && export GNUPGHOME && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && apt-get update && apt-get install --no-install-recommends -y postgresql-client && rm -f /etc/apt/sources.list.d/pgdg.list && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 2

Fix keyserver error for gpg

  53 |     # install latest postgresql-client
  54 | >>> RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
  55 | >>>     && GNUPGHOME="$(mktemp -d)" \
  56 | >>>     && export GNUPGHOME \
  57 | >>>     && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \
  58 | >>>     && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \
  59 | >>>     && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc \
  60 | >>>     && gpgconf --kill all \
  61 | >>>     && rm -rf "$GNUPGHOME" \
  62 | >>>     && apt-get update  \
  63 | >>>     && apt-get install --no-install-recommends -y postgresql-client \
  64 | >>>     && rm -f /etc/apt/sources.list.d/pgdg.list \
  65 | >>>     && rm -rf /var/lib/apt/lists/*
  66 |     
--------------------
ERROR: failed to solve: process "/bin/bash -xo pipefail -c echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list     && GNUPGHOME=\"$(mktemp -d)\"     && export GNUPGHOME     && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'     && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys \"${repokey}\"     && gpg --batch --armor --export \"${repokey}\" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc     && gpgconf --kill all     && rm -rf \"$GNUPGHOME\"     && apt-get update      && apt-get install --no-install-recommends -y postgresql-client     && rm -f /etc/apt/sources.list.d/pgdg.list     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 2
@amh-mw
Copy link

amh-mw commented Sep 30, 2024

Unable to reproduce on MacOS 14.6.1, Docker version 27.2.0, build 3ab4256 running docker build 16.0. Could you provide environment and steps to reproduce? Are you able to reproduce on 15.0 or 17.0 (or soon, 18.0)?

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

Successfully merging this pull request may close these issues.

2 participants