↓ Skip to main content

How to Update Debian 12 to Debian 13

·2 mins·
 Author
Author
Andreas
I’m Andreas – the person behind XenoElectronics. I’m not here to sell you buzzwords. I’m a hands-on Linux and Security admin who builds and documents systems. Whether it’s Docker, Ansible, Bash, or troubleshooting a broken NFS mount – if it’s in my docs, I’ve run it myself. I build, test, break, fix, and write it down – so others don’t have to waste time. Need help? Ask. If I’ve solved it before, you’ll get a quick answer.
Table of Contents

Foreword
#

This guide is again very brief. The only important thing is that you create a backup of your installation before performing the upgrade. Debian is very robust, and I had no problems with 15 servers, but it’s better to be safe than sorry.

Updating
#

Before you can upgrade to Debian 13, the system must be up to date. Simply enter these commands:

sudo apt update
sudo apt upgrade
sudo apt full-upgrade

The system should then be restarted.

sudo reboot

Upgrade to Debian 13
#

To update Debian, you must first tell Debian to use the new repositories. Debian 12 is called “Bookworm” and Debian 13 is called “Trixie.”

This setting must be adjusted in this file. To do this, simply copy the command into the terminal again.

sudo nano /etc/apt/sources.list

Here, you must rename everything related to “Bookworm” to „Trixie”. I am referring specifically to these three things:

Bookworm → Trixie

Bookworm updates → Trixie updates

Bookworm security → Trixie security

Once that is done, we need to enter three more commands into the terminal:

To update the repository.

sudo apt update

This prepares the system for the upgrade. Press “Q” when prompted:

sudo apt upgrade --without-new-pkgs

Now perform the full upgrade to Debian 13 with the following command:

sudo apt full-upgrade

This will install new packages, update existing ones, and remove outdated dependencies. Once the update is complete, restart the system with the following command:

sudo reboot

After restarting, run the following to check that the upgrade was performed correctly:

lsb_release -a

If you now see “Debian 13”, your system has been successfully updated.

Too technical? We can handle it for your business
#

This guide demonstrates how deeply we dive into open-source technology to build stable and secure systems.

If you run a business and don’t want to deal with terminals, drivers, and constant updates yourself: That’s exactly what XenoElectronics is here for. We build, manage, and proactively monitor highly secure corporate IT based on these exact enterprise technologies fully automated and at a transparent flat rate.

You focus on your core business. We’ll handle the IT.

Schedule an Initial Consultation

If you found this article helpful for your own administration, feel free to share it with the community using the links below.

Related