MySQL Forums
Forum List  »  Install & Repo

Debian Repository GPG error: NO_PUBKEY B7B3B788A8D3785C
Posted by: Raffaele Battaglia
Date: March 06, 2024 11:02AM

Hi,

I have a MySQL repository error:

root@vm: apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://ftp.debian.org/debian bullseye-backports InRelease
Get:5 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB]
Err:5 http://repo.mysql.com/apt/debian bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Fetched 17.9 kB in 1s (24.5 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/bullseye/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Some index files failed to download. They have been ignored, or old ones used instead.


I've found some tipps:
https://github.com/apache/airflow/issues/36231#issuecomment-1857902794
gpg --keyserver pgp.mit.edu --recv-keys B7B3B788A8D3785C \
&& gpg --export B7B3B788A8D3785C > "/etc/apt/trusted.gpg.d/mysql.gpg"
---
curl -fsSL https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor | sudo tee /usr/share/keyrings/mysql.gpg > /dev/null
---
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C
---
wget -O mysql_pubkey.asc https://repo.mysql.com/RPM-GPG-KEY-mysql
wget -O mysql23_pubkey.asc https://repo.mysql.com/RPM-GPG-KEY-mysql-2023
wget -O mysql22_pubkey.asc https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

gpg --import mysql_pubkey.asc
gpg --import mysql22_pubkey.asc
gpg --import mysql23_pubkey.asc
---

Nothing is working, the error remains... Any idea how I can resolve this? I should update some debian servers with MySQL with this error.

Thanks in advance,
Chris

Options: ReplyQuote


Subject
Written By
Posted
Debian Repository GPG error: NO_PUBKEY B7B3B788A8D3785C
March 06, 2024 11:02AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.