#!/bin/bash set -e echo "Forcing mirror to https://ftp.debian.org/debian/ and fixing apt issues in bootstrap stage..." cat > /etc/apt/sources.list << "EOF_SOURCES" deb https://ftp.debian.org/debian/ trixie main contrib non-free deb-src https://ftp.debian.org/debian/ trixie main contrib non-free deb https://ftp.debian.org/debian/ trixie-updates main contrib non-free deb-src https://ftp.debian.org/debian/ trixie-updates main contrib non-free EOF_SOURCES echo "Acquire::IndexTargets::deb::Contents-deb::DefaultEnabled \"false\";" > /etc/apt/apt.conf.d/99-disable-contents echo "Bootstrap sources.list forced and Contents disabled successfully."