bookworm to trixie in your APT sources, run sudo apt update, a minimal upgrade with sudo apt upgrade --without-new-pkgs, and then sudo apt full-upgrade. Reboot and check with cat /etc/debian_version. Run it inside tmux or screen so a dropped SSH connection doesn’t interrupt it.
Before you start
- Connect with SSH as a sudo user or root. Root can leave out
sudo. - Debian 13 “trixie” was released on 9 August 2025. You can only upgrade from Debian 12; skipping releases isn’t supported. If you are on Debian 11 or older (end of life), upgrade to 12 first or reinstall.
- Read the official Debian 13 release notes, especially “Issues to be aware of for trixie”.
- Debian 13 no longer supports 32-bit PCs (i386) as a normal architecture. Check yours with
dpkg --print-architecture; it should sayamd64(orarm64).
How to prepare Debian 12
1
Start a tmux session
tmux attach -t upgrade. See tmux and screen.2
Install all bookworm updates
1:9.2p1-2+deb12u7 or later).3
Check package health
sudo apt-mark unhold <package>.4
Find packages that aren't from Debian
5
Back up APT and package state
6
Check disk space
/boot of at least 768 MB with about 300 MB free, and enough room on / for the downloaded packages.How to change the APT sources to trixie
1
See where your sources are
2
Write the new Debian sources
Debian 13 recommends the deb822 format in Add
/etc/apt/sources.list.d/debian.sources:contrib non-free to Components if you used them before.3
Remove the old bookworm lines
Comment out or delete every Check that no source lists both releases:
bookworm entry in /etc/apt/sources.list and other files in /etc/apt/sources.list.d/, including bookworm-backports. To keep your existing one-line format instead, you can replace the release name everywhere:grep -r bookworm /etc/apt/ should print nothing.How to run the upgrade
1
Refresh the package lists
2
Minimal upgrade
3
Full upgrade
y. When asked about a changed configuration file you edited (for example sshd_config), keep your version unless you need the new one. Press D to see the difference.4
Reboot
How to check it worked
13.x) depends on when you upgrade.
What to do after the upgrade
- Remove unused packages:
sudo apt autoremove. - Remove leftover config files of removed packages after reviewing them:
apt list '?config-files', thensudo apt purge '?config-files'. - Convert any remaining one-line sources to the deb822 format:
sudo apt modernize-sources. - Re-enable third-party repositories with their trixie versions and run
sudo apt update. - Test your websites, databases and apps.
Changes in Debian 13 to know about
/tmpis now atmpfsin memory after reboot, and/tmpand/var/tmpare cleaned regularly. Don’t store large or permanent files there.- OpenSSH no longer supports DSA keys. Replace any
ssh-dsskeys before you upgrade, or you can’t log in with them.
Frequently asked questions
Can I upgrade Debian 11 straight to 13?
No. Upgrade 11 to 12 first, reboot and check everything, then 12 to 13. Debian 11 is end-of-life, so a fresh install of Debian 13 is often simpler.Should I use apt or apt-get for the upgrade?
The release notes useapt for interactive upgrades. Use apt-get in scripts.
How long does Debian 12 keep getting updates?
Now that Debian 13 is the stable release, Debian 12 is “oldstable” and its regular security support is time-limited, after which Debian LTS covers a subset of packages. Check debian.org/security and wiki.debian.org/LTS for the current end dates, and plan the upgrade well before them.Is a reinstall better than an upgrade?
For a clean, simple server, an in-place upgrade works well. For a heavily customised server, a fresh Debian 13 install (VPS Panel rebuild) plus restoring your data can be faster to verify. A rebuild erases the disk.Related guides
VPS and dedicated server guides
Every server guide in one place.
Upgrade Ubuntu to a new release
The Ubuntu version of this guide.
Fix apt and dnf repository errors
When apt update fails.
Check your Linux version
Confirm the new release.
Schedule and restore backups
Back up before you start.
Checked against the official Release Notes for Debian 13 (trixie), chapter “Upgrades from Debian 12 (bookworm)” on 4 November 2026. A full release upgrade was not run in our test container (Ubuntu 24.04). Steps can differ on systems with third-party repositories.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: November 2026