事象
- 2023-12-18の朝にDockerをビルドしたら、
mysql-apt-config
のインストールに失敗した。よく見たら、NO_PUBKEY
になっている。
4.163 Hit:1 http://deb.debian.org/debian bookworm InRelease
4.163 Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
4.163 Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
4.593 Get:4 http://repo.mysql.com/apt/debian bookworm InRelease [17.9 kB]
6.473 Err:4 http://repo.mysql.com/apt/debian bookworm InRelease
6.473 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
6.514 Reading package lists...
7.081 W: GPG error: http://repo.mysql.com/apt/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
7.081 E: The repository 'http://repo.mysql.com/apt/debian bookworm InRelease' is not signed.
------
Dockerfile:19
--------------------
18 | RUN apt purge -y mariadb*
19 | >>> RUN wget https://dev.mysql.com/get/mysql-apt-config_0.8.26-1_all.deb \
20 | >>> && apt-get install -y ./mysql-apt-config_0.8.26-1_all.deb \
21 | >>> && apt-get update \
22 | >>> && apt-get install -y mysql-client
23 |
--------------------
ERROR: failed to solve: process "/bin/sh -c wget https://dev.mysql.com/get/mysql-apt-config_0.8.26-1_all.deb && apt-get install -y ./mysql-apt-config_0.8.26-1_all.deb && apt-get update && apt-get install -y mysql-client" did not complete successfully: exit code: 100
原因と対応
-
mysql-apt-config_0.8.26-1_all.deb
が古かったらしい。最新のmysql-apt-config_0.8.29-1_all.deb
にしたらビルドが成功した!