Skip to content

Instantly share code, notes, and snippets.

@crypt0rr
Last active August 12, 2025 18:47
Show Gist options
  • Save crypt0rr/34dc436c6e869b69421dc08edc3ffe4d to your computer and use it in GitHub Desktop.
Save crypt0rr/34dc436c6e869b69421dc08edc3ffe4d to your computer and use it in GitHub Desktop.
Debian Bookworm (12) upgrade to Debian Trixie (13)

Upgrade Debian Bookworm 12 to Debian Trixie 13

Default Debian Sources

sed -i 's/bookworm/trixie/g' /etc/apt/sources.list

Running Docker? Make sure to alter the Docker source as well.

sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/docker.list

After the above, run the following commands

apt update
apt full-upgrade
apt dist-upgrade
apt autoremove
apt modernize-sources
systemctl reboot

Running Tailscale?

mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.noarmor.gpg | tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.tailscale-keyring.list | tee /etc/apt/sources.list.d/tailscale.list
rm /etc/apt/sources.list.d/tailscale.sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment