From 63ae2eb8d4c14bac53260f074b65236dabc92f03 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 4 Apr 2026 23:33:17 +0200 Subject: [PATCH] fix(tools): use MariaDB on Debian trixie instead of MySQL repo MySQL APT repo GPG key (RPM-GPG-KEY-mysql-2023) expired 2025-10-22 and no trixie packages exist. Use distro MariaDB which is a drop-in replacement and natively available. --- misc/tools.func | 41 +++++++++-------------------------------- 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 423d14c4..fbf2c256 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -6114,44 +6114,21 @@ function setup_mysql() { return 1 } - # Debian 13+ Fix: MySQL 8.0 incompatible with libaio1t64, use 8.4 LTS + # Debian 13+ Fix: MySQL repo has expired GPG key and no trixie packages, use MariaDB from distro if [[ "$DISTRO_ID" == "debian" && "$DISTRO_CODENAME" =~ ^(trixie|forky|sid)$ ]]; then - msg_info "Debian ${DISTRO_CODENAME} detected → using MySQL 8.4 LTS (libaio1t64 compatible)" + msg_info "Debian ${DISTRO_CODENAME} detected → using MariaDB from distro repository" - if ! download_gpg_key "https://repo.mysql.com/RPM-GPG-KEY-mysql-2023" "/etc/apt/keyrings/mysql.gpg" "dearmor"; then - msg_error "Failed to import MySQL GPG key" - return 1 - fi + ensure_apt_working || return 1 - cat >/etc/apt/sources.list.d/mysql.sources </dev/null | grep -oP '[0-9]+\.[0-9]+' | head -1) || true + cache_installed_version "mysql" "${INSTALLED_VERSION:-mariadb}" + msg_ok "Setup MariaDB ${INSTALLED_VERSION:-} (Debian ${DISTRO_CODENAME})" return 0 fi