From a49899d0607d3c54014a8f4180c8d558192579c8 Mon Sep 17 00:00:00 2001 From: Anonymous <> Date: Wed, 26 Nov 2025 23:30:07 +0800 Subject: [PATCH 1/2] fix: debian 11 backports is in archive and can block installation --- debi.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debi.sh b/debi.sh index e32f63b..3b6ef24 100755 --- a/debi.sh +++ b/debi.sh @@ -215,9 +215,12 @@ has_cloud_kernel() { # Returns 0 if available, 1 if not has_backports() { case $suite in - buster|bullseye|oldoldstable|bookworm|oldstable|trixie|stable|forky|testing) return + bookworm|oldstable|trixie|stable|forky|testing) return esac + # buster|bullseye|oldoldstable DO have backports, but it's in archive.debian.org now + # considering mirrors support varies and the code complexity we must accommodate, we just treat them as no backports available + warn "No backports kernel is available for $suite" return 1 From 2c028de296b61bb06da6b705dd2c29caed6ad96b Mon Sep 17 00:00:00 2001 From: Anonymous <> Date: Thu, 27 Nov 2025 00:56:49 +0800 Subject: [PATCH 2/2] fix: only add backports if has backports --- debi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debi.sh b/debi.sh index 3b6ef24..10ebcd2 100755 --- a/debi.sh +++ b/debi.sh @@ -594,7 +594,7 @@ apt_components=main [ "$apt_non_free_firmware" = true ] && apt_components="$apt_components non-free-firmware" apt_services=updates -[ "$apt_backports" = true ] && apt_services="$apt_services, backports" +[ "$apt_backports" = true ] && has_backports && apt_services="$apt_services, backports" installer_directory="/boot/debian-$suite"