Private customers Business customers

Upgrade your VPS to Debian 13From Debian 11 or 12 to Trixie - without reinstalling

Debian 11 has not received security updates since August 31, 2026, and Debian 12 is now in long-term support. This guide shows how to move your VPS to Debian 13 "Trixie" with an in-place upgrade, what is different on a container VPS compared to your own machine, and which services to check afterward.

Debian 11 → 12 → 13In place, no data lossFor LXC VPS30-60 minutes

Published on

Why you should upgrade now

Debian maintains each release with regular security updates for about three years, followed by two more years of long-term support (LTS). For the three releases currently common on VPS, that means:

ReleaseStatusWhat it means for you
Debian 11 "Bullseye"no security updates since August 31, 2026Upgrade right away - every newly found vulnerability stays open.
Debian 12 "Bookworm"in LTS since July 12, 2026, updates until June 30, 2028Still secure, but only for part of the packages. Plan the upgrade calmly.
Debian 13 "Trixie"current stable releaseThe goal of this guide.

The LTS team only takes care of the most widely used packages. If your server runs something more exotic, it may already be without updates under LTS today. At that point at the latest, the upgrade is due.

With us, by the way, Debian 11 can no longer be ordered or selected for a reinstallation. Existing servers keep running until you upgrade them - which is exactly what this guide is for.

Rent a VPS from €2.95 / month

Prepaid without a contract, full root access.

Upgrade or reinstall?

There are two routes to Debian 13, and both have their place:

  • In-place upgrade: The running system is lifted to the new release package by package. Data, users and configuration are kept. This is the route this guide describes.
  • Reinstallation: In the web interface, you reinstall the operating system yourself and pick the Debian 13 image. It only takes a few minutes but deletes all data on the server. Afterward, you set up your applications again and restore your backup.

A reinstallation pays off if the server has grown over the years and you no longer know everything that runs on it - or if your services run in Docker and can be rebuilt in minutes from a Compose file and a data backup. For a well-maintained server with classically installed services, the upgrade is usually the more convenient route.

What is different on a container VPS

Our VPS run as LXC containers. For the upgrade, that has a pleasant consequence: the kernel is provided by the host, not by your system. The steps in the official release notes about kernel packages, GRUB and the boot loader therefore do not apply at all. What you upgrade are the packages of your system - programs, libraries, services.

A reboot is still necessary so that all services run with the new libraries. For a container, it is quick and involves no boot loader. The differences between a container and a classic virtual machine are explained in the guide LXC or KVM?.

Your lifeline if the SSH connection stops working after the upgrade: the VNC console in the web interface bypasses the SSH service and takes you straight to the server. Make a note of where to find it beforehand.

Preparation: five points before the first command

  1. Create a backup. A release upgrade is the classic moment for something to go wrong. Back up at least /etc, your application data and database dumps to a destination outside the server - see Set up backups.
  2. Check your release. cat /etc/debian_version shows where you stand. If the output starts with 11, you have to go to 12 first - Debian only supports moving to the next release.
  3. Fully update the current release. Only once the existing system is up to date do you continue:
    sudo apt update
    sudo apt full-upgrade
    sudo apt autoremove
  4. Check third-party package sources. Look in /etc/apt/sources.list.d/ to see which additional sources are configured - Docker, Node.js or PHP from third parties, for example. Docker offers a source for Debian 13; for others, check the vendor's site first. Comment out sources without Trixie support for the upgrade. apt-mark showhold shows held packages.
  5. Secure disk space and your session. df -h / should show a few gigabytes free. Also start the upgrade in tmux or screen - if the SSH connection drops, it keeps running there and you simply reattach.

Intermediate step: Debian 11 to 12

If you are already on Debian 12, skip this section. For everyone else, it is mandatory. First switch the package sources from bullseye to bookworm:

sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list

The second command reports an error if there are no .list files in the folder - that is harmless. Then run the same three upgrade commands described in the next section, reboot the server and check with cat /etc/debian_version that it says 12. Only then do you continue to 13.

Take your time with this intermediate step and briefly check your services before the next jump. Two upgrades in a row without checking make troubleshooting needlessly hard.

Switch package sources to Trixie

Now you replace bookworm with trixie. Depending on the age of your system, the sources are in the classic format in /etc/apt/sources.list or in the newer deb822 format in files ending in .sources. The following command covers both:

sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources 2>/dev/null
grep -r trixie /etc/apt/sources.list /etc/apt/sources.list.d/

The second line shows you every line that now points to Trixie as a check. Make sure the security source is included - it is called trixie-security. If a source is missing or bookworm still appears somewhere, fix it by hand with sudo nano.

The actual upgrade

Debian recommends upgrading in two steps. First a partial upgrade that installs no new packages and removes nothing, then the full upgrade:

sudo apt update
sudo apt upgrade --without-new-pkgs
sudo apt full-upgrade

The first step brings most packages up to date, the second resolves the remaining dependencies, installs new packages and removes obsolete ones. Before confirming, read the list of packages to be removed. If it includes something you need, abort and find the cause - usually a third-party package source.

Along the way, apt asks about configuration files you changed yourself: keep your version or take the new one? As a rule of thumb:

  • Keep your version for everything you deliberately customized - above all /etc/ssh/sshd_config if you followed the guide Secure SSH access. With the package version, password login could otherwise be active again.
  • Take the new version for files you never touched. When in doubt, option "D" shows the differences.

Depending on the size of your system, this takes ten to thirty minutes.

After the upgrade

Reboot the server - with sudo reboot or in the web interface - and then check:

cat /etc/debian_version
systemctl --failed
sudo apt autoremove

The first line should start with 13, the second should report no failed services. The third command removes packages that are no longer needed. Optionally, sudo apt modernize-sources converts your package sources to the deb822 format Debian 13 prefers - it is not required.

The release upgrade also brings new major versions of the bundled software. The typical spots where something gets stuck afterward:

  • PHP: Debian 13 ships PHP 8.4 instead of 8.2. If your nginx configuration points to the socket php8.2-fpm.sock, change it to php8.4-fpm.sock, and reinstall the PHP extensions for the new version. The basic setup is covered in Set up a web server.
  • Python: Virtual environments are tied to the old Python version and often stop working afterward. Delete the .venv folder and create it again - as described for the Discord bot.
  • PostgreSQL: The new major version is installed next to the old one, and your data stays in the old cluster. Migrate it with pg_upgradecluster before removing the old package.
  • Docker: Containers are independent of the distribution and usually keep running unchanged. Check with docker ps that they are all back up.

If you commented out third-party package sources, re-enable them now - with the codename trixie, as soon as the vendor supports it.

If something goes wrong

If the upgrade aborts, for example because of a dependency error, it can almost always be resumed. First run these two commands, then sudo apt full-upgrade again:

sudo dpkg --configure -a
sudo apt --fix-broken install

If you can no longer reach the server via SSH after the reboot, use the VNC console in the web interface and look for the cause with systemctl status ssh - usually an overwritten sshd_config. And if nothing else helps, there is still the reinstallation with the Debian 13 image and restoring your backup. That is exactly why the backup comes first in this guide.

Frequently asked questions

No. Debian only supports upgrading to the next release. From Debian 11, you go to Debian 12 first, check the system and then move it to Debian 13. Skipping releases risks dependency errors that are hard to resolve.

Not right away. Under long-term support, Debian 12 receives security updates until June 30, 2028, but only for the most widely used packages. Plan the upgrade calmly, but do not put it off until the last month. Debian 11, on the other hand, has received no updates at all since August 31, 2026.

Not with an in-place upgrade: files, users, databases and configuration are kept. A backup beforehand is still mandatory, because an aborted upgrade may require a reinstallation in the worst case. A reinstallation via the web interface, on the other hand, always deletes all data on the server.

No. Our VPS run as LXC containers, and the kernel is provided by the host. The steps in the Debian release notes about kernel packages and the boot loader therefore do not apply. Rebooting the server is still a good idea so that all services start with the new libraries.

For a typical system with a web server and database, expect 30 to 60 minutes including preparation and checks. Downloading and installing the packages usually takes ten to thirty minutes of that. Coming from Debian 11, the intermediate step doubles the time.

Ubuntu has its own tool for that: after a full update, you start the release upgrade with sudo do-release-upgrade. The same applies there: back up first, work in tmux or screen and check your services after the upgrade.

VPS with Debian 13

Debian 13 is available as an image on every VPS plan. If you would rather start fresh, you can reinstall the operating system yourself in the web interface. Full root access, prepaid with no contract, located in Frankfurt am Main.

View VPS plans & prices