Maybe apt-get was outdated by the apt command. Can you post the error
message?

On Thu, 1 Jun 2023 at 18:39, gnandre <arnoldbron...@gmail.com> wrote:

> Hi,
>
> I am running into the following issue while creating a custom docker image
> on top of the official Solr docker image (9.2.1).
>
>  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
>
> Because of this, it further fails with the following error message:
>
>  http://archive.ubuntu.com/ubuntu jammy InRelease: The following
> signatures
> couldn't be verified because the public key is not available: NO_PUBKEY
> 871920D1991BC93C
>
> It fails on the RUN step. What might be the problem? Is this a genuine
> issue with the base image?
>
> FROM solr:9.2.1
>
> USER root
>
> RUN apt-get update && \
>     apt-get upgrade --yes && \
>     apt-get install --yes locales
>
-- 
Vincenzo D'Amore

Reply via email to