Contact
Contact

Blog

How to Upgrade Debian 12 to Debian 13 Trixie (2026 guide)

Date
Reading
9 min

To upgrade from Debian 12 Bookworm to Debian 13 Trixie: back up, fully patch Bookworm, point the repositories from bookworm to trixie, run apt upgrade --without-new-pkgs first and then apt full-upgrade, clean up and reboot.

Put like that, it fits in a tweet. Doing it across a production fleet, with databases, critical services and an SLA someone watches like a hawk, is another story entirely. We have spent more than 20 years keeping Linux infrastructure running in production, and this is how we run a dist-upgrade without unplanned downtime. Only the 12 → 13 jump is supported: if you are on Debian 11, move to Debian 12 first.

2030
Trixie support
(3 yrs + 2 LTS)
~69,800
Packages in
the repositories
20-60'
Typical upgrade
duration
01 · What's new

What is Debian 13 Trixie and what changed from Bookworm?

Debian 13 "Trixie" has been the stable release of Debian since 9 August 2025. It ships the Linux 6.12 LTS kernel, the completion of the /usr merge (now mandatory), the move to 64-bit time_t (preparing the Year 2038 problem on 32-bit architectures) and APT 3.0, with cleaner output and better dependency resolution.

Trixie is the triceratops from Toy Story, as Debian's naming tradition demands, but there is little prehistoric about it: for a production server it brings exactly what you expect from Debian: a cleaner base, a modern kernel and five years of security support ahead. In practice, what matters is that the support clock resets, and Bookworm's is already in extra time.

In context

Trixie does not force you to relearn anything: same APT, same philosophy. The effort is in planning the jump, not adapting to a new system.

02 · Lifecycle

How long is Debian 12 Bookworm supported?

Since Trixie was released in August 2025, Debian 12 became oldstable, and since summer 2026 it only receives LTS support, which runs until 30 June 2028 and only on amd64, arm64, i386, armhf and ppc64el. It is not an emergency yet, but every month you wait adds technical debt and shrinks the window to upgrade calmly.

SUPPORT LIFECYCLE — DEBIAN 12 vs DEBIAN 13 20232025202620282030 TODAY Debian 12 "Bookworm" LTS → Jun 2028 Debian 13 "Trixie" → Jun 2030 Full support LTS
Support windows for Debian 12 and Debian 13 — approximate dates per the Debian lifecycle
Recommendation

Do not wait until the end of Bookworm's cycle. Plan the upgrade in a quiet window (ideally not at 6 pm on a Friday), not against the clock when the patches stop arriving.

03 · Preparation

What should you prepare before upgrading?

A dist-upgrade is safe if you prepare it. Most disasters we have seen come not from the upgrade itself but from skipping this phase. Tick every item before you start:

Pre-flight checklist0 / 6 done
✓Full backup or snapshot. On a VM, take a full snapshot: it is your rollback button.
✓Read the Debian 13 release notes for your case (known issues).
✓Enough disk space in / and /var to download the new packages.
✓Out-of-band access (console / IPMI / KVM) in case SSH drops halfway through, which tends to happen just when nobody is left in the data centre.
✓Clean up /boot of old kernels so the 6.12 kernel fits.
✓Maintenance window agreed and users notified.

All six ticked? Go ahead. Only five? The missing one is usually the one that bites.

04 · Step by step

How to upgrade Debian 12 to Debian 13 step by step

The process has six phases: bring Bookworm up to date, point repositories to trixie, disable third-party repos, run the minimal upgrade first and then the full one, clean up and reboot with verification. Here is the flow and the exact commands.

The upgrade in 6 phases
1
Patch BookwormStart from a 100% up-to-date system
2
Repos to Trixiebookworm → trixie (incl. trixie-security)
3
Disable third-party reposRe-enable them one by one afterwards
4
Minimal + full upgrade--without-new-pkgs then full-upgrade
5
Clean upautoremove + autoclean
6
Reboot & verifycat /etc/debian_version → 13.x

On Debian 11? Upgrade to Debian 12 first, then to 13

Debian does not support skipping releases. From Debian 11 "Bullseye" you upgrade to Debian 12 "Bookworm" and then follow the steps in this guide. Debian 11 stopped receiving official security updates on 31 August 2026.

The move to Bookworm needs the same preparation (backup, fully patched system, third-party repositories disabled). Before you start, check the APT sources:

  • Delete any bullseye-backports lines first. Then replace bullseye with bookworm on the rest, including the security line (bullseye-security → bookworm-security), and check that no reference to bullseye is left anywhere in /etc/apt/, sources.list.d/ included.
  • If the server relies on non-free firmware (some network cards and storage controllers do), add the non-free-firmware component: Debian 12 split it out from non-free.
Debian 11 → Debian 12
# Debian 11 → 12 (classic sources.list format)
$ sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
$ grep -rn bullseye /etc/apt/   # should return nothing
$ sudo apt update
$ sudo apt upgrade --without-new-pkgs
$ sudo apt full-upgrade
$ sudo reboot

# after the reboot:
$ cat /etc/debian_version   # -> 12.x

Once the server is on Debian 12 and has rebooted, carry on from step 1. If you have several servers on Bullseye, we can handle both upgrades for you as part of our Debian support.

1. Bring Debian 12 fully up to date

Any pending patch turns into a conflict during the jump. Start from a pristine Bookworm:

root@debian12 — bash
$ sudo apt update
$ sudo apt upgrade
$ sudo apt full-upgrade
$ sudo apt --purge autoremove

2. Point the repositories to Trixie

Replace bookworm with trixie in your APT sources. This also covers bookworm-security → trixie-security. Review the result with cat before continuing.

edit APT sources
# Classic format
$ sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list

# DEB822 format (recent Debian 12 installs)
$ sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/debian.sources

3. Temporarily disable third-party repositories

Any external repository in /etc/apt/sources.list.d/ (Docker, PostgreSQL and friends, who do not always turn up to the party on day one) can block the upgrade if it does not publish for Trixie yet. Disable them now and re-enable them one by one afterwards, checking that each already publishes for Debian 13.

4. Run the upgrade: minimal first, full second

The minimal upgrade reduces the risk of dependency conflicts. Do not wander off for a coffee: dpkg will ask what to do with any configuration files you have changed, and hitting “Y” out of habit is the quickest way to lose a configuration that worked.

If you upgrade from the terminal over SSH, do it inside tmux or screen: if the connection drops halfway, the upgrade keeps running and you reattach with tmux attach -t trixie. Debian's release notes also recommend recording everything printed on screen with script, which is the first thing you will want to read if something fails.

root@debian12 — safe session
$ sudo apt install tmux
$ tmux new -s trixie                 # survives an SSH drop
$ script -t 2>~/upgrade-trixie.time -a ~/upgrade-trixie.script
root@debian12 — dist-upgrade
$ sudo apt update
$ sudo apt upgrade --without-new-pkgs   # minimal upgrade
$ sudo apt full-upgrade                 # full upgrade

5. Clean up obsolete packages

clean up
$ sudo apt --purge autoremove -y
$ sudo apt autoclean

6. Reboot and verify

root@debian13 — verification
$ sudo reboot
# after reboot:
$ cat /etc/debian_version   # -> 13.x
$ uname -r                  # -> 6.12.x
$ systemctl --failed        # no failed services
05 · Rollback

How long does it take and can you roll back?

On a typical server the upgrade takes 20 to 60 minutes depending on the number of packages and disk and network speed. Rolling back a dist-upgrade is not trivial once the packages are installed: that is why the prior snapshot is non-negotiable. On VMs, reverting to the snapshot takes minutes; on physical hardware, the rollback plan is restoring from backup.

Golden rule

Never do a major version jump in production without a tested way back. A backup you have never restored is not a backup: it is a hope.

06 · Common errors

What are the most common errors upgrading to Trixie?

What we see most in production, and how to avoid it:

  • Third-party repos without a Trixie release blocking apt: disable them first (step 3).
  • Full /boot preventing the new kernel from installing: clean old kernels before you start.
  • Configuration files overwritten by accepting the package version blindly: when in doubt, keep yours and review afterwards.
  • Forgetting --without-new-pkgs in the minimal phase, which triggers dependency conflicts.
  • Custom services assuming non-merged /usr paths: the /usr merge is now mandatory in Trixie.
07 · In context

Debian or Ubuntu for your server?

The question we get most often, right after “can we do this on a Friday?” (no). There is no universal answer: it depends on whether you value control and independence (Debian) or integrated commercial support and tools like Ubuntu Pro and Landscape (Ubuntu). Here is the quick comparison:

​Debian 13Ubuntu ProRHEL
Governance
Community
Canonical
IBM / Red Hat
Support / release
5 yrs + ELTS
10 yrs
10 yrs
Licence cost
€0
Per node
Per node

Running Ubuntu? As a Canonical partner we have you covered too with SIXE UP. And if your case is moving between distributions, we handle migrations with no downtime.

SIXE engineer upgrading a server from Debian 12 Bookworm to Debian 13 Trixie in a data center
Upgrading Debian 12 Bookworm to Debian 13 Trixie on production infrastructure
08 · Professional support

What if you'd rather not touch production yourself?

Upgrading a lab box is an afternoon. Upgrading a production fleet with SLAs, databases and critical services is another story: you have to inventory dependencies, validate in staging, coordinate windows and have a tested rollback.

That is what we do at SIXE. We offer professional Debian support — planned version upgrades, hardening with Wazuh monitoring, and incident resolution with SLA — and, when it is urgent, 24/7 support. Want your team trained? We run official Linux training.

20+ years keeping Linux in production

Senior engineers who speak your language, no call centres, no tickets bouncing between tiers. Need to upgrade several servers to Debian 13? Tell us about your case and we will propose a plan with a maintenance window and rollback.

Summary

The essentials in 5 points

For the busy reader

→ Debian 13 Trixie is the stable release since August 2025; Debian 12 is now oldstable (LTS until ~2028).

→ Back up / snapshot before anything else. It is your only real rollback.

→ Start from a 100% patched Bookworm, switch repos to trixie and run upgrade --without-new-pkgs before the full-upgrade.

→ Disable third-party repos during the process.

→ Only 12 → 13 is supported: from Debian 11, go through Debian 12 first.

FAQ

Frequently asked questions

Can you upgrade from Debian 11 directly to Debian 13?

No. Debian only supports upgrades between consecutive releases. From Debian 11 "Bullseye" you must first upgrade to Debian 12 "Bookworm" and, once there, to Debian 13 "Trixie".

Do I lose my data and configuration when upgrading?

No, a dist-upgrade preserves data and configuration. Even so, a full backup or snapshot is mandatory: it is your rollback plan if anything fails.

Is it better to upgrade or reinstall from scratch?

For a well-maintained server, the dist-upgrade is safe and much faster. A clean reinstall only pays off if the system carries a lot of technical debt or inconsistent configuration.

Sources

References

Debian. Debian 13 "trixie" Release Information. debian.org/releases/trixie

Debian. Debian 13 Release Notes. debian.org/releases/trixie/releasenotes

Debian. Debian 13 "trixie" released (2025-08-09). debian.org/News/2025

Debian Security Team. debian.org/security

Written by the SIXE systems engineering team. Last updated: .


Professional Debian support

Need to upgrade your servers to Debian 13?

We propose an upgrade plan with a prior audit, staging validation, a maintenance window and a tested rollback. Senior engineering, with SLA.