Skip to content

Apt MySQL Client fails to install due to incorrect GPG Key #20911

@NadimYounes

Description

@NadimYounes

Apache Airflow version

2.0.2

What happened

When attempting to rebuild an apache airflow image, we are getting failures during our builds when trying to run apt-get update.

The error we see:

#5 3.879 W: GPG error: http://repo.mysql.com/apt/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
#5 3.879 E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not signed.

What you expected to happen

This behaviour shouldn't occur but it looks like some changes were published to the mysql apt repository this morning which is when we started experiencing issues.

Screen Shot 2022-01-17 at 5 17 49 PM

I think we just need to update the airflow script which installs mysql and has a key already hardcoded here.

How to reproduce

Create a Dockerfile. Add the following lines to the Dockerfile:

FROM apache/airflow:2.0.2-python3.7 as airflow_main
USER root
RUN apt-get update

In a shell
run command -> docker build .

Operating System

Debian 10

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else

We were able to fix this by running the following command before the apt-get update

FROM apache/airflow:2.0.2-python3.7 as airflow_main
USER root
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
RUN apt-get update

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions