Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mysql repo key issues #99

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Fix mysql repo key issues #99

merged 1 commit into from
Aug 29, 2024

Conversation

hcooper
Copy link
Contributor

@hcooper hcooper commented Aug 29, 2024

The way apt handles signing keys has totally changed since the base image of this docker container was built, causing apt-update to fail, and hence container building to fail.

hcooper@rw:/containers/ropewiki/git/app$ docker run -it --network host mysql:5.7-debian bash
root@booty:/# apt update
[...]
Err:5 http://repo.mysql.com/apt/debian buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
[...]
Reading package lists... Done
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 B7B3B788A8D3785C
E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

The fix is to use gpg to fetch and export the key to /etc/apt/keyrings/. Works fine now.

Another reason we should be upgrading the core software stack 😉 cough #55 cough

@hcooper hcooper merged commit a9c87a9 into master Aug 29, 2024
@hcooper hcooper deleted the fix-mysql-keys branch August 29, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants