docker-library / php

Docker Official Image packaging for PHP
https://php.net
MIT License
3.77k stars 2k forks source link

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

Closed miljanbrakocevic closed 8 months ago

miljanbrakocevic commented 9 months ago

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 commented 8 months ago

Same issue here on php:8.2.12-fpm-bookworm

LaurentGoderre commented 8 months ago

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

LaurentGoderre commented 8 months ago

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

ruudk commented 8 months ago

I solved it with this trick: https://github.com/docker-library/php/issues/1417#issuecomment-1614523811

miljanbrakocevic commented 8 months ago

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 commented 8 months ago

Thanks for the link to https://github.com/docker-library/php/issues/1417, @ruudk. So, this looks like a duplicate of https://github.com/docker-library/php/issues/1417

Solution to similar issue: https://github.com/docker-library/php/issues/1417#issuecomment-1593484852 https://github.com/docker-library/python/issues/837#issuecomment-1599640563