Debian 13, codename Trixie, shipped on August 9, 2025 with Linux kernel 6.12 LTS, apt 3.0 and the full 64-bit time_t ABI transition. The catalog moved to Python 3.13, PHP 8.4, PostgreSQL 17 and GNOME 48, and support runs five years through the Security and LTS teams.
A minimal Trixie install leaves you with the same gaps every Debian release has: no firewall, no auto-patching, password-based SSH, no Docker, no Node.js. The things to do after installing Debian 13 below are the short path from “fresh install” to “server I trust to take traffic.” Trixie details that change the workflow (apt 3.0 output, the deb822 .sources file, the t64 library suffix, the GRUB Secure Boot update in the latest point release) are called out where they matter. Every command below was run on Debian 13.8 in November 2026, on a Google Cloud VM with Secure Boot turned on.
What’s new in Trixie (worth knowing before you configure)
A handful of changes in Trixie will influence the commands you run in this guide. Skim the table first so you do not get tripped up by a library name that now ends in t64 or a sources.list.d file that does not exist because everything moved to deb822 format.
| Item | Debian 12 Bookworm | Debian 13 Trixie |
|---|---|---|
| Kernel | 6.1 LTS | 6.12 LTS |
| apt CLI | 2.6 (2.6.2 after DLA-4880) | 3.0 (3.0.4 after DSA-6607, new install UI) |
| Sources format | one-line sources.list | deb822 /etc/apt/sources.list.d/debian.sources |
| glibc | 2.36 | 2.41 |
| systemd | 252 | 257 |
| Python 3 | 3.11 | 3.13 |
| PHP | 8.2 | 8.4 |
| PostgreSQL | 15 | 17 |
| MariaDB | 10.11 | 11.8 |
| OpenJDK | 17 | 21 |
| Nginx | 1.22 | 1.26 |
| GNOME / KDE | 43 / 5.27 | 48 / 6.3 |
| time_t ABI | 32-bit on 32-bit arches | 64-bit on every architecture except i386 (Y2038-safe) |
| i386 | regular arch | partial support (no Linux kernel) |
| riscv64 | not official | first-class architecture |
The switches that matter for day-one ops work are apt 3.0’s cleaner install output, the t64 library suffix for libraries that exposed the 32-bit time_t ABI, and the move to deb822 sources. Nothing here breaks muscle memory, but the apt edit-sources file is a different shape than you might remember.
Confirm you are actually on Trixie
Before running anything else, take a reading. On a fresh Trixie cloud install the output below is the baseline. Save it, it makes later debugging easier.
hostnamectl
lsb_release -a
uname -r
cat /etc/debian_version
apt --version
Here is what the test VM reported after the first full upgrade. The point release lives in /etc/debian_version, not in lsb_release, which only ever says 13. If yours reads lower than the current point release, the full upgrade in the next sections fixes that:

Check the apt --version line in particular. Anything older than 3.0.4 is still exposed to the download verification bug fixed by DSA-6607, covered in the upgrade section.
Review the new deb822 sources file
Trixie’s installer and cloud images write sources to /etc/apt/sources.list.d/debian.sources using the deb822 format (one stanza per archive). The legacy one-line sources.list still works, but the single-file, multi-line layout is now the default and is easier to diff in config management. Look at what you actually have:
cat /etc/apt/sources.list.d/debian.sources
The stanzas below are what a default cloud image writes. Main archive plus security, and trixie-backports is already enabled (it is ignored until you request it with -t trixie-backports):
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian.list
Suites: trixie trixie-updates trixie-backports
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian-security.list
Suites: trixie-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
If you want contrib and non-free-firmware (most laptops need the latter for wireless firmware and graphics blobs), edit the Components: line instead of adding a new file. One edit, one source of truth.
Run the first full upgrade
Every Trixie image has drifted behind the archive by the time it lands on your disk. The Google Cloud image used here was still a 13.7 build three days after 13.8 shipped, so refresh the package lists and see what is waiting before you install anything:
sudo apt update
apt list --upgradable 2>/dev/null | grep -E "^(grub|shim|base-files|linux-image|libc6|openssl)"
The filter keeps the packages that matter for a first boot. On the test VM it showed 27 pending updates in total, including the 13.8 base-files, a new GRUB build (2.12-9+deb13u4), glibc, OpenSSL and a security kernel:

Apply all of it, then clear out what the upgrade orphaned:
sudo apt -y full-upgrade
sudo apt -y autoremove
Two details worth calling out. First, apt 3.0 prints “WARNING: apt does not have a stable CLI interface. Use with caution in scripts.” when its output goes to a pipe or a file instead of a terminal. The warning is for humans. In scripts, use apt-get, which still has a stable, parsable interface. Second, the new apt install output groups “Installing”, “Installing dependencies”, and “Suggested packages” into separate sections. You can see both with a dry run piped through head:
apt install --simulate nginx 2>&1 | head -40
The captured output shows the warning at the top and the new layout below it, with a Summary: block instead of the old “N upgraded, M newly installed” line:

Run the same command without the pipe and the warning disappears, because apt only prints it when it can’t see a terminal.
Check that the 13.8 apt and GRUB fixes landed
Two packages from the Debian 13.8 point release deserve a look before you go further, because both protect the box before anything else on it runs. Debian’s 13.8 announcement lists apt under DSA-6607 and grub2 with a Secure Boot bypass fix (CVE-2026-97876) plus a raised SBAT revision. Our Debian 13 Trixie overview walks through the rest of what 13.8 changed.
Start with apt. The security tracker entry for CVE-2026-109518 describes an attacker on the network path, a malicious mirror or proxy included, who can get apt to install an unverified package as root by abusing download retries, which Trixie turns on by default. apt 3.0.4 is the fixed build, and the changelog names it plainly:
apt-cache policy apt | head -8
zgrep -m1 -A3 "3.0.4" /usr/share/doc/apt/changelog.gz
Next, GRUB. The 13.8 build bumps the generation number GRUB carries in its .sbat section, which is how shim decides whether a bootloader is too old to trust under Secure Boot. Reading that section needs objcopy from binutils, and mokutil reports the SbatLevel revocations shim has already applied:
sudo apt -y install binutils mokutil
mokutil --sb-state
sudo objcopy -O binary --only-section .sbat /boot/efi/EFI/debian/grubx64.efi /dev/stdout | head -3
mokutil --list-sbat-revocations
Four lines in that output tell you where the machine stands:
- apt candidate
3.0.4, in bothtrixieandtrixie-security SecureBoot enabledfrommokutil --sb-stategrub,7in the installed GRUB’s.sbatsectiongrub,5still in the applied SbatLevel list
On the test VM all four matched once the full upgrade had pulled in the new GRUB build:

Read the last block carefully. The SbatLevel that shim applied still says grub,5, so nothing is enforcing the new level yet and older boot media keeps working. That changes when a later shim pushes a higher GRUB revocation: from then on, any GRUB below the listed generation is refused, which is the whole point of SBAT. A machine that has taken the 13.8 GRUB is already past that line. A rescue USB written from an older Trixie ISO carries the older GRUB, so rewrite it from the 13.8 images.
Reboot once so the new kernel and bootloader are what actually run, then confirm Secure Boot came back up:
sudo systemctl reboot
The reboot drops your SSH session. Reconnect after a minute and run the check:
uname -r
mokutil --sb-state
The VM came back on 6.12.118+deb13-cloud-amd64 with SecureBoot enabled, so the new GRUB passed shim’s checks on a real Secure Boot chain. On a machine without Secure Boot, mokutil --sb-state says it is disabled and the SBAT numbers are informational only.
Set the hostname and timezone
The defaults on a cloud image are rarely what you want. Set them in one shot:
sudo hostnamectl set-hostname web01
sudo timedatectl set-timezone Africa/Nairobi
Swap the timezone for your region (timedatectl list-timezones lists them all) and confirm the change. NTP sync via systemd-timesyncd is on by default in Trixie:
hostnamectl --static
timedatectl | head -5
Use your own name in place of web01, the one the test VM got and the hostname in every screenshot here. On that VM timedatectl reported Africa/Nairobi (EAT, +0300) with the clock synchronized.
Add a sudo user (if the cloud image gave you root only)
Cloud images typically ship with a user already set via cloud-init. ISO installs often do not prompt for sudo membership, so the primary user is created without it. Either way, the fix is the same:
sudo adduser deploy
sudo usermod -aG sudo deploy
If you prefer passwordless sudo for an automation account, drop a file under /etc/sudoers.d/ and validate it. Never edit /etc/sudoers directly:
echo "deploy ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/90-deploy
sudo chmod 440 /etc/sudoers.d/90-deploy
sudo visudo -c
The visudo -c at the end parses every sudoers file on disk and reports syntax errors before they become login failures.
Install the command-line tools you expect to already be there
Trixie ships lean. This set covers what most scripts, playbooks, and muscle-memory habits assume:
sudo apt -y install \
curl wget git vim htop btop tmux \
ca-certificates gnupg lsb-release \
net-tools unzip tree ncdu rsync \
bash-completion less jq
Most of that list is muscle memory, but four of the packages earn their place on a new server because they answer the first questions you’ll ask of it:
btop: live CPU, memory and process view, now in Trixie mainncdu: finds where the disk space wenttree: shows a config directory’s layout at a glancejq: parses the JSON that APIs anddocker inspectreturn
Bookworm users had to pull btop from backports, so drop that workaround from any old provisioning script before you point it at Trixie.
Turn on UFW and allow only what you need
Trixie does not enable a firewall by default. UFW is the easiest way to get sane nftables rules. For more patterns (rate limiting, per-IP allows) see the UFW commands with examples reference:
sudo apt -y install ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status verbose
The status output should show six rules active (three IPv4, three IPv6) with default deny incoming, matching the capture below:

Allow OpenSSH before you run ufw enable, because the default deny policy applies the moment the firewall comes up and a remote session without that rule is cut off. If that happens on a cloud VM, the provider’s serial console is the way back in, so run sudo ufw allow OpenSSH from there and the next SSH attempt works. Leave ports 80 and 443 out if this box will never serve web traffic.
Harden SSH with a drop-in override
Trixie, like Bookworm, includes /etc/ssh/sshd_config.d/. Always drop a separate file there rather than editing the main config. First, confirm you can log in with your key (do not disable password auth until this is verified). If the deploy user has no key yet, run ssh-copy-id [email protected] from your workstation while password logins still work. Then:
sudo vi /etc/ssh/sshd_config.d/90-hardening.conf
Add the following. Adjust MaxAuthTries and timeouts to taste, the rest are table stakes:
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding no
AllowAgentForwarding no
MaxAuthTries 3
ClientAliveInterval 300
ClientAliveCountMax 2
Test and reload. The service name on Trixie is ssh (not sshd):
sudo sshd -t && sudo systemctl reload ssh
sudo sshd -T | grep -E 'permitrootlogin|passwordauthentication|maxauthtries'
The effective values on the test box come back as:
maxauthtries 3
permitrootlogin no
passwordauthentication no
Before closing your current SSH session, open a second one from another terminal. If the second succeeds, the config is safe to keep. If sshd -T still shows passwordauthentication yes, another drop-in won: sshd keeps the first value it reads and loads sshd_config.d files in name order, so a provider file such as 50-cloud-init.conf beats 90-hardening.conf. Rename yours to 10-hardening.conf and reload.
Add fail2ban for SSH brute-force defence
UFW drops unwanted traffic. fail2ban bans hosts that try and fail. The two layers complement each other. On Trixie the sshd jail backend is systemd and uses the ssh.service unit (not sshd.service), which is noted in the output below:
sudo apt -y install fail2ban
Configure a local override at /etc/fail2ban/jail.local:
[DEFAULT]
bantime = 1h
findtime = 10m
maxretry = 5
[sshd]
enabled = true
backend = systemd
Enable the service and verify the jail is watching the correct journal unit:
sudo systemctl enable --now fail2ban
sudo fail2ban-client status sshd
The output reads Journal matches: _SYSTEMD_UNIT=ssh.service + _COMM=sshd, confirming it is reading the right journal source on Trixie. If you prefer the modern alternative, CrowdSec is a collaborative IPS that covers more attack surfaces than fail2ban. The Fail2ban setup guide for Ubuntu 26.04 also translates cleanly to Trixie.
Enable automatic security updates
Trixie’s unattended-upgrades package is configured for the security archive out of the box. You just need to install it and turn on the apt periodic jobs.
sudo apt -y install unattended-upgrades apt-listchanges
Write the schedule to /etc/apt/apt.conf.d/20auto-upgrades:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
Confirm the service is alive and the schedule is loaded:
sudo unattended-upgrade --dry-run --debug 2>&1 | tail -10
systemctl is-active unattended-upgrades
On the freshly upgraded test VM the dry run ended with “No packages found that can be upgraded unattended and no pending auto-removals” and the service reported active. An empty result is the good outcome here, because it means the manual full upgrade already pulled every security fix. Run the same dry run after the next DSA and you should see the patched packages listed instead.
Install Docker CE on Trixie
Debian’s docker.io package lags upstream. Docker’s official apt repo is the right source for any server. The dedicated Docker CE on Debian 13 / 12 guide covers the full walkthrough including rootless mode. The short version:
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | \
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/debian trixie stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt -y install docker-ce docker-ce-cli containerd.io \
docker-buildx-plugin docker-compose-plugin
The trixie codename in the repo URL is the only difference from the Bookworm procedure. Add your user to the docker group to drop the sudo prefix on container commands:
sudo usermod -aG docker $USER
Group membership only applies to new login sessions, so log out and back in (or run newgrp docker) before you verify the install with a disposable container:
docker --version
docker compose version
docker run --rm hello-world
On the test VM this pulled Docker Engine 29.10.0 with Compose v5.8.0 and ran the hello-world image cleanly. The capture below was taken after the Node.js and Python steps in the next section, so it shows all three runtimes together:

A permission error on /var/run/docker.sock at this point means the shell predates the group change, even though the daemon is running fine. Open a new login session and the same commands work without sudo.
Add Node.js 22 and modern Python tooling
Trixie ships Node.js 20 in the main archive, a line upstream stopped supporting on April 30, 2026, so it now gets fixes only through Debian’s security team. NodeSource’s repo tracks upstream instead. Node.js 22 is in maintenance LTS until April 30, 2027, which suits apps already pinned to it:
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -
sudo apt -y install nodejs
node --version
npm --version
On the test VM this returns v22.23.5 and npm 10.9.9. For a new project pick a longer runway: swap setup_22.x for setup_24.x (supported to April 2028) or setup_26.x, the Active LTS line since October 2026. Full walkthrough at Install Node.js 24 on Debian 13 / 12.
For Python, Trixie’s default is 3.13.5. Pair it with pipx for isolated CLI tools (ruff, httpie, poetry, pre-commit) that should not pollute the system environment:
sudo apt -y install build-essential python3-pip python3-venv pipx
pipx ensurepath
python3 --version
The pipx ensurepath step adds ~/.local/bin to your PATH, but only for new shells, so open a fresh terminal before installing your first tool with it. Use pipx rather than sudo pip install, because Trixie marks the system Python as externally managed and pip refuses to write into it.
Understand the 64-bit time_t (t64) transition
Trixie finishes a multi-year migration to 64-bit time_t on every architecture except i386, including 32-bit ARM. i386 sat the transition out, so a 32-bit x86 userland still has the Y2038 limit. The fallout you will see on day one is libraries whose package names gained a t64 suffix. For example, libssl3 became libssl3t64, libcurl4 became libcurl4t64, and so on. This is an ABI change, not a bug.
Count how many t64 libraries your install depends on:
dpkg -l | grep -c 't64\b'
dpkg -l | grep t64 | head -8
With every package from this guide installed, the count on the test VM was 29, and the first entries include common suspects like libcurl4t64, libdb5.3t64, libefiboot1t64, and libelf1t64:

Why you care: any third-party .deb built against a pre-t64 library will refuse to install on Trixie until the vendor publishes a matching build. The main archive handled this transparently. Vendors shipping their own repos (Docker, Microsoft, HashiCorp, NodeSource) have all released Trixie-compatible packages. If you maintain internal Debian packages, rebuild them with Trixie’s toolchain before rolling out.
Clean up and confirm what is installed
After all of the above, apt has cached a fair amount of data. Flush it and see what the root filesystem has left:
sudo apt -y autoremove
sudo apt -y autoclean
df -h /
The test VM with all packages in this guide installed sat at 3.3 GB used on a 20 GB root disk, Docker and the build toolchain included. Room to spare for containers, application code, and a reasonable local registry cache.
Frequently asked questions
Is Debian 13 compatible with existing Docker images and Compose files?
Yes. Container images run the same on Trixie as on Bookworm because Docker isolates the userspace. The kernel bump to 6.12 brings better cgroup v2, BPF, and io_uring behavior, but nothing in your Compose files needs to change. The apt repo codename in Docker’s instructions does change from bookworm to trixie.
Do I need to disable IPv6 on Trixie servers?
No. The correct answer if IPv6 is unreliable on your network is Acquire::ForceIPv4 "true"; inside /etc/apt/apt.conf.d/99force-ipv4 so apt prefers IPv4 for repo access. Leave the kernel and systemd-networkd IPv6 stack alone, it is needed for local service communication on modern containers.
Should I upgrade from Bookworm to Trixie or reinstall?
For servers you plan to rebuild within a year, reinstall on top of Trixie. The in-place path (apt full-upgrade with updated sources, then apt modernize-sources to migrate to deb822) works, but a reinstall guarantees you inherit the t64 ABI cleanly and you get the new sources.list.d/debian.sources layout without edits. For long-lived servers, read the official upgrade notes end to end before attempting the in-place path.
What is the LTS schedule for Trixie?
Debian 13 shipped on August 9, 2025. The Security team supports the release for roughly three years. After that, the LTS team picks it up for another two, giving you a combined five years of security coverage. Plan your next Debian rebuild somewhere between 2028 and 2030.
Which desktop environment should I install on Trixie?
On a server, none. On a workstation, the default GNOME 48 is well-integrated and works with Wayland out of the box. If you prefer a lighter or more customizable DE, the KDE Plasma on Debian 13 / 12 guide walks through adding Plasma 6.3 on top of the base install. Do not run multiple DEs side by side unless you enjoy troubleshooting login manager conflicts.
Post-install is not a one-shot task, it is a baseline you will tune as the machine’s role becomes clearer. If this box becomes a database host, follow the PostgreSQL 17 on Debian 13 guide next. For offsite encrypted backups, BorgBackup with Borgmatic remains the top pick. And if this is machine number three in a week, push the entire flow above into an Ansible playbook via Semaphore before you do it a fourth time.