From b5c6742491861b7043483ce88a2b7044740a6ad6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 10:52:23 +1000 Subject: [PATCH] Clarify supported OS versions for installer (#12803) (#12804) Fixes #12798 (cherry picked from commit 9bc5054d841fedb1a07eeec0aad2f3bea7d278bc) Co-authored-by: Matthias Mair --- contrib/installer/src/root_command.sh | 25 ++++++++++++++++++++----- docs/docs/start/installer.md | 4 ++-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/contrib/installer/src/root_command.sh b/contrib/installer/src/root_command.sh index 5519d14c1d..7a894b7f8b 100644 --- a/contrib/installer/src/root_command.sh +++ b/contrib/installer/src/root_command.sh @@ -46,6 +46,7 @@ echo "### Installer for InvenTree - source: $publisher/$source_url" get_distribution echo "### Detected distribution: $OS $VER" SUPPORTED=true # is this OS supported? +OLD_VERSION=false # is this an old OS that is no longer supported? DIST_OS=${OS,,} DIST_VER=$VER @@ -54,21 +55,30 @@ case "$OS" in Ubuntu) if [[ $VER == "24.04" ]]; then SUPPORTED=true - elif [[ $VER == "22.04" ]]; then + elif [[ $VER == "26.04" ]]; then SUPPORTED=true elif [[ $VER == "20.04" ]]; then - SUPPORTED=true + SUPPORTED=false + OLD_VERSION=true + elif [[ $VER == "22.04" ]]; then + SUPPORTED=false + OLD_VERSION=true else SUPPORTED=false fi ;; "Debian GNU/Linux" | "debian gnu/linux" | Raspbian) - if [[ $VER == "12" ]]; then + if [[ $VER == "13" ]]; then SUPPORTED=true + elif [[ $VER == "12" ]]; then + SUPPORTED=false + OLD_VERSION=true elif [[ $VER == "11" ]]; then - SUPPORTED=true + SUPPORTED=false + OLD_VERSION=true elif [[ $VER == "10" ]]; then - SUPPORTED=true + SUPPORTED=false + OLD_VERSION=true else SUPPORTED=false fi @@ -82,6 +92,11 @@ esac if [[ $SUPPORTED != "true" ]]; then echo "This OS is currently not supported." + + if [[ $OLD_VERSION == "true" ]]; then + echo "The detected version ($OS $VER) is no longer supported but a newer version is." + fi + echo "Please install manually using https://docs.inventree.org/en/stable/start/install/" echo "or check https://github.com/inventree/InvenTree/issues/3836 for packaging for your OS." echo "If you think this is a bug please file an issue at" diff --git a/docs/docs/start/installer.md b/docs/docs/start/installer.md index 55f367bc90..893a94730e 100644 --- a/docs/docs/start/installer.md +++ b/docs/docs/start/installer.md @@ -8,8 +8,8 @@ The InvenTree installer automates the installation procedure for a production In The installer supports the following Linux distributions: -- Debian 11, 12 -- Ubuntu 22.04 LTS, 24.04 LTS +- Debian 13 +- Ubuntu 24.04 LTS, 26.04 LTS Support for other OS versions is not currently planned. If you are using a different distribution, you can still follow the [docker](./docker.md) or [bare metal](./install.md) installation instructions.