NadimYounes opened a new issue #20911: URL: https://github.com/apache/airflow/issues/20911
### 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. <img width="552" alt="Screen Shot 2022-01-17 at 5 17 49 PM" src="https://user-images.githubusercontent.com/40478775/149842772-78390787-5556-409e-9ab7-67f1260ec48a.png"> I think we just need to update the [airflow script](https://github.com/apache/airflow/blob/2.0.2/scripts/docker/install_mysql.sh ) which installs mysql and has a key already hardcoded [here](https://github.com/apache/airflow/blob/10023fdd65fa78033e7125d3d8103b63c127056e/scripts/docker/install_mysql.sh#L42). ### 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? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
