particle-os/02-installer/config/hooks/00-force-apt-fix.bootstrap
2025-08-05 04:14:29 +00:00

11 lines
646 B
Bash
Executable file

#!/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."