Category: Debian
Created: 2025-11-28
Upgrading a Debian installation to the next major version number works quite smoothly. Depending on the speed of the server and the duration of the reboot, an upgrade is usually completed in under 15 minutes.
Always upgrade Debian Linux from one version to the next higher, do not skip versions!
To upgrade a server from Debian 11 to Debian 13, you must first upgrade from 11 to 12 and then from 12 to 13. Reboot the server after each upgrade!
Follow the steps below to upgrade:
apt update && apt upgrade/etc/apt/sources.list (replace bookworm with trixie)/etc/apt/sources.list.d/liveconfig.list for the LiveConfig PHP repository in the same wayapt updateapt upgradeapt full-upgrade. While running, you will be asked whether some existing configuration files should be replaced - in most cases it is better to keep the existing configuration (answer with no).apt-get autoremove to remove all packages that are no longer requiredYou can also find detailed information on upgrading from Debian 12 in the official documentation.
/boot is a separate partition, ensure that at least 300 MB of free space is available there.modules.conf (including mod_ls.c, mod_xfer.c).Some things have changed with Debian Trixie (see Release Notes – in particular Things you should know about Trixie). The most important changes include:
/tmp file system is now a tmpfs (in RAM). Files in it are therefore automatically lost when the system is restarted./tmp and /var/tmp directories are regularly emptied by the systemd-tmpfiles service (can be configured via /etc/tmpfiles.d/tmp.conf).postfix@-.service to postfix.service. If you have created manual fail2ban filters, these may need to be adjusted.