Skip to content

Instantly share code, notes, and snippets.

@aerodomigue
aerodomigue / upgrade_debian_12_to_13.sh
Created August 17, 2025 11:15
Upgrade LXC Debian 12 to 13 (copy/paste solution)
#!/bin/bash
# Update source from bookworm to trixie
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
apt-get update
# Upgrade to trixie
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" dist-upgrade -y
# Disable services that break in LXC / containers (harmless if not present)
systemctl disable --now systemd-networkd-wait-online.service || true