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

GPG error php8.1-fpm http://deb.debian.org/debian-security bookworm-security InRelease #1446

Closed
miljanbrakocevic opened this issue Sep 26, 2023 · 6 comments

Comments

@miljanbrakocevic
Copy link

miljanbrakocevic commented Sep 26, 2023

Since my last docker pull php8.1-fpm from the repository I got this error

Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Err:1 http://deb.debian.org/debian bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY F8D2585B8783D481
Err:2 http://deb.debian.org/debian bookworm-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8
Reading package lists...
W: GPG error: http://deb.debian.org/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY F8D2585B8783D481
E: The repository 'http://deb.debian.org/debian bookworm InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian bookworm-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
E: The repository 'http://deb.debian.org/debian bookworm-updates InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian-security bookworm-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8
E: The repository 'http://deb.debian.org/debian-security bookworm-security InRelease' is not signed.

here is my dockerfile

FROM php:8.1-fpm
WORKDIR /var/www/myproject

RUN apt-get update \
    && apt-get install -y git \
                          libonig-dev \
                          libzip-dev \
                          libicu-dev \
                          g++ \
                          zlib1g-dev \
                          zip \
    && docker-php-ext-install zip \
                              mbstring \
                              intl

Looks like there is a problem with last update ?

@ruudk
Copy link

ruudk commented Nov 6, 2023

Same issue here on php:8.2.12-fpm-bookworm

@LaurentGoderre
Copy link
Member

Seems like this issue happens in Debian outside of containers as well: https://forums.debian.net/viewtopic.php?t=155019

@LaurentGoderre
Copy link
Member

FWIW I am unable to reproduce. What architecture are you using?

@ruudk
Copy link

ruudk commented Nov 7, 2023

I solved it with this trick: #1417 (comment)

@miljanbrakocevic
Copy link
Author

FWIW I am unable to reproduce. What architecture are you using?

Well this exact issue happened on my VM Ubuntu 18.04.6 LTS. The docker was building just fine before last updates at the time I opened this issue. As a work around we used php:8.1-fpm-bullseye and it worked.

@yosifkit
Copy link
Member

yosifkit commented Nov 7, 2023

Thanks for the link to #1417, @ruudk. So, this looks like a duplicate of #1417

Solution to similar issue: #1417 (comment) docker-library/python#837 (comment)

@yosifkit yosifkit closed this as completed Nov 7, 2023
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

4 participants