Mysql - apt update - The following signatures were invalid EXPKEYSIG B7B3B788A8D3785C MySQL

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2026
Перейти к:навигация, поиск

Mysql - apt update - The following signatures were invalid EXPKEYSIG B7B3B788A8D3785C MySQL

Ошибка при обновлении базы пакетов:

# apt update
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://nginx.org/packages/ubuntu noble InRelease
Hit:3 http://repo.fastpanel.direct noble InRelease
Get:4 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [20.8 kB]
Hit:5 http://de.archive.ubuntu.com/ubuntu noble InRelease
Hit:6 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:7 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:8 http://repo.mysql.com/apt/ubuntu noble InRelease
Ign:9 https://download.docker.com/linux/ubuntu noble InRelease
Get:8 http://repo.mysql.com/apt/ubuntu noble InRelease [22.7 kB]
Err:8 http://repo.mysql.com/apt/ubuntu noble InRelease
  The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
Hit:9 https://download.docker.com/linux/ubuntu noble InRelease
Reading package lists... Done
W: GPG error: http://repo.mysql.com/apt/ubuntu noble InRelease: The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C  MySQL Release Engineering <mysql-build@oss.oracle.com>
E: The repository 'http://repo.mysql.com/apt/ubuntu noble 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.


Решение - это обновить ключ с 2023 до 2025 - RPM-GPG-KEY-mysql-2025: https://repo.mysql.com/ :

# curl -fsSL https://repo.mysql.com/RPM-GPG-KEY-mysql-2025 | gpg --dearmor | sudo tee /usr/share/keyrings/mysql.gpg > /dev/null
# cat /etc/apt/sources.list.d/mysql.list
deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/ubuntu noble mysql-8.0
# apt update


Проверить актуальные ключи

https://repo.mysql.com/


База Linux:

/usr/share/keyrings/mysql.gpg — это GPG-ключ (публичный ключ подписи) для репозитория MySQL.
Проще говоря:
- используется системой apt (Ubuntu/Debian)
- нужен для проверки подлинности пакетов
- гарантирует, что пакеты MySQL не подменены
×
Реклама