Debian
Community Notes
Upgrade Debian 12 to Debian 13
This is not a script but can be moved into one.
Suggestion to update manually to be able to answer the questions if needed
#pre upgrade we upgrade the system to have the latest packages
apt update
apt upgrade
apt autoclean
apt clean
sed -i ‘s/bookworm/trixie/g’ /etc/apt/sources.list
apt update
apt upgrade –without-new-pkgs
apt full-upgrade
#Reboot here!
#check if it worked!
lsb_release -a
#remove all remaining artifacts from the upgrade
apt clean
apt autoremove
#modernize (move sources.list to .sources)
apt modernize-sources
- nico_kAugust 18, 2025
Release Notes & Updates
Help us match vulnerabilities
No vulnerability match yet. Pick the right product:
Don’t see it? Paste a CPE
Also known as
Packaging Notes
Uses Advanced Package Tool (APT) for package management
Example script:
#!/bin/bash
dpkg --get-selections | grep hold | awk '{ print $1, "install" }' | dpkg --set-selections
apt update && apt full-upgrade
apt --purge autoremove
cp -v /etc/apt/sources.list /opt/sources.list.bak
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
apt update
apt upgrade --without-new-pkgs
apt full-upgrade
apt --purge autoremove
cat /etc/debian_version
cat /etc/os-release
lsb_release -a