From 259f14b8e980c92dbcd7d64e21a3dd3c39c5e846 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 5 Jan 2026 14:57:40 +0100 Subject: [PATCH] Fix openresty suite mapping for Debian 13 Openresty doesn't have trixie packages yet, only bookworm. Map trixie and sid to use bookworm packages which are compatible. Available openresty suites: bookworm, bullseye, buster, stretch, jessie Fixes 404 errors when installing/updating on Debian 13 Trixie --- ct/nginxproxymanager.sh | 7 ++++++- install/nginxproxymanager-install.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 3a14af4b7..adb1e9493 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -159,10 +159,15 @@ EOF [ ! -f /etc/apt/trusted.gpg.d/openresty.gpg ] && curl -fsSL https://openresty.org/package/pubkey.gpg | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/openresty.gpg if [ ! -f /etc/apt/sources.list.d/openresty.sources ]; then DEBIAN_VERSION=$(grep -E '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2) + # Openresty only has bookworm, not trixie - map newer versions to bookworm + case "$DEBIAN_VERSION" in + trixie|sid) OPENRESTY_SUITE="bookworm" ;; + *) OPENRESTY_SUITE="$DEBIAN_VERSION" ;; + esac cat </etc/apt/sources.list.d/openresty.sources Types: deb URIs: http://openresty.org/package/debian/ -Suites: ${DEBIAN_VERSION} +Suites: ${OPENRESTY_SUITE} Components: openresty Signed-By: /etc/apt/trusted.gpg.d/openresty.gpg EOF diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 850326738..afe1723a2 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -42,10 +42,15 @@ msg_ok "Set up Certbot" msg_info "Installing Openresty" curl -fsSL "https://openresty.org/package/pubkey.gpg" | gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty.gpg DEBIAN_VERSION=$(grep -E '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2) +# Openresty only has bookworm, not trixie - map newer versions to bookworm +case "$DEBIAN_VERSION" in + trixie|sid) OPENRESTY_SUITE="bookworm" ;; + *) OPENRESTY_SUITE="$DEBIAN_VERSION" ;; +esac cat </etc/apt/sources.list.d/openresty.sources Types: deb URIs: http://openresty.org/package/debian/ -Suites: ${DEBIAN_VERSION} +Suites: ${OPENRESTY_SUITE} Components: openresty Signed-By: /etc/apt/trusted.gpg.d/openresty.gpg EOF