tags 1148121 patch
thanks

I was expecting some trouble after applying an obvious patch, but I've
had success building and installing an OS using a modified form of the
attached patch.

/Simon
From 9297c9845a5c0320e772d7612930e350342bd8c4 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <[email protected]>
Date: Thu, 17 Sep 2026 15:12:13 +0200
Subject: [PATCH] Add new-style apt source listing (Closes: #1148121)

---
 helpers/calamares-sources-final | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/helpers/calamares-sources-final b/helpers/calamares-sources-final
index de19a50..c8ca18c 100755
--- a/helpers/calamares-sources-final
+++ b/helpers/calamares-sources-final
@@ -6,20 +6,20 @@
 CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
 RELEASE="trixie"
 
-cat << EOF > $CHROOT/etc/apt/sources.list
-# See https://wiki.debian.org/SourcesList for more information.
-deb http://deb.debian.org/debian $RELEASE main non-free-firmware
-deb-src http://deb.debian.org/debian $RELEASE main non-free-firmware
+rm -fv $CHROOT/etc/apt/sources.list
 
-deb http://deb.debian.org/debian $RELEASE-updates main non-free-firmware
-deb-src http://deb.debian.org/debian $RELEASE-updates main non-free-firmware
+cat << EOF > $CHROOT/etc/apt/sources.list.d/debian.sources
+Types: deb deb-src
+URIs: http://deb.debian.org/debian
+Suites: trixie trixie-updates trixie-backports
+Components: main
+Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
 
-deb http://security.debian.org/debian-security/ $RELEASE-security main non-free-firmware
-deb-src http://security.debian.org/debian-security/ $RELEASE-security main non-free-firmware
-
-# Backports allow you to install newer versions of software made available for this release
-deb http://deb.debian.org/debian $RELEASE-backports main non-free-firmware
-deb-src http://deb.debian.org/debian $RELEASE-backports main non-free-firmware
+Types: deb deb-src
+URIs: http://security.debian.org/debian-security
+Suites: trixie-security
+Components: main
+Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
 EOF
 
 exit 0
-- 
2.54.0

Attachment: signature.asc
Description: PGP signature

Reply via email to